blob: 7fae09b6f86610396eabb2f752ccd93752542b7f [file] [log] [blame]
Elliott Hughes5dec78d2014-02-26 15:56:23 -08001To run a test:
2* Run make
3* Run resulting executable(s) under strace
4* Check strace output and/or program's output and exitcode
5
6To add a new test:
7* Add its .c source to this dir
8* Add it to "all" and "clean" targets in Makefile
9* Add it to .gitignore file
10
11Please spend some time making your testcase understandable.
12For example, it may print an explanation how it should be used
13(which strace options to use, and what to look for in strace output).
14
15If possible, make it so that your testcase detects error/bug
16it is intended to test for, and prints error message and exits with 1
17if the bug is detected, instead of relying on user to peruse strace output.