Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make run_test target not working #138

Open
Michael-M-Baron opened this issue Nov 6, 2024 · 0 comments
Open

make run_test target not working #138

Michael-M-Baron opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation question Further information is requested

Comments

@Michael-M-Baron
Copy link
Collaborator

The README.md mentions that a test of the google testsuite can be performed with

cd build
make run_test

This makefile target however does not exist. Calling

cd build
make test

However works:

Running tests...
Test project /home/baronml/libjapi/build
      Start  1: JAPI.Init
 1/15 Test  #1: JAPI.Init ................................................   Passed    0.00 sec
      Start  2: JAPI.GetValueAsX
 2/15 Test  #2: JAPI.GetValueAsX .........................................   Passed    0.00 sec
      Start  3: JAPI.ProcessMessage
 3/15 Test  #3: JAPI.ProcessMessage ......................................   Passed    0.00 sec
      Start  4: JAPI.IncludeArgsWithResponse
 4/15 Test  #4: JAPI.IncludeArgsWithResponse .............................   Passed    0.00 sec
      Start  5: JAPI.Register
 5/15 Test  #5: JAPI.Register ............................................   Passed    0.00 sec
      Start  6: JAPI.ListCommands
 6/15 Test  #6: JAPI.ListCommands ........................................   Passed    0.00 sec
      Start  7: JAPI.AddRemoveClient
 7/15 Test  #7: JAPI.AddRemoveClient .....................................   Passed    0.00 sec
      Start  8: JAPI.TcpKeepAliveSetup
 8/15 Test  #8: JAPI.TcpKeepAliveSetup ...................................   Passed    0.00 sec
      Start  9: JAPI.JAPI_TcpKeepAliveFunctionality
 9/15 Test  #9: JAPI.JAPI_TcpKeepAliveFunctionality ......................   Passed    8.01 sec
      Start 10: JAPI_Push_Service.Register
10/15 Test #10: JAPI_Push_Service.Register ...............................   Passed    0.00 sec
      Start 11: JAPI_Push_Service.SubscribeAndUnsubscribe
11/15 Test #11: JAPI_Push_Service.SubscribeAndUnsubscribe ................   Passed    0.00 sec
      Start 12: JAPI_Push_Service.List
12/15 Test #12: JAPI_Push_Service.List ...................................   Passed    0.00 sec
      Start 13: JAPI_Push_Service.AddRemoveClient
13/15 Test #13: JAPI_Push_Service.AddRemoveClient ........................   Passed    0.00 sec
      Start 14: JAPI_Push_Service.PushServiceDestroy
14/15 Test #14: JAPI_Push_Service.PushServiceDestroy .....................   Passed    0.00 sec
      Start 15: JAPI_Push_Service.PushServiceRemoveEntryFromLInkedList
15/15 Test #15: JAPI_Push_Service.PushServiceRemoveEntryFromLInkedList ...   Passed    0.00 sec

100% tests passed, 0 tests failed out of 15

Total Test time (real) =   8.10 sec

Calling ctest directly with

cd build
ctest

gives the same output as make test:

Test project /home/baronml/libjapi/build
      Start  1: JAPI.Init
 1/15 Test  #1: JAPI.Init ................................................   Passed    0.00 sec
      Start  2: JAPI.GetValueAsX
 2/15 Test  #2: JAPI.GetValueAsX .........................................   Passed    0.00 sec
      Start  3: JAPI.ProcessMessage
 3/15 Test  #3: JAPI.ProcessMessage ......................................   Passed    0.00 sec
      Start  4: JAPI.IncludeArgsWithResponse
 4/15 Test  #4: JAPI.IncludeArgsWithResponse .............................   Passed    0.00 sec
      Start  5: JAPI.Register
 5/15 Test  #5: JAPI.Register ............................................   Passed    0.00 sec
      Start  6: JAPI.ListCommands
 6/15 Test  #6: JAPI.ListCommands ........................................   Passed    0.00 sec
      Start  7: JAPI.AddRemoveClient
 7/15 Test  #7: JAPI.AddRemoveClient .....................................   Passed    0.00 sec
      Start  8: JAPI.TcpKeepAliveSetup
 8/15 Test  #8: JAPI.TcpKeepAliveSetup ...................................   Passed    0.00 sec
      Start  9: JAPI.JAPI_TcpKeepAliveFunctionality
 9/15 Test  #9: JAPI.JAPI_TcpKeepAliveFunctionality ......................   Passed    8.01 sec
      Start 10: JAPI_Push_Service.Register
10/15 Test #10: JAPI_Push_Service.Register ...............................   Passed    0.00 sec
      Start 11: JAPI_Push_Service.SubscribeAndUnsubscribe
11/15 Test #11: JAPI_Push_Service.SubscribeAndUnsubscribe ................   Passed    0.00 sec
      Start 12: JAPI_Push_Service.List
12/15 Test #12: JAPI_Push_Service.List ...................................   Passed    0.00 sec
      Start 13: JAPI_Push_Service.AddRemoveClient
13/15 Test #13: JAPI_Push_Service.AddRemoveClient ........................   Passed    0.00 sec
      Start 14: JAPI_Push_Service.PushServiceDestroy
14/15 Test #14: JAPI_Push_Service.PushServiceDestroy .....................   Passed    0.00 sec
      Start 15: JAPI_Push_Service.PushServiceRemoveEntryFromLInkedList
15/15 Test #15: JAPI_Push_Service.PushServiceRemoveEntryFromLInkedList ...   Passed    0.00 sec

100% tests passed, 0 tests failed out of 15

Total Test time (real) =   8.10 sec
  • Is there just a typo in the Makefile? Then we should combine both commands to the same readme section.
  • Is the google testsuite something completly different which is not triggered correctly?
@Michael-M-Baron Michael-M-Baron added the bug Something isn't working label Nov 6, 2024
@Michael-M-Baron Michael-M-Baron added documentation Improvements or additions to documentation question Further information is requested labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants