File: let_tests_fail_on_missing_execs.patch

package info (click to toggle)
pasdoc 0.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,212 kB
  • sloc: pascal: 26,311; makefile: 439; sh: 371; xml: 21
file content (40 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: let tests fail if the executable needed for them is not available
Author: Paul Gevers <elbrus@debian.org>
Forwarded: not yet

--- a/tests/scripts/mk_tests.sh
+++ b/tests/scripts/mk_tests.sh
@@ -47,6 +47,9 @@ mk_test ()
 FORMAT="$1"
 shift 1
 
+# check if pasdoc is on the path and fail properly if not
+which pasdoc
+
 # Run tests ----------------------------------------
 
 # Make a test of many units with normal pasdoc command-line.
--- a/tests/scripts/validate_html.sh
+++ b/tests/scripts/validate_html.sh
@@ -11,6 +11,9 @@ set -eu
 # Fixes (to make onsgmls validate HTML 5, or use different validator
 # than onsgmls) welcome.
 
+# check if onsgmls is available and fail otherwise
+which onsgmls
+
 find current_output/html/ -iname '*.html' \
   -exec sh -c 'echo ---- Validating {}' ';' \
   -exec onsgmls -s -e -g '{}' ';'
--- a/tests/scripts/validate_simplexml.sh
+++ b/tests/scripts/validate_simplexml.sh
@@ -7,6 +7,9 @@ set -eu
 #
 # See ../README for comments.
 
+# check if xmllint is available and fail otherwise
+which xmllint
+
 find current_output/simplexml/ -iname '*.xml' \
   -exec sh -c 'echo ---- Validating {}' ';' \
   -exec xmllint --noout '{}' ';'