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-03-30 18:37:16 +0200
commita58382d3ff774c795d5cf7c583cd1e162c4155a1 (patch)
treeef648a94babb84e7b91b4d729b0596bd9533d803 /test
parent5ef8e3cf29e497c4bade7b78fb68a07c9f33d68f (diff)
downloadafl++-a58382d3ff774c795d5cf7c583cd1e162c4155a1.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"