Fix missing .url files PAZ-977
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 15 Oct 2014 09:43:33 +0000 (11:43 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 15 Oct 2014 09:43:33 +0000 (11:43 +0200)
Add missing .url+.cfg and add proper check for it.

test/Makefile.am
test/run_pazpar2.sh

index 8976541..27583bd 100644 (file)
@@ -12,6 +12,8 @@ EXTRA_DIST = run_pazpar2.sh marc21_test.xsl tmarc.xsl solr-pz2.xsl \
        gils_service.xml marc_service.xml marc21.mmap \
        test_facets.cfg test_facets.urls \
        test_icu.cfg test_icu.urls \
+       test_sru.cfg test_sru.urls \
+       test_perf.cfg test_perf.urls \
        test_http.cfg test_http.urls \
        test_post.cfg test_post.urls \
        test_settings.cfg test_settings.urls \
index 1f4a94d..c0b8f85 100755 (executable)
@@ -59,6 +59,17 @@ if test "x${PREFIX}" = "x"; then
     exit 1
 fi
 
+URLS=${PREFIX}.urls
+if test ! -f ${srcdir}/${URLS}; then
+    echo "${srcdir}/${URLS} missing"
+    exit 1
+fi
+CFG=${PREFIX}.cfg
+if test ! -f ${srcdir}/${CFG}; then
+    echo "${srcdir}/${CFG} missing"
+    exit 1
+fi
+
 # look for curl in PATH
 oIFS=$IFS
 IFS=:
@@ -136,8 +147,6 @@ if [ -z "$SKIP_PAZPAR2" ] ; then
     rm -f ${PREFIX}_pazpar2.log
 fi
 
-CFG=${PREFIX}.cfg
-URLS=${PREFIX}.urls
 VALGRINDLOG=${PREFIX}_valgrind.log
 
 if test `uname` = "Linux"; then