summaryrefslogtreecommitdiff
path: root/deps/fff/buildandtest
diff options
context:
space:
mode:
Diffstat (limited to 'deps/fff/buildandtest')
-rwxr-xr-xdeps/fff/buildandtest15
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/fff/buildandtest b/deps/fff/buildandtest
new file mode 100755
index 0000000..83ce4c3
--- /dev/null
+++ b/deps/fff/buildandtest
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+# Clear the environment
+rm -fr build fff.h
+mkdir build
+
+# Configure the build
+cmake -B build -DFFF_GENERATE=ON -DFFF_UNIT_TESTING=ON || exit -1
+
+# Build all targets
+cmake --build build || exit -1
+
+# Run all tests
+ctest --test-dir build --output-on-failure