afl_tmin: remove duplicate input files

This commit is contained in:
Noah Hellman 2023-05-04 17:55:14 +02:00
parent 0484ee2011
commit 7fc739cad4

View file

@ -95,6 +95,9 @@ afl_tmin:
for f in $$(find tests/afl/out -path '*/${AFL_TARGET_CRASH}/id*'); do \
cargo afl tmin -i $$f -o tmin/$$(basename $$f) tests/afl/target/release/${AFL_TARGET}; \
done
while [ -n "$$(md5sum tmin/* | sort -k1 | rev | uniq -d -f1)" ]; do \
md5sum tmin/* | sort -k1 | rev | uniq -d -f1 | rev | awk '{print $$2}' | xargs rm -f; \
done
clean:
cargo clean