| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -eux -o pipefail |
| 4 |
|
| 5 |
WORKSPACE_ROOT=$(bazel info workspace) |
| 6 |
|
| 7 |
cd "$WORKSPACE_ROOT" |
| 8 |
|
| 9 |
bazel test --config=asan-libfuzzer //c-toxcore/testing/fuzzing:protodump_reduce_test |
| 10 |
|
| 11 |
bazel build --config=asan-libfuzzer //c-toxcore/testing/fuzzing:protodump |
| 12 |
bazel-bin/c-toxcore/testing/fuzzing/protodump | grep -v '^tox2' |
| 13 |
|
| 14 |
bazel build --config=asan-libfuzzer //c-toxcore/testing/fuzzing:protodump_reduce_bin |
| 15 |
bazel-bin/c-toxcore/testing/fuzzing/protodump_reduce_bin "$PWD/tools/toktok-fuzzer/init/e2e_fuzz_test.dat" |
| 16 |
|
| 17 |
#export PROTODUMP_REDUCE=1 |
| 18 |
#bazel-bin/c-toxcore/testing/fuzzing/protodump_reduce_bin -minimize_crash=1 "$PWD/tools/toktok-fuzzer/init/e2e_fuzz_test.dat" |