Author | Jakob Wakeling <[email protected]> |
Date | 2023-06-29 05:52:01 |
Commit | f05bcdbc0f36b14cc6a35475944ca081233cf497 |
Parent | 6a79f8726e30559134fbd692dff366db7dd748d1 |
Add TestUNIX.sh script for running future tests
Diffstat
A | TestUNIX.sh | | | 10 | ++++++++++ |
1 files changed, 10 insertions, 0 deletions
diff --git a/TestUNIX.sh b/TestUNIX.sh new file mode 100755 index 0000000..4602ba0 --- /dev/null +++ b/TestUNIX.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +dir="$(dirname $(realpath "$0"))" + +cmake -S "${dir}" -B "${dir}/build" \ + -DCMAKE_BUILD_TYPE:STRING=Debug \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=1 + +cmake --build "${dir}/build" + +(cd "${dir}/build"; ctest)