You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/symqemu/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,19 @@
2
2
3
3
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).
4
4
5
+
To run the tests, cd into this directory and run:
6
+
7
+
```
8
+
python3 -m unittest test.py
9
+
```
10
+
5
11
The directory `binaries` contains a directory for each test binary. A test binary directory contains the following:
6
12
7
13
- An executable file `binary`
8
14
- A file `input` whose path will be given as argument to `binary` and whose content will be symbolic
9
15
- 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.
10
16
- 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.
11
17
12
-
The script `test.py` will automatically run SymQEMU on the binaries and check that it gives the correct output.
13
-
14
18
## Adding a binary
15
19
16
20
- Create a new directory in `binaries` and put the files `binary` and `input` inside it
0 commit comments