aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test-abstraction-db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-abstraction-db.sh')
-rw-r--r--[-rwxr-xr-x]test/test-abstraction-db.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test-abstraction-db.sh b/test/test-abstraction-db.sh
index a850187..27a6e65 100755..100644
--- a/test/test-abstraction-db.sh
+++ b/test/test-abstraction-db.sh
@@ -121,10 +121,12 @@ lev4_subtoc|object_subtoc
report() { echo " MISMATCH $1: .ssp $2, db $3"; }
-for ssp in "$OUT_DIR"/*/abstraction/*.ssp; do
+# the .ssp is written into the pod tree (pod/<doc>/media/abstraction/), the
+# database beside it (pod/<uid>.ocda.db)
+for ssp in $(find "$OUT_DIR/pod" -name "*.ssp" 2>/dev/null | sort); do
[ -f "$ssp" ] || continue
- db="${ssp%.ssp}.ocda.db"
base=$(basename "$ssp" .ssp)
+ db="$OUT_DIR/pod/$base.ocda.db"
if [ ! -f "$db" ]; then
echo "MISSING db for $base"
FAILURES=$((FAILURES + 1))