]> granicus.if.org Git - libexpat/commitdiff
qa.sh: Exclude "make run-xmltest" for -DEXPAT_DTD=OFF
authorSebastian Pipping <sebastian@pipping.org>
Sun, 29 Sep 2019 20:41:36 +0000 (22:41 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 29 Sep 2019 20:42:18 +0000 (22:42 +0200)
expat/qa.sh

index 011bdf7fa1031b653573d23998e126b9daac2d32..9525d51d3755e7d2ba92e4e10e80de1198e7a8be 100755 (executable)
@@ -131,13 +131,15 @@ run_tests() {
         done
     fi
 
-    local make_env_args=(
+    local make_args=(
         CTEST_OUTPUT_ON_FAILURE=1
         CTEST_PARALLEL_LEVEL=2
         VERBOSE=1
+        test
     )
+    [[ $* =~ -DEXPAT_DTD=OFF ]] || make_args+=( run-xmltest )
 
-    RUN "${MAKE}" "${make_env_args[@]}" test run-xmltest
+    RUN "${MAKE}" "${make_args[@]}"
 }
 
 
@@ -180,7 +182,7 @@ run() {
 
     run_cmake "$@"
     run_compile
-    run_tests
+    run_tests "$@"
     run_processor
 }