aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/Makefile6
-rw-r--r--tests/fixtures/README.md11
-rwxr-xr-xtests/fixtures/verify-entity-download.sh2
3 files changed, 14 insertions, 5 deletions
diff --git a/tests/fixtures/Makefile b/tests/fixtures/Makefile
new file mode 100644
index 0000000..be5c111
--- /dev/null
+++ b/tests/fixtures/Makefile
@@ -0,0 +1,6 @@
+SHELL := /bin/bash
+
+.PHONY: verify-entity-download
+verify-entity-download: verify-entity-download.sh
+ bash verify-entity-download.sh
+
diff --git a/tests/fixtures/README.md b/tests/fixtures/README.md
index 26609d2..94bfcdb 100644
--- a/tests/fixtures/README.md
+++ b/tests/fixtures/README.md
@@ -1,13 +1,16 @@
# Fixtures
-Put all data files used as inputs and output here. The wiring can happen in
-code or in a TSV file (for general editing).
+Put all documents used as inputs and output here. The wiring can happen in
+code or in separate file (for general editing).
## verify.csv
-This file contains four columns: two identifiers, a match status and an optional reason.
+This file currently contains four columns: two identifiers, a match status and
+an optional reason.
-```tsv
+If you add lines to this file, the test suite will pick it up automatically.
+
+```csv
7kzrmoajzzedxgdvbltgqihszu,bd4crw4p7ber7pzhpoyw2c77bi,Status.STRONG,OK.SLUG_TITLE_AUTHOR_MATCH,
```
diff --git a/tests/fixtures/verify-entity-download.sh b/tests/fixtures/verify-entity-download.sh
index 79b2f94..790afa0 100755
--- a/tests/fixtures/verify-entity-download.sh
+++ b/tests/fixtures/verify-entity-download.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Fetches release entity references and caches them locally.
+# Fetches release entity mentioned in verify.csv and cache them locally.
set -e -u
set -o pipefail