All of lore.kernel.org
 help / color / mirror / Atom feed
* Fw:How to use gtest/gmock in openbmc
@ 2019-09-12  3:09 常晓明
  2019-09-12  3:45 ` William Kennington
  2019-09-12  3:51 ` Fw:How to use gtest/gmock in openbmc Samuel Jiang
  0 siblings, 2 replies; 16+ messages in thread
From: 常晓明 @ 2019-09-12  3:09 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

Hi, OpenBMC development member,


I'm learning openbmc via github.
I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
I think it may be my compilation method is not correct, Do you have any documentation about this ?


Could you tell me How to test "sdeventplus" ?


Thanks very mouch.
Johny






 





 





 

[-- Attachment #2: Type: text/html, Size: 1236 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fw:How to use gtest/gmock in openbmc
  2019-09-12  3:09 Fw:How to use gtest/gmock in openbmc 常晓明
@ 2019-09-12  3:45 ` William Kennington
  2019-09-14  6:47   ` 常晓明
                     ` (6 more replies)
  2019-09-12  3:51 ` Fw:How to use gtest/gmock in openbmc Samuel Jiang
  1 sibling, 7 replies; 16+ messages in thread
From: William Kennington @ 2019-09-12  3:45 UTC (permalink / raw)
  To: 常晓明; +Cc: OpenBMC Development

You need to have all of the requisite packages in your development
environment, then you can run
```
meson setup build
meson test -C build
```
which reminds me, i need to update the documentation in the readme...

The easiest way to do this is to use the docker environment from
https://github.com/openbmc/openbmc-build-scripts, specifically the
script `run-unit-test-docker.sh`

On Wed, Sep 11, 2019 at 8:26 PM 常晓明 <xiaoqian1641@163.com> wrote:
>
> Hi, OpenBMC development member,
>
> I'm learning openbmc via github.
> I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
> I think it may be my compilation method is not correct, Do you have any documentation about this ?
>
> Could you tell me How to test "sdeventplus" ?
>
> Thanks very mouch.
> Johny
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Fw:How to use gtest/gmock in openbmc
  2019-09-12  3:09 Fw:How to use gtest/gmock in openbmc 常晓明
  2019-09-12  3:45 ` William Kennington
@ 2019-09-12  3:51 ` Samuel Jiang
  2019-09-14  6:23   ` 常晓明
  1 sibling, 1 reply; 16+ messages in thread
From: Samuel Jiang @ 2019-09-12  3:51 UTC (permalink / raw)
  To: openbmc, 常晓明

[-- Attachment #1: Type: text/plain, Size: 983 bytes --]

Hi Johny,

> I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
You need the compile environment first follow by build using the SDK document.
update README.md step  ./configure   to  ./configure ${CONFIGURE_FLAGS}.

I think it could be compiled after executing above steps.

Thanks,

Samuel Jiang
On Sep 12, 2019, 11:26 AM +0800, 常晓明 <xiaoqian1641@163.com>, wrote:
> Hi, OpenBMC development member,
>
> I'm learning openbmc via github.
> I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
> I think it may be my compilation method is not correct, Do you have any documentation about this ?
>
> Could you tell me How to test "sdeventplus" ?
>
> Thanks very mouch.
> Johny
>
>
>
>
>
>
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 3210 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re:Re: Fw:How to use gtest/gmock in openbmc
  2019-09-12  3:51 ` Fw:How to use gtest/gmock in openbmc Samuel Jiang
@ 2019-09-14  6:23   ` 常晓明
  0 siblings, 0 replies; 16+ messages in thread
From: 常晓明 @ 2019-09-14  6:23 UTC (permalink / raw)
  To: Samuel Jiang; +Cc: openbmc


[-- Attachment #1.1: Type: text/plain, Size: 1409 bytes --]

Hi, Samuel


Thank you for your reply.
I followed your suggest steps to compile code, and something goes wrong like this:
1.Compile environment first follow by build using the SDK document ---- It's done.
2. In "sdbusplus" package, run "./bootstrap.sh" then "./configure ${CONFIGURE_FLAGS}."  --- It's done
3. Then do "Make", It shows:


So,the "test" is not compiled, do you know why?


Jony
Thanks






At 2019-09-12 11:51:58, "Samuel Jiang" <chyishian.jiang@gmail.com> wrote:

Hi Johny,


I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
You need the compile environment first follow by build using the SDK document.
update README.md step  ./configure   to  ./configure ${CONFIGURE_FLAGS}.


I think it could be compiled after executing above steps. 


Thanks,


Samuel Jiang
On Sep 12, 2019, 11:26 AM +0800, 常晓明 <xiaoqian1641@163.com>, wrote:

Hi, OpenBMC development member,


I'm learning openbmc via github.
I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
I think it may be my compilation method is not correct, Do you have any documentation about this ?


Could you tell me How to test "sdeventplus" ?


Thanks very mouch.
Johny




















[-- Attachment #1.2: Type: text/html, Size: 4305 bytes --]

[-- Attachment #2: gtest_make.png --]
[-- Type: image/png, Size: 70912 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re:Re: Fw:How to use gtest/gmock in openbmc
  2019-09-12  3:45 ` William Kennington
@ 2019-09-14  6:47   ` 常晓明
  2019-09-17  2:25   ` sdbusplus make check error 常晓明
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: 常晓明 @ 2019-09-14  6:47 UTC (permalink / raw)
  To: William Kennington; +Cc: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 1613 bytes --]

Hi, William,


Thanks for your reply.
You need to have all of the requisite packages in your development environment, then you can run
```
meson setup build
meson test -C build

```
Could you tell me exactly which packages are needed ?


>The easiest way to do this is to use the docker environment from
>https://github.com/openbmc/openbmc-build-scripts, specifically the

>script `run-unit-test-docker.sh`
I ran "./run-unit-test-docker.sh" , it shows something errors, I think it maybe need some options.
Could you give me an example, like test the "sdbusplus"?


Johny
Thanks very much




At 2019-09-12 11:45:26, "William Kennington" <wak@google.com> wrote:
>You need to have all of the requisite packages in your development
>environment, then you can run
>```
>meson setup build
>meson test -C build
>```
>which reminds me, i need to update the documentation in the readme...
>
>The easiest way to do this is to use the docker environment from
>https://github.com/openbmc/openbmc-build-scripts, specifically the
>script `run-unit-test-docker.sh`
>
>On Wed, Sep 11, 2019 at 8:26 PM 常晓明 <xiaoqian1641@163.com> wrote:
>>
>> Hi, OpenBMC development member,
>>
>> I'm learning openbmc via github.
>> I wanted to test the code of OpenBMC through Gtest/Gmock, And I Found the OpenBMC source code already had the test package,but it cannot be compiled according to README.md.
>> I think it may be my compilation method is not correct, Do you have any documentation about this ?
>>
>> Could you tell me How to test "sdeventplus" ?
>>
>> Thanks very mouch.
>> Johny
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 2567 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* sdbusplus make check error
  2019-09-12  3:45 ` William Kennington
  2019-09-14  6:47   ` 常晓明
@ 2019-09-17  2:25   ` 常晓明
  2019-09-19 11:03   ` 常晓明
                     ` (4 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: 常晓明 @ 2019-09-17  2:25 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 3139 bytes --]

Hi,All,


I'm running tests in SDK . In sdbusplus, follow the steps:
./bootstrap.sh
./configure ${CONFIGURE_FLAGS} --enable-oe-sdk
make check
when "make check", It shows next , I don't konw what went wrong, and how to fix it? 
Making check in .
make[1]: Entering directory `/home/root1/sdbusplus'
  CXX      sdbusplus/libsdbusplus_la-exception.lo
  CXX      sdbusplus/libsdbusplus_la-sdbus.lo
  CXXLD    libsdbusplus.la
make[1]: Leaving directory `/home/root1/sdbusplus'
Making check in tools
make[1]: Entering directory `/home/root1/sdbusplus/tools'
running build
make[1]: Leaving directory `/home/root1/sdbusplus/tools'
Making check in example
make[1]: Entering directory `/home/root1/sdbusplus/example'
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            interface server-header net.poettering.Calculator > net/poettering/Calculator/server.hpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            interface server-cpp net.poettering.Calculator > net/poettering/Calculator/server.cpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            error exception-header net.poettering.Calculator > net/poettering/Calculator/error.hpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            error exception-cpp net.poettering.Calculator > net/poettering/Calculator/error.cpp
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            interface markdown net.poettering.Calculator > calculator.md
../tools/sdbus++ \
            -r . -t ../tools/sdbusplus/templates \
            error markdown net.poettering.Calculator >> calculator.md
make  check-am
make[2]: Entering directory `/home/root1/sdbusplus/example'
  CXX      list_users-list-users.o
  CXXLD    list-users
  CXX      calculator_server-calculator-server.o
  CXX      net/poettering/Calculator/calculator_server-server.o
  CXX      net/poettering/Calculator/calculator_server-error.o
  CXXLD    calculator-server
make[2]: Leaving directory `/home/root1/sdbusplus/example'
make[1]: Leaving directory `/home/root1/sdbusplus/example'
Making check in test
make[1]: Entering directory `/home/root1/sdbusplus/test'
make  bus_list_names bus_match exception_sdbus_error message_append message_read message_native_types message_types utility_tuple_to_array utility_type_traits vtable_vtable timer
make[2]: Entering directory `/home/root1/sdbusplus/test'
  CXX      bus/list_names.o
  CXXLD    bus_list_names
/home/root1/sdk/sysroots/x86_64-oesdk-linux/usr/libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/9.2.0/real-ld: /home/root1/sdk/sysroots/armv5e-openbmc-linux-gnueabi/usr/lib/libgmock_main.a(gmock_main.cc.o): in function `main':
/usr/src/debug/googletest/1.8.1-r0/git/googlemock/src/gmock_main.cc:52: undefined reference to `testing::InitGoogleMock(int*, char**)'
collect2: error: ld returned 1 exit status
make[2]: *** [bus_list_names] Error 1
make[2]: Leaving directory `/home/root1/sdbusplus/test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/root1/sdbusplus/test'
make: *** [check-recursive] Error 1

Johny
Thanks

[-- Attachment #2: Type: text/html, Size: 3536 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* sdbusplus make check error
  2019-09-12  3:45 ` William Kennington
  2019-09-14  6:47   ` 常晓明
  2019-09-17  2:25   ` sdbusplus make check error 常晓明
@ 2019-09-19 11:03   ` 常晓明
  2019-11-13  6:41     ` How to trigger BMC dumps 常晓明
  2019-09-23  7:24   ` How to make OpenBMC Web automatically redirect to HTTPS 常晓明
                     ` (3 subsequent siblings)
  6 siblings, 1 reply; 16+ messages in thread
From: 常晓明 @ 2019-09-19 11:03 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 1979 bytes --]

Hi,All,


I'm running tests in SDK . In sdbusplus, follow the steps:
./bootstrap.sh
./configure ${CONFIGURE_FLAGS} --enable-oe-sdk
make check
when "make check", It shows next , I don't konw what went wrong, and how to fix it?
make[3]: Leaving directory `/home/root1/sdbusplus/test'
make  check-TESTS
make[3]: Entering directory `/home/root1/sdbusplus/test'
make[4]: Entering directory `/home/root1/sdbusplus/test'
FAIL: bus_list_names
FAIL: bus_match
FAIL: exception_sdbus_error
FAIL: message_append
FAIL: message_read
FAIL: message_native_types
FAIL: message_types
FAIL: utility_tuple_to_array
FAIL: utility_type_traits
FAIL: vtable_vtable
FAIL: timer
============================================================================
Testsuite summary for sdbusplus 1.0
============================================================================
# TOTAL: 11
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  11
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://github.com/openbmc/sdbusplus/issues
============================================================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/home/root1/sdbusplus/test'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/home/root1/sdbusplus/test'
make[2]: *** [check-am] Error 2
make[2]: Target `check' not remade because of errors.
make[2]: Leaving directory `/home/root1/sdbusplus/test'
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/home/root1/sdbusplus'
make: [check-code-coverage] Error 2 (ignored)
make[1]: Entering directory `/home/root1/sdbusplus'
  LCOV   --capture sdbusplus-1.0-coverage.info
geninfo: ERROR: no .gcda files found in .!
make[1]: *** [code-coverage-capture] Error 255
make[1]: Leaving directory `/home/root1/sdbusplus'
make: *** [check-code-coverage] Error 2


Johny
Thanks




 

[-- Attachment #2: Type: text/html, Size: 3011 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* How to make OpenBMC Web automatically redirect  to HTTPS
  2019-09-12  3:45 ` William Kennington
                     ` (2 preceding siblings ...)
  2019-09-19 11:03   ` 常晓明
@ 2019-09-23  7:24   ` 常晓明
  2019-09-23  7:31   ` 常晓明
                     ` (2 subsequent siblings)
  6 siblings, 0 replies; 16+ messages in thread
From: 常晓明 @ 2019-09-23  7:24 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

Hi,All,


When I login OpenBMC Web, I must input "https://10.0.15.43" instead of "10.0.15.43"


How to make OpenBMC Web automatically redirect  to HTTPS ?




Johny
Thanks




 

[-- Attachment #2: Type: text/html, Size: 1126 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* How to make OpenBMC Web automatically redirect  to HTTPS
  2019-09-12  3:45 ` William Kennington
                     ` (3 preceding siblings ...)
  2019-09-23  7:24   ` How to make OpenBMC Web automatically redirect to HTTPS 常晓明
@ 2019-09-23  7:31   ` 常晓明
  2019-09-23  7:37   ` 常晓明
  2019-09-24 12:09   ` sdbusplus make check error 常晓明
  6 siblings, 0 replies; 16+ messages in thread
From: 常晓明 @ 2019-09-23  7:31 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

Hi,All,


When I login OpenBMC Web, I must input "https://10.0.15.43" instead of "10.0.15.43"


How to make OpenBMC Web automatically redirect  to HTTPS ?




Johny
Thanks




 





 

[-- Attachment #2: Type: text/html, Size: 1264 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* How to make OpenBMC Web automatically redirect  to HTTPS
  2019-09-12  3:45 ` William Kennington
                     ` (4 preceding siblings ...)
  2019-09-23  7:31   ` 常晓明
@ 2019-09-23  7:37   ` 常晓明
  2019-09-24 14:21     ` Joseph Reynolds
  2019-09-24 12:09   ` sdbusplus make check error 常晓明
  6 siblings, 1 reply; 16+ messages in thread
From: 常晓明 @ 2019-09-23  7:37 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

Hi,All,


When I login OpenBMC Web, I must input "https://10.0.15.43" instead of "10.0.15.43"


How to make OpenBMC Web automatically redirect  to HTTPS ?




Johny
Thanks




 





 





 

[-- Attachment #2: Type: text/html, Size: 1402 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* sdbusplus make check error
  2019-09-12  3:45 ` William Kennington
                     ` (5 preceding siblings ...)
  2019-09-23  7:37   ` 常晓明
@ 2019-09-24 12:09   ` 常晓明
  2019-09-24 19:47     ` William Kennington
  6 siblings, 1 reply; 16+ messages in thread
From: 常晓明 @ 2019-09-24 12:09 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 1986 bytes --]

Hi,All,


I'm running tests in SDK . In sdbusplus, follow the steps:
./bootstrap.sh
./configure ${CONFIGURE_FLAGS} --enable-oe-sdk
make check
when "make check", It shows next , I don't konw what went wrong, and how to fix it?
make[3]: Leaving directory `/home/root1/sdbusplus/test'
make  check-TESTS
make[3]: Entering directory `/home/root1/sdbusplus/test'
make[4]: Entering directory `/home/root1/sdbusplus/test'
FAIL: bus_list_names
FAIL: bus_match
FAIL: exception_sdbus_error
FAIL: message_append
FAIL: message_read
FAIL: message_native_types
FAIL: message_types
FAIL: utility_tuple_to_array
FAIL: utility_type_traits
FAIL: vtable_vtable
FAIL: timer
============================================================================
Testsuite summary for sdbusplus 1.0
============================================================================
# TOTAL: 11
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  11
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://github.com/openbmc/sdbusplus/issues
============================================================================
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/home/root1/sdbusplus/test'
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/home/root1/sdbusplus/test'
make[2]: *** [check-am] Error 2
make[2]: Target `check' not remade because of errors.
make[2]: Leaving directory `/home/root1/sdbusplus/test'
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/home/root1/sdbusplus'
make: [check-code-coverage] Error 2 (ignored)
make[1]: Entering directory `/home/root1/sdbusplus'
  LCOV   --capture sdbusplus-1.0-coverage.info
geninfo: ERROR: no .gcda files found in .!
make[1]: *** [code-coverage-capture] Error 255
make[1]: Leaving directory `/home/root1/sdbusplus'
make: *** [check-code-coverage] Error 2


Johny
Thanks




 





 

[-- Attachment #2: Type: text/html, Size: 3149 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: How to make OpenBMC Web automatically redirect to HTTPS
  2019-09-23  7:37   ` 常晓明
@ 2019-09-24 14:21     ` Joseph Reynolds
  0 siblings, 0 replies; 16+ messages in thread
From: Joseph Reynolds @ 2019-09-24 14:21 UTC (permalink / raw)
  To: 常晓明, OpenBMC Development


On 9/23/19 2:37 AM, 常晓明 wrote:
> Hi,All,
>
> When I login OpenBMC Web, I must input "https://10.0.15.43" 
> <https://10.0.15.43",> instead of "10.0.15.43"
>
> How to make OpenBMC Web automatically redirect  to HTTPS ?
>

There is a design proposal for this here:
https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/24173

- Joseph
>
> Johny
> Thanks
>
>
>
>
>
>
>
>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: sdbusplus make check error
  2019-09-24 12:09   ` sdbusplus make check error 常晓明
@ 2019-09-24 19:47     ` William Kennington
  0 siblings, 0 replies; 16+ messages in thread
From: William Kennington @ 2019-09-24 19:47 UTC (permalink / raw)
  To: 常晓明; +Cc: OpenBMC Development

You might not have a session DBus that satisfies the needs of the test
suite. I recommend running it in the docker container.

On Tue, Sep 24, 2019 at 5:13 AM 常晓明 <xiaoqian1641@163.com> wrote:
>
> Hi,All,
>
> I'm running tests in SDK . In sdbusplus, follow the steps:
>
> ./bootstrap.sh
> ./configure ${CONFIGURE_FLAGS} --enable-oe-sdk
> make check
>
> when "make check", It shows next , I don't konw what went wrong, and how to fix it?
>
> make[3]: Leaving directory `/home/root1/sdbusplus/test'
> make  check-TESTS
> make[3]: Entering directory `/home/root1/sdbusplus/test'
> make[4]: Entering directory `/home/root1/sdbusplus/test'
> FAIL: bus_list_names
> FAIL: bus_match
> FAIL: exception_sdbus_error
> FAIL: message_append
> FAIL: message_read
> FAIL: message_native_types
> FAIL: message_types
> FAIL: utility_tuple_to_array
> FAIL: utility_type_traits
> FAIL: vtable_vtable
> FAIL: timer
> ============================================================================
> Testsuite summary for sdbusplus 1.0
> ============================================================================
> # TOTAL: 11
> # PASS:  0
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  11
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> See test/test-suite.log
> Please report to https://github.com/openbmc/sdbusplus/issues
> ============================================================================
> make[4]: *** [test-suite.log] Error 1
> make[4]: Leaving directory `/home/root1/sdbusplus/test'
> make[3]: *** [check-TESTS] Error 2
> make[3]: Leaving directory `/home/root1/sdbusplus/test'
> make[2]: *** [check-am] Error 2
> make[2]: Target `check' not remade because of errors.
> make[2]: Leaving directory `/home/root1/sdbusplus/test'
> make[1]: *** [check-recursive] Error 1
> make[1]: Target `check' not remade because of errors.
> make[1]: Leaving directory `/home/root1/sdbusplus'
> make: [check-code-coverage] Error 2 (ignored)
> make[1]: Entering directory `/home/root1/sdbusplus'
>   LCOV   --capture sdbusplus-1.0-coverage.info
> geninfo: ERROR: no .gcda files found in .!
> make[1]: *** [code-coverage-capture] Error 255
> make[1]: Leaving directory `/home/root1/sdbusplus'
> make: *** [check-code-coverage] Error 2
>
>
> Johny
> Thanks
>
>
>
>
>
>
>
>
>
>
>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* How to trigger BMC dumps
  2019-09-19 11:03   ` 常晓明
@ 2019-11-13  6:41     ` 常晓明
  2019-11-13  7:15       ` George Keishing
  0 siblings, 1 reply; 16+ messages in thread
From: 常晓明 @ 2019-11-13  6:41 UTC (permalink / raw)
  To: OpenBMC Development

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

Hi, All,


I am tring to trigger BMC dumps, follow https://github.com/xcat2/xcat-core/issues/4235
1. Login BMC
           curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST https://127.0.0.1:2443/login -d "{\"data\": [ \"root\", \"0penBmc\" ] }"
2. List available dumps
         curl -c cjar -b cjar -k https://127.0.0.1:2443/xyz/openbmc_project/dump/list
3. When Manually trigger a generation of a dump
        curl -c cjar -b cjar -k -H "Content-Type: application/json" -d "{\"data\": []}" -X POST  https://127.0.0.1:2443/xyz/openbmc_project/dump/action/CreateDump
    The cosole display :  Unauthorized
Does anyone know what happened?


Thanks


Johny


[-- Attachment #2: Type: text/html, Size: 2007 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re:  How to trigger BMC dumps
  2019-11-13  6:41     ` How to trigger BMC dumps 常晓明
@ 2019-11-13  7:15       ` George Keishing
  2019-11-13  7:30         ` George Keishing
  0 siblings, 1 reply; 16+ messages in thread
From: George Keishing @ 2019-11-13  7:15 UTC (permalink / raw)
  To: 常晓明; +Cc: OpenBMC Development


[-- Attachment #1.1: Type: text/plain, Size: 2020 bytes --]

$ export BMC_IP=xx.xx.xx.xx

$ curl -k -H "Content-Type: application/json" -X POST https://$
{BMC_IP}/login -d '{"username" :  "root", "password" :  "0penBmc"}'
{
  "token": "hgatflkePN1rla5rpmh2"
}

$ export bmc_token=hgatflkePN1rla5rpmh2

$  curl -k -H "X-Auth-Token: $bmc_token" -d "{\"data\": []}" -X POST
https://$BMC_IP/xyz/openbmc_project/dump/action/CreateDump
{
  "data": 1,
  "message": "200 OK",
  "status": "ok"
}

$ curl -k -H "X-Auth-Token: $bmc_token" -X GET
https://$BMC_IP/xyz/openbmc_project/dump/list
{
  "data": [
    "/xyz/openbmc_project/dump/entry",
    "/xyz/openbmc_project/dump/entry/1",
    "/xyz/openbmc_project/dump/internal",
    "/xyz/openbmc_project/dump/internal/manager"
  ],
  "message": "200 OK",
  "status": "ok"
}

$ curl -k -H "X-Auth-Token: $bmc_token" -X GET
https://$BMC_IP/xyz/openbmc_project/dump/entry/1
{
  "data": {
    "Elapsed": 1573629177,
    "Size": 178364
  },
  "message": "200 OK",
  "status": "ok"
}

Thanks and Regards,
   George Keishing





From:	"常晓明" <xiaoqian1641@163.com>
To:	"OpenBMC Development" <openbmc@lists.ozlabs.org>
Date:	13-11-2019 12:28
Subject:	[EXTERNAL] How to trigger BMC dumps
Sent by:	"openbmc" <openbmc-bounces
            +gkeishin=in.ibm.com@lists.ozlabs.org>



Hi, All,

I am tring to trigger BMC dumps, follow
https://github.com/xcat2/xcat-core/issues/4235
1. Login BMC
           curl -c cjar -b cjar -k -H "Content-Type: application/json" -X
POST https://127.0.0.1:2443/login -d "{\"data\": [ \"root\", \"0penBmc
\" ] }"
2. List available dumps
         curl -c cjar -b cjar -k
https://127.0.0.1:2443/xyz/openbmc_project/dump/list
3. When Manually trigger a generation of a dump
        curl -c cjar -b cjar -k -H "Content-Type: application/json" -d
"{\"data\": []}" -X POST
https://127.0.0.1:2443/xyz/openbmc_project/dump/action/CreateDump
    The cosole display :  Unauthorized
Does anyone know what happened?

Thanks

Johny












[-- Attachment #1.2: Type: text/html, Size: 5582 bytes --]

[-- Attachment #2: graycol.gif --]
[-- Type: image/gif, Size: 105 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE:  How to trigger BMC dumps
  2019-11-13  7:15       ` George Keishing
@ 2019-11-13  7:30         ` George Keishing
  0 siblings, 0 replies; 16+ messages in thread
From: George Keishing @ 2019-11-13  7:30 UTC (permalink / raw)
  To: xiaoqian1641; +Cc: OpenBMC Development, openbmc


[-- Attachment #1.1: Type: text/plain, Size: 3587 bytes --]


You can simply use this tool from DMTF redfish
https://github.com/DMTF/Redfishtool

and run the command as

$ redfishtool -r xx.xx.xx.xx -u root -p 0penBmc -S Always raw
POST /xyz/openbmc_project/dump/action/CreateDump --data="{\"data\": []}"
{
    "data": 2,
    "status": "ok",
    "message": "200 OK"
}


$ redfishtool -r xx.xx.xx.xx -u root -p 0penBmc -S Always raw
GET /xyz/openbmc_project/dump/list
{
    "data": [
        "/xyz/openbmc_project/dump/entry",
        "/xyz/openbmc_project/dump/entry/1",
        "/xyz/openbmc_project/dump/entry/2",
        "/xyz/openbmc_project/dump/internal",
        "/xyz/openbmc_project/dump/internal/manager"
    ],
    "status": "ok",
    "message": "200 OK"
}


$ redfishtool -r xx.xx.xx.xx -u root -p 0penBmc -S Always raw
GET /xyz/openbmc_project/dump/entry/2
{
    "status": "ok",
    "message": "200 OK",
    "data": {
        "Elapsed": 1573629994,
        "Size": 196276
    }
}


Thanks and Regards,
   George Keishing
   IBM Systems &Technology Lab, Firmware Development,
“ There isn't enough time in a day to be lazy!!! .”





From:	"George Keishing" <gkeishin@in.ibm.com>
To:	"常晓明" <xiaoqian1641@163.com>
Cc:	OpenBMC Development <openbmc@lists.ozlabs.org>
Date:	13-11-2019 12:48
Subject:	[EXTERNAL] Re:  How to trigger BMC dumps
Sent by:	"openbmc" <openbmc-bounces
            +gkeishin=in.ibm.com@lists.ozlabs.org>



$ export BMC_IP=xx.xx.xx.xx

$ curl -k -H "Content-Type: application/json" -X POST https://$
{BMC_IP}/login -d '{"username" : "root", "password" : "0penBmc"}'
{
"token": "hgatflkePN1rla5rpmh2"
}

$ export bmc_token=hgatflkePN1rla5rpmh2

$ curl -k -H "X-Auth-Token: $bmc_token" -d "{\"data\": []}" -X POST
https://$BMC_IP/xyz/openbmc_project/dump/action/CreateDump
{
"data": 1,
"message": "200 OK",
"status": "ok"
}

$ curl -k -H "X-Auth-Token: $bmc_token" -X GET
https://$BMC_IP/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/entry",
"/xyz/openbmc_project/dump/entry/1",
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}

$ curl -k -H "X-Auth-Token: $bmc_token" -X GET
https://$BMC_IP/xyz/openbmc_project/dump/entry/1
{
"data": {
"Elapsed": 1573629177,
"Size": 178364
},
"message": "200 OK",
"status": "ok"
}

Thanks and Regards,
George Keishing



Inactive hide details for "常晓明" ---13-11-2019 12:28:26---Hi, All, I am
tring to trigger BMC dumps, follow https://urldefe"常晓明" ---13-11-2019
12:28:26---Hi, All, I am tring to trigger BMC dumps, follow INVALID URI
REMOVED

From: "常晓明" <xiaoqian1641@163.com>
To: "OpenBMC Development" <openbmc@lists.ozlabs.org>
Date: 13-11-2019 12:28
Subject: [EXTERNAL] How to trigger BMC dumps
Sent by: "openbmc" <openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org>



Hi, All,

I am tring to trigger BMC dumps, follow
https://github.com/xcat2/xcat-core/issues/4235
1. Login BMC
curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST
https://127.0.0.1:2443/login -d "{\"data\": [ \"root\", \"0penBmc\" ] }"
2. List available dumps
curl -c cjar -b cjar -k
https://127.0.0.1:2443/xyz/openbmc_project/dump/list
3. When Manually trigger a generation of a dump
curl -c cjar -b cjar -k -H "Content-Type: application/json" -d "{\"data\":
[]}" -X POST
https://127.0.0.1:2443/xyz/openbmc_project/dump/action/CreateDump
The cosole display : Unauthorized
Does anyone know what happened?

Thanks

Johny











[-- Attachment #1.2: Type: text/html, Size: 8752 bytes --]

[-- Attachment #2: 1A746688.jpg --]
[-- Type: image/jpeg, Size: 7547 bytes --]

[-- Attachment #3: graycol.gif --]
[-- Type: image/gif, Size: 105 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-11-13  7:30 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12  3:09 Fw:How to use gtest/gmock in openbmc 常晓明
2019-09-12  3:45 ` William Kennington
2019-09-14  6:47   ` 常晓明
2019-09-17  2:25   ` sdbusplus make check error 常晓明
2019-09-19 11:03   ` 常晓明
2019-11-13  6:41     ` How to trigger BMC dumps 常晓明
2019-11-13  7:15       ` George Keishing
2019-11-13  7:30         ` George Keishing
2019-09-23  7:24   ` How to make OpenBMC Web automatically redirect to HTTPS 常晓明
2019-09-23  7:31   ` 常晓明
2019-09-23  7:37   ` 常晓明
2019-09-24 14:21     ` Joseph Reynolds
2019-09-24 12:09   ` sdbusplus make check error 常晓明
2019-09-24 19:47     ` William Kennington
2019-09-12  3:51 ` Fw:How to use gtest/gmock in openbmc Samuel Jiang
2019-09-14  6:23   ` 常晓明

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.