Skip to content
Snippets Groups Projects
Commit a467a48e authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Add dom graph config to tests

parent defd3019
No related branches found
No related tags found
No related merge requests found
...@@ -55,29 +55,17 @@ fuzz_with_zafl() ...@@ -55,29 +55,17 @@ fuzz_with_zafl()
mkdir $session mkdir $session
pushd $session pushd $session
# build ZAFL version of od executable # build ZAFL (with graph optimizations) version of od executable
zafl.sh `which od` od.zafl --tempdir analysis.od.zafl zafl.sh `which od` od.zafl.d.g -d -g --tempdir analysis.od.zafl.d.g
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
log_success "build od.zafl" log_success "build od.zafl.d.g"
else else
log_error "build od.zafl" log_error "build od.zafl.d.g"
fi fi
grep ATTR analysis.od.zafl/logs/zax.log grep ATTR analysis.od.zafl.d.g/logs/zax.log
log_message "Fuzz for $AFL_TIMEOUT secs"
fuzz_with_zafl $(realpath ./od.zafl)
# build ZAFL (no Ida) version of od executable
zafl.sh `which od` od.rida.zafl --tempdir analysis.od.rida.zafl
if [ $? -eq 0 ]; then
log_success "build od.rida.zafl"
else
log_error "build od.rida.zafl"
fi
grep ATTR analysis.od.rida.zafl/logs/zax.log
log_message "Fuzz rida.zafl for $AFL_TIMEOUT secs" log_message "Fuzz rida.zafl for $AFL_TIMEOUT secs"
fuzz_with_zafl $(realpath ./od.rida.zafl) fuzz_with_zafl $(realpath ./od.zafl.d.g)
cleanup cleanup
popd popd
...@@ -63,16 +63,16 @@ mkdir $session ...@@ -63,16 +63,16 @@ mkdir $session
pushd $session pushd $session
# build ZAFL version of strings executable # build ZAFL version of strings executable
zafl.sh `which strings` strings.zafl --tempdir analysis.strings.zafl zafl.sh `which strings` strings.zafl.d.g -d -g --tempdir analysis.strings.zafl
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
log_success "build strings.zafl" log_success "build strings.zafl.d.g"
else else
log_error "build strings.zafl" log_error "build strings.zafl.d.g"
fi fi
grep ATTR analysis.strings.zafl/logs/zax.log grep ATTR analysis.strings.zafl.d.g/logs/zax.log
log_message "Fuzz for $AFL_TIMEOUT secs" log_message "Fuzz for $AFL_TIMEOUT secs"
fuzz_with_zafl $(realpath ./strings.zafl) fuzz_with_zafl $(realpath ./strings.zafl.d.g)
cleanup cleanup
popd popd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment