Use bitcoin_hashes' fixed_time_eq, removing the rust-crypto dep
[rust-lightning] / fuzz / travis-fuzz.sh
index 5129799ae649bcbef9254c6310a5de002e2675d7..86b57fa0b04bae19ffb169ccf512df3fe772efef 100755 (executable)
@@ -1,8 +1,15 @@
 #!/bin/bash
 set -e
+
+pushd fuzz_targets/msg_targets
+rm *_target.rs
+./gen_target.sh
+[ "$(git diff)" != "" ] && exit 1
+popd
+
 cargo install --force honggfuzz
-for TARGET in fuzz_targets/*; do
-    FILENAME=$(basename $TARGET)
+for TARGET in fuzz_targets/*.rs fuzz_targets/msg_targets/*_target.rs; do
+       FILENAME=$(basename $TARGET)
        FILE="${FILENAME%.*}"
        HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" HFUZZ_RUN_ARGS="-N1000000 --exit_upon_crash -v" cargo hfuzz run $FILE
        if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then