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

Merge branch '7-missing-zafl-afl-functional-tests' into 'master'

Resolve "Missing zafl/afl functional tests"

Closes #7

See merge request allnp/zafl_umbrella!2
parents 8cf7138d 4fabdda5
No related branches found
No related tags found
1 merge request!2Resolve "Missing zafl/afl functional tests"
Pipeline #751 passed
...@@ -60,50 +60,49 @@ do-build-centos75: ...@@ -60,50 +60,49 @@ do-build-centos75:
# #
# $PSZ ls # test_cmds.sh zafl
#
#.basic-pgms-zafl: &basic-pgms-zafl
# stage: test
# script:
# - ./cicd_testing/basic-pgms-zafl.sh
#
#basic-pgms-zafl-ubuntu18:
# <<: *basic-pgms-zafl
# tags:
# - ubuntu18
#
#basic-pgms-zafl-ubuntu16:
# <<: *basic-pgms-zafl
# tags:
# - ubuntu16
#
#basic-pgms-zafl-centos75:
# <<: *basic-pgms-zafl
# tags:
# - centos75
# #
.xform-ls: &xform-ls
stage: test
script:
- ./cicd_testing/xform-ls.sh
xform-ls-ubuntu18:
<<: *xform-ls
tags:
- ubuntu18
xform-ls-ubuntu16:
<<: *xform-ls
tags:
- ubuntu16
xform-ls-centos75:
<<: *xform-ls
tags:
- centos75
# #
# test_cmds.sh zafl # test zafl with afl
# #
.basic-pgms-zafl: &basic-pgms-zafl .afl-zafl: &afl-zafl
stage: test stage: test
script: script:
- ./cicd_testing/basic-pgms-zafl.sh - ./cicd_testing/afl-zafl.sh
basic-pgms-zafl-ubuntu18: afl-zafl-ubuntu18:
<<: *basic-pgms-zafl <<: *afl-zafl
tags: tags:
- ubuntu18 - ubuntu18
basic-pgms-zafl-ubuntu16: afl-zafl-ubuntu16:
<<: *basic-pgms-zafl <<: *afl-zafl
tags: tags:
- ubuntu16 - ubuntu16
basic-pgms-zafl-centos75: afl-zafl-centos75:
<<: *basic-pgms-zafl <<: *afl-zafl
tags: tags:
- centos75 - centos75
#!/bin/bash
set -e
set -x
cd /tmp/zafl_test
source set_env_vars
# Test with afl
echo "Core pattern settings"
save_core_pattern=/tmp/$(whoami).core_pattern
sudo cat /proc/sys/kernel/core_pattern > $save_core_pattern
echo "Setup core pattern for afl"
sudo $ZAFL_HOME/zfuzz/util/afl_setup_core_pattern.sh
echo "Test various zafl configurations"
$ZAFL_HOME/zfuzz/test/strings/test_strings.sh
$ZAFL_HOME/zfuzz/test/bc/test_bc.sh
$ZAFL_HOME/zfuzz/test/sha256sum/test_sha256sum.sh
...@@ -7,8 +7,8 @@ source set_env_vars ...@@ -7,8 +7,8 @@ source set_env_vars
cd $PEASOUP_HOME/tests; make clean; cd $PEASOUP_HOME/tests; make clean;
# test zafl config across all default apps # test zafl config across all default apps
./test_cmds.sh -c "zafl" ./test_cmds.sh -c "zafl" -l
# test other zafl configs on various apps # test other zafl configs on various apps
./test_cmds.sh -c "zafl_ida zafl_nostars zafl_opt_graph" -a "tar tcpdump bzip2" ./test_cmds.sh -c "zafl_ida zafl_nostars zafl_opt_graph" -a "tar tcpdump bzip2" -l
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