summaryrefslogtreecommitdiff
path: root/tests/README
blob: fa3c0bf9a7035a20e15c0323f1922935054338ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Running test cases in this directory
------------------------------------

runtest.bat is included for compiling and running tests.

Usage:	runtest cl|gcc testname

	"cl" 		calls the VC++ cl compiler/linker
	"gcc"		calls the GNU gcc compiler/linker
	"testname"	is the name of the C source file without the .c

Tests written in this test suite should behave in the following manner:

	* If a test fails, leave main() with a result of 1.

	* If a test succeeds, leave main() with a result of 0.

	* No diagnostic output should appear when the test is succeeding.
	  Diagnostic output may be emitted if something in the test
	  fails, to help determine the cause of the test failure.