Denys Vlasenko | 8158e77 | 2011-06-08 14:08:59 +0200 | [diff] [blame] | 1 | To 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 | |
| 6 | To 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 | |
| 11 | Please spend some time making your testcase understandable. |
| 12 | For 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 | |
| 15 | If possible, make it so that your testcase detects error/bug |
| 16 | it is intended to test for, and prints error message and exits with 1 |
| 17 | if the bug is detected, instead of relying on user to peruse strace output. |