• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//[example_output
2# content of the file
3> more test_file.txt
410.2 30.4
510.3 30.2
615.987984 15.9992
715.997984 15.9962
8
9# Example run 1
10> runtime_configuration4 --log_level=all  -- --test-file test_file.txt
11Running 2 test cases...
12Entering test module "runtime_configuration4"
13test.cpp:107: Entering test suite "command_line_test_file"
14test.cpp:107: Entering test case "_0"
15test.cpp:108: info: check input <= expected has passed
16Assertion occurred in a following context:
17    input = 15.9879837; expected = 15.9991999;
18test.cpp:107: Leaving test case "_0"; testing time: 433us
19test.cpp:107: Entering test case "_1"
20test.cpp:108: error: in "command_line_test_file/_1": check input <= expected has failed [15.9979839 > 15.9961996]
21Failure occurred in a following context:
22    input = 15.9979839; expected = 15.9961996;
23test.cpp:107: Leaving test case "_1"; testing time: 114us
24test.cpp:107: Leaving test suite "command_line_test_file"; testing time: 616us
25Leaving test module "runtime_configuration4"; testing time: 881us
26
27*** 1 failure is detected in the test module "runtime_configuration4"
28
29# Example run 2
30> runtime_configuration4 --log_level=all  -- --test-file non-existant.txt
31Test setup error: Cannot open the file 'non-existant.txt'
32
33# Example run 3
34> runtime_configuration4 --log_level=all
35Test setup error: Incorrect number of arguments
36//]
37