|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
3 |
| -# A helper script to use multidelta to reduce to a minimal set of tests to |
4 |
| -# reproduce a failure. |
| 3 | +# A helper script to use delta/singledelta to reduce to a minimal set of |
| 4 | +# tests to reproduce a failure. |
5 | 5 | # Sometimes the tests interact in unexpected ways, so you need to run two
|
6 | 6 | # or three tests in order to cause the failure to occur. It's tiresome to
|
7 | 7 | # determine a minimal subset of tests by hand; this script automates it.
|
8 | 8 |
|
9 | 9 | # I think https://github.com/DRMacIver/structureshrink would be better than
|
10 |
| -# multidelta for this; multidelta requires strange workarounds. But |
11 |
| -# multidelta is readily available in most distributions' packages, so using |
12 |
| -# that. |
| 10 | +# delta for this; delta requires strange workarounds. But delta is readily |
| 11 | +# available in most distributions' packages, so using that. |
13 | 12 |
|
14 | 13 | set -ue
|
15 | 14 |
|
16 |
| -if ! which multidelta &>/dev/null |
| 15 | +if ! which singledelta &>/dev/null |
17 | 16 | then
|
18 |
| - echo "multidelta not found. Please install it to use this script" >&2 |
| 17 | + echo "singledelta not found. Please install it to use this script" >&2 |
19 | 18 | exit 1
|
20 | 19 | fi
|
21 | 20 |
|
@@ -60,8 +59,7 @@ export REDUCE_TESTS_TEST_EXE=$test_exe
|
60 | 59 |
|
61 | 60 | # We have to add braces around the lines to avoid topformflat messing up the file.
|
62 | 61 | # The braces are removed again inside our helper script.
|
63 |
| -"$test_exe" --list-test-names-only '~[.]' | \ |
64 |
| - grep '[^ ]' | sed 's/.*/{&}/' > list_of_tests || true |
65 |
| -multidelta tools/reduce_tests_helper.sh list_of_tests |
| 62 | +"$test_exe" --list-test-names-only '~[.]' | grep '[^ ]' | sed 's/.*/{&}/' > list_of_tests || true |
| 63 | +singledelta -in_place -test=tools/reduce_tests_helper.sh list_of_tests |
66 | 64 |
|
67 | 65 | # vim:tw=0
|
0 commit comments