This benchmark contains two kinds of test cases: Single and Multi. Single means the test case only contains 1 source file. The test case name is also the file name without extension. Multi means the test case contains multiple source files. There is a list file to list out all related source files. The test case name is the list file name without '.list' extension. For each test case, there are also master files to capture stdout and stderr. During testing, the tool's output on stdout and stderr will be compared with master stdout and stderr respectively. If the check and master comparison is OK, the test case will be marked with 'Pass'. Otherwise the test case is 'Fail'. There are 3 failures:
- The tool failed to check the case, which means the tool returns non-zero after execution.
- There is no master for the test case.
- The comparison between tool stdout/stderr and master stdout/stderr failed.
For example, tool.cfg with 4 config items:
tool: the executable of the tool, which will be executed by driver script.
tool_key: the key of the tool, used in choosing master file to compare.
options: options passed to tool to do SAST scan.
options_key: the key of the options, used in choosing master file to compare.
$ ./scripts/driver.sh -c tool.cfg
$ ./run_xvsa.sh
Run add_testset script with new test set name:
$ ./scripts/add_testset.sh DBZ
TBD
TBD