✔ Use same "poor man's fixture" for all tests

This commit is contained in:
Gerber, Mike 2023-08-17 18:37:22 +02:00
parent c26b1bf01d
commit 5ad39e4179
4 changed files with 8 additions and 5 deletions

View file

@ -1,8 +1,8 @@
#!/bin/sh
set -ex
test_name=`basename $0`
cd `mktemp -d /tmp/test-$test_name-XXXXX`
test_id=`basename $0`
cd `mktemp -d /tmp/$test_id-XXXXX`
# Prepare test workspace
wget https://qurator-data.de/examples/actevedef_718448162.first-page+binarization+segmentation.zip

View file

@ -1,7 +1,8 @@
#!/bin/sh
set -ex
cd `mktemp -d /tmp/test-ocrd_olena-XXXXX`
test_id=`basename $0`
cd `mktemp -d /tmp/$test_id-XXXXX`
# Prepare test workspace
wget https://qurator-data.de/examples/actevedef_718448162.first-page+binarization+segmentation.zip

View file

@ -1,7 +1,8 @@
#!/bin/sh
set -ex
cd `mktemp -d /tmp/test-ocrd_tesserocr-XXXXX`
test_id=`basename $0`
cd `mktemp -d /tmp/$test_id-XXXXX`
# Prepare processors
ocrd resmgr download ocrd-tesserocr-recognize Fraktur_GT4HistOCR.traineddata

View file

@ -1,7 +1,8 @@
#!/bin/sh
set -ex
cd `mktemp -d /tmp/test-ocrd_trocr-XXXXX`
test_id=`basename $0`
cd `mktemp -d /tmp/$test_id-XXXXX`
# Prepare processors