]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Build test for new fuzzer tools
authorJouni Malinen <j@w1.fi>
Sat, 1 Jun 2019 13:37:53 +0000 (16:37 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Jun 2019 10:00:39 +0000 (13:00 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/fuzzing/build-test.sh [new file with mode: 0755]

diff --git a/tests/fuzzing/build-test.sh b/tests/fuzzing/build-test.sh
new file mode 100755 (executable)
index 0000000..26c94cc
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+error()
+{
+    echo "Build test failed"
+    exit 1
+}
+
+for i in *; do
+    if [ -d $i ]; then
+       cd $i
+       make clean
+       make -j8 || error
+       make clean
+       cd ..
+    fi
+done
+
+echo "Build test succeeded"