summaryrefslogtreecommitdiffhomepage
path: root/contrib
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-03 19:27:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-04 06:58:21 +0100
commitf212a76ae68978f1360a9c8b3c1b5a001faa3380 (patch)
tree5f1f9fb770959839b7bd94cc78e3ba79b23d55cb /contrib
parentc06dce5337291728b3efd224d8642daff3df3807 (diff)
contrib: add directory
Diffstat (limited to 'contrib')
-rw-r--r--contrib/all.sh52
-rw-r--r--contrib/gdbinit-editor6
-rw-r--r--contrib/gdbinit-test6
3 files changed, 64 insertions, 0 deletions
diff --git a/contrib/all.sh b/contrib/all.sh
new file mode 100644
index 00000000..913abcb9
--- /dev/null
+++ b/contrib/all.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+set -eu
+set_pipefail() { test $# -lt 5 && set -o pipefail || true; }
+set_pipefail {1,2,3,4,5} # detect dash
+beep() { printf \\a >&2; }
+test -z "$MAGNUM_LOG" && export MAGNUM_LOG=default
+
+trap 'cleanup $?' exit
+cleanup() {
+ local i ret=$1
+ set +x
+ for i in 1 2 3 4 5; do beep; sleep 0.2; done
+ exit $ret
+}
+
+run_test() {
+ local dir="$(basename -- "$PWD")"
+ cd install/bin &&
+ if test -e floormat-test-asan.exe; then
+ ./floormat-test-asan "$@"
+ else
+ ./floormat-test "$@"
+ fi
+}
+
+#cd "$(dirname -- "$0" || exit $?)"
+cd f:/build/floormat
+#set -x
+
+configurations='
+clang64 clang clang-asan clang-release
+mingw64 gcc gcc-release
+msvc64 msvc-debug msvc
+'
+
+printf "%s\\n" "$configurations" |
+while read wrapper configs; do
+ for i in $configs; do
+ (
+ cd $i
+ printf -- "> Entering directory %s\\n" "$i"
+ "$wrapper" cmake c:/repos/floormat >/dev/null
+ "$wrapper" ninja "$@" install
+ printf -- "* Running tests for %s\\n" "$i"
+ run_test
+ printf -- "< Exiting directory %s\\n" "$i"
+ )
+ done
+done
+
+exit 0
diff --git a/contrib/gdbinit-editor b/contrib/gdbinit-editor
new file mode 100644
index 00000000..f7b0afab
--- /dev/null
+++ b/contrib/gdbinit-editor
@@ -0,0 +1,6 @@
+file f:/build/floormat/gcc/install/bin/floormat-editor.exe
+#b abort
+#b exit
+#b _Exit
+#b _exit
+b std::terminate
diff --git a/contrib/gdbinit-test b/contrib/gdbinit-test
new file mode 100644
index 00000000..65aafe11
--- /dev/null
+++ b/contrib/gdbinit-test
@@ -0,0 +1,6 @@
+file f:/build/floormat/gcc/install/bin/floormat-test.exe
+#b abort
+#b exit
+#b _Exit
+#b _exit
+b std::terminate