From 557810df54fb5411c362528b459648611e8267ba Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 8 Sep 2026 17:30:00 -0400 Subject: --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 --- org/tests_for_document_abstraction_shell_scripts.org | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'org/tests_for_document_abstraction_shell_scripts.org') 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 -- cgit v1.2.3