run, check and verify a test-case.
The scripts used in the source-directory are used to verify the libmqmsgque library including the all other programming-language components. Testing is done using the tcltest feature of the tcl distribution, the script-execution-tool "Nhi1Exec" and the "make check" feature of automake.
command | definition |
---|---|
help | this message |
help2 | test-tool help message |
log | show the test-testults (only error) |
timer | show summary sorted after "time spend on" |
sort | show summary sorted after "test performed" |
used to execute all tests in parallel to get fast test-results. parallel-testing is a feature auf the automake build tool. Nhi1Make execute NUMCPU-2 parallel test-cases by default.
Nhi1Make -j4 check or Nhi1Exec --check
Nhi1Make check TEST_LOG_FLAGS="--lang-c" or Nhi1Exec --check --lang-c
used to test a singel test-case to verify a specific problem. All tests have to be performed in the:
NHI1-X.X/theLink/tests
directory of the NHI1 installation.
Nhi1Exec expect a executable or a testcase as first argument.
The executable have to use the language postfix to select the language to test.
example: server.{c,cc,cs,go,jv,tcl,pl,rb,php,py}
Nhi1Exec int.test --lng-py-pl
Nhi1Exec --check=maketests/send* --start-thread
Nhi1Exec server.tcl --tcp --port 7777 --spawn
Nhi1Exec all.tcl --lng-go --start-threads --only-binary
Nhi1Exec –help
Nhi1Exec –help-test
Nhi1Exec –help-msgque
man n tcltest