about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-30 18:37:16 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:07 +0200
commit9cab515e5880b7f61e395dd3fa612d88c1db671f (patch)
treeef648a94babb84e7b91b4d729b0596bd9533d803 /test
parent514036898fd4535c7f23fce2f7b368a84939d6a0 (diff)
downloadafl++-9cab515e5880b7f61e395dd3fa612d88c1db671f.tar.gz
added unittests to test.sh
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh
index 3e1b6c43..de730c15 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -969,6 +969,10 @@ test -e test-custom-mutator.c -a -e ${CUSTOM_MUTATOR_PATH}/example.c -a -e ${CUS
 }
 unset CUSTOM_MUTATOR_PATH
 
+$ECHO "$BLUE[*] Execution cmocka Unit-Tests $GREY"
+unset AFL_CC
+make -C .. unit || "$CODE" = "1"
+
 $ECHO "$GREY[*] all test cases completed.$RESET"
 test "$INCOMPLETE" = "0" && $ECHO "$GREEN[+] all test cases executed"
 test "$INCOMPLETE" = "1" && $ECHO "$YELLOW[-] not all test cases were executed"