diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-08 17:30:00 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-09 19:03:54 -0400 |
| commit | 557810df54fb5411c362528b459648611e8267ba (patch) | |
| tree | f93054bbf53b5ae4a84ec341e42d8e076a82b812 /org/tests_for_document_abstraction_shell_scripts.org | |
| parent | output: 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 'org/tests_for_document_abstraction_shell_scripts.org')
| -rw-r--r-- | org/tests_for_document_abstraction_shell_scripts.org | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/org/tests_for_document_abstraction_shell_scripts.org b/org/tests_for_document_abstraction_shell_scripts.org index 4266e8c..1c93eed 100644 --- a/org/tests_for_document_abstraction_shell_scripts.org +++ b/org/tests_for_document_abstraction_shell_scripts.org @@ -87,19 +87,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" @@ -372,7 +379,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 @@ -692,7 +699,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 |
