aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-08 17:30:00 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-09 19:03:54 -0400
commit557810df54fb5411c362528b459648611e8267ba (patch)
treef93054bbf53b5ae4a84ec341e42d8e076a82b812 /test
parentoutput: the abstraction artefacts live with the pod (diff)
--ocda-db replaces --show-abstraction-db
ocda (object centric document abstraction) flag --ocda-db (or --abstraction-db) replaces --show-abstraction-db rename results in consequently large diff
Diffstat (limited to 'test')
-rwxr-xr-xtest/run-tests.sh9
-rwxr-xr-x[-rw-r--r--]test/test-abstraction-db-roundtrip.sh2
-rwxr-xr-x[-rw-r--r--]test/test-abstraction-db.sh2
3 files changed, 10 insertions, 3 deletions
diff --git a/test/run-tests.sh b/test/run-tests.sh
index c8869d8..85bbf03 100755
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -64,19 +64,26 @@ test-abstraction-db-roundtrip.sh"
PASSED=0
FAILED=0
RESULTS=""
+LOG="${TMPDIR:-/tmp}/spine-run-tests.$$"
for t in $TESTS; do
printf '%s\n' "── $t"
- if sh "$SCRIPT_DIR/$t" $SPINE_BIN 2>&1 | sed 's/^/ /'; then
+ # the status has to be the test's, not the last command of a pipeline:
+ # "cmd | sed" reports sed's status, which is always 0, and a harness that
+ # cannot fail is worse than no harness
+ if sh "$SCRIPT_DIR/$t" $SPINE_BIN > "$LOG" 2>&1; then
+ sed 's/^/ /' "$LOG"
PASSED=$((PASSED + 1))
RESULTS="$RESULTS
ok $t"
else
+ sed 's/^/ /' "$LOG"
FAILED=$((FAILED + 1))
RESULTS="$RESULTS
FAIL $t"
fi
done
+rm -f "$LOG"
echo ""
echo "summary:$RESULTS"
diff --git a/test/test-abstraction-db-roundtrip.sh b/test/test-abstraction-db-roundtrip.sh
index b3d5b0d..338f375 100644..100755
--- a/test/test-abstraction-db-roundtrip.sh
+++ b/test/test-abstraction-db-roundtrip.sh
@@ -57,7 +57,7 @@ mkdir -p "$OUT_DIR"
echo "spine binary: $SPINE_BIN"
echo "samples: $SAMPLES_DIR"
echo "Generating .ssp and .ocda.db ..."
-$SPINE_BIN --show-abstraction --show-abstraction-db --skip-output \
+$SPINE_BIN --show-abstraction --ocda-db --skip-output \
--output="$OUT_DIR" "$SAMPLES_DIR"/* 2>&1 | tail -1
COUNT=0
diff --git a/test/test-abstraction-db.sh b/test/test-abstraction-db.sh
index 27a6e65..31e5fa5 100644..100755
--- a/test/test-abstraction-db.sh
+++ b/test/test-abstraction-db.sh
@@ -66,7 +66,7 @@ echo "samples: $SAMPLES_DIR"
echo "Generating .ssp and .ocda.db ..."
rm -rf "$OUT_DIR"
mkdir -p "$OUT_DIR"
-$SPINE_BIN --show-abstraction --show-abstraction-db --skip-output \
+$SPINE_BIN --show-abstraction --ocda-db --skip-output \
--output="$OUT_DIR" "$SAMPLES_DIR"/* 2>&1 | tail -1
FAILURES=0