vsx0 and dot in the profile file in the
vsx0 home directory. Eg:
vsx0@localhost:~$ . profile
This will set the environment up correctly.
/home/tet/test_sets/results/xxxxe/journal where xxxx is a
four digit number starting at 1 that is increased with each test suite
run. Results of testcase compilations are placed in journal files in a
similarly named directory except ending in 'b' instead of 'e'.
vrpt will generate a report detailing the all of the
testcases executed and the result. There are several result types
which can be separated into two main groups, pass or fail. For more
details see this
document document on test result classification. For testcases
which did not pass the test assertion and test strategy will also be
output.
tjreport
tool. This will produce a summary of all of the testcases run and the
results, or optionally only display those that failed. It can also be
used to intelligently diff between two journal files and
display those testcases for which the results differ between the two
test runs. See the tjreport
man page for detailed information.
/home/tet/test_sets/TESTROOT/tetexec.cfg. Edit the
setting for VSX_DBUG_FLAGS as follows:
VSX_DBUG_FLAGS=t:d,trace:l,2
The setting VSX_DBUG_FILE in the same file specifies
where the debug information is placed. With reference to the source
code for the test suite its often possible to work out the code path
executed. The source tarballs are available from the freestandards
ftp site, or if you prefer unpacked from the
test_sets module in CVS on
Gforge.
The install.sh and tet_vsxgen_*.tgz files must be downloaded. Only the individual test suite tarballs (prefixed with lts_) that you wish to install need to be retrieved. See the README file for details on how test suite version numbers are chosen.
The default values for all the configuration questions are what are used during the build of the binary versions of the test suites. If you believe that a setting is wrong for the platform you are testing please let us know (send an email to lsb-test@lists.linuxbase.org).
/home/tet/test_sets/scen.bld specifies the testcases
which will be built and /home/tet/test_sets/scen.exec
specifies those that will be executed.
vsx0@rockhopper:~$ tccb -p
The names of the testcases will be displayed as they are being
built. Note that build failures will not be shown and you
need to inspect the journal file especially if you have changed
the testcase code.You can build a subset of the available testcases like this:
vsx0@rockhopper:~$ tccb -p -y T.fgetpos
which from the lsb-os test suite would build
/tset/LSB.os/streamio/fgetpos/T.fgetpos, or like this:
vsx0@rockhopper:~$ tccb -p -y string
which from the lsb-os test suite would build:
/tset/LSB.os/string/mblen/T.mblen
/tset/LSB.os/string/mblen_L/T.mblen_L
/tset/LSB.os/string/mbstowcs/T.mbstowcs
/tset/LSB.os/string/memmove/T.memmove
/tset/LSB.os/string/wcstombs/T.wcstombs
/tset/LSB.os/string/wctomb/T.wctomb
You can specify the -y argument multiple times which
will do an inclusive OR of the specified testcases.
tcce command works in a similar manner to the
tccb command but in executing testcases. Eg.
vsx0@rockhopper:~$ tcce -p
which will execute all of the testcases, or
vsx0@rockhopper:~$ tcce -y T.fgetpos
which will execute only the T.fgetpos test.
tccb and tcce are shell functions which call
tcc. You can find out more details on the uses of
tcc in Chapter 6 of the TETware
User Guide.
/home/tet/test_sets/tset when they
are built the binaries are placed under an identical directory
hierarchy under /home/tet/test_sets/TESTROOT/tset.
To run test binaries directly you must first set the following environment
variables:
Then cd to the directory containing the testcase and run the
executable. A journal file will not be created, but the contents of
what would have been placed in the journal file for that test will be
left in export TET_CONFIG=$TET_EXECUTE/tetexec.cfg
export TET_CODE=$HOME/tet_code
tet_xres in the current directory.
You can also specify only specific tests within that binary are to be run. Eg.
./T.makecontext 1,3
will run only the first and third tests in T.makecontext and
./T.wctomb 2-4
will run only the second to fourth tests.
in_rpt call works in an equivalent manner to
printf and the output is put into the journal file.
Makefile for the testcase (it is in the
same directory as the code for the testcase and add debugging
flags to the compile line.
lsb-test@lists.linuxbase.org