Skip to content

Commit 06ffdc6

Browse files
committed
improve tests readme
1 parent 31084b0 commit 06ffdc6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/symqemu/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
The purpose of those tests is to automatically run SymQEMU on some known binaries and check that it gives the expected outputs (i.e. check that it generate the expected test cases).
44

5+
To run the tests, cd into this directory and run:
6+
7+
```
8+
python3 -m unittest test.py
9+
```
10+
511
The directory `binaries` contains a directory for each test binary. A test binary directory contains the following:
612

713
- An executable file `binary`
814
- A file `input` whose path will be given as argument to `binary` and whose content will be symbolic
915
- A text file `args` that contains the arguments `binary` will be called with. One of the arguments must be `@@` and it will be replaced with the path of the `input` file.
1016
- A directory `expected_outputs` : the test cases that SymQEMU should generate when called like this : `<symqemu> <path/to/binary> <args>`, with the content of `input` being symbolic.
1117

12-
The script `test.py` will automatically run SymQEMU on the binaries and check that it gives the correct output.
13-
1418
## Adding a binary
1519

1620
- Create a new directory in `binaries` and put the files `binary` and `input` inside it

0 commit comments

Comments
 (0)