Ticket #1366: Add tests for the demo push server
Closes #1366 See ticket #1247 (closed) for implementation details of the demo push server.
To start the tests in dockers:
- build:
./.build-in-docker.sh WITH_ASAN=1 S2OPC_DYNAMIC_TYPE_RESOLUTION=1 ./build.sh
- in build/tests/ClientServer/:
../../../.test-in-docker.sh TEST_PASSWORD_PRIVATE_KEY=password TEST_PASSWORD_CACERT=S2OPC TEST_PASSWORD_USER_ME=1234 ctest -T test -R push_server -V
. It will launch all the tests with name starting withpush_server
(so all the tests of this MR).
EDIT: these tests are made for testing with the above command, in the test-in docker. But in the case where you want to manipulate the binary push_client
and the different possible options, you will have to define the variable TEST_PASSWORD_USER_ME before launching the binary.
EDIT 26/07:
-
Include tests of TOFU Mode ?
Edited by Nathan Lebeau