aboutsummaryrefslogtreecommitdiff
path: root/ci/jobs/2-test/test.sh
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2023-09-06 21:28:27 -0400
committerDevan Carpenter <devan@taler.net>2023-09-08 22:25:34 -0400
commit45e3209fa61873db192f02a223dc70464331568e (patch)
tree00ffdf7c43c8a74b4cc0318e61569ae536bb2406 /ci/jobs/2-test/test.sh
parent70e8815fe89fdea8bf75977b7dff2faeea71adbd (diff)
downloadexchange-45e3209fa61873db192f02a223dc70464331568e.tar.xz
ci: add codespell job
Diffstat (limited to 'ci/jobs/2-test/test.sh')
-rwxr-xr-xci/jobs/2-test/test.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/ci/jobs/2-test/test.sh b/ci/jobs/2-test/test.sh
new file mode 100755
index 000000000..6c3d2be21
--- /dev/null
+++ b/ci/jobs/2-test/test.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+set -evu
+
+./bootstrap
+./configure CFLAGS="-ggdb -O0" \
+ --enable-logging=verbose \
+ --disable-doc
+make
+make install
+
+
+check_command()
+{
+ # Set LD_LIBRARY_PATH so tests can find the installed libs
+ LD_LIBRARY_PATH=/usr/local/lib make check
+}
+
+print_logs()
+{
+ for i in src/*/test-suite.log
+ do
+ FAILURE="$(grep '^FAIL:' ${i} | cut -d' ' -f2)"
+ if [ ! -z "${FAILURE}" ]; then
+ echo "Printing ${FAILURE}.log"
+ tail "$(dirname $i)/${FAILURE}.log"
+ fi
+ done
+}
+
+if ! check_command ; then
+ print_logs
+ exit 1
+fi