testing/tests/tracing.test
raw| 1 | # %TEST-EXEC-FAIL: btest -d --trace-file=trace.json t1 t2 t3 |
| 2 | # %TEST-EXEC: cat trace.json | python -c 'import json, sys; xs = json.load(sys.stdin); print(len(xs)); print(sorted([str(x) for x in xs[0].keys()]))' > output |
| 3 | # %TEST-EXEC: btest-diff output |
| 4 | |
| 5 | %TEST-START-FILE t1 |
| 6 | @TEST-EXEC: exit 0 |
| 7 | %TEST-END-FILE |
| 8 | |
| 9 | %TEST-START-FILE t2 |
| 10 | @TEST-EXEC: exit 1 |
| 11 | %TEST-END-FILE |
| 12 | |
| 13 | %TEST-START-FILE t3 |
| 14 | @TEST-EXEC: exit 0 |
| 15 | %TEST-END-FILE |