Imported Upstream version 17.15.0
[platform/upstream/libzypp.git] / tests / README
1
2 You can find here unit tests for lot of zypp classes.
3
4 run
5 ctest .
6
7 or the binary itself to run just one test
8
9
10 Note on libboost_unit_test_framework.so.1.38.0
11 ----------------------------------------------
12
13 When you run the tests manually, some of the testcases here may fail
14 with an error message like:
15
16   unknown location(0):            \
17   fatal error in "keyring_test":  \
18   child has exited; pid: 7222; uid: 216; exit value: 2
19
20 This happens because the boost test framework we use monitors the
21 return code of child processes. This monitoring should be turned off.
22
23 You can do this either via a commandfline option:
24
25          ./KeyRing_test --catch_system_errors=no
26
27 Or via an environment variable:
28
29          BOOST_TEST_CATCH_SYSTEM_ERRORS=no ./KeyRing_test