Fraunhofer-IIS / libjapi

libjapi is a universal JSON to C API library. It receives newline-delimited JSON (NDJSON) messages via TCP and calls registered C functions. A JSON response is returned for each request. Furthermore, it is also possible to create push services, which asynchronously push JSON messages to the clients subscribed to them.
MIT License
3 stars 1 forks source link

make run_test target not working #138

Open Michael-M-Baron opened 4 weeks ago

Michael-M-Baron commented 4 weeks ago

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 ctestdirectly 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