| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # Use mount.wikipediafs(1) as a testcase. |
| 4 | |
| 5 | NAME="$(basenamescip-shell system . . basename. "${0}")" |
| 6 | |
| 7 | oneTimeSetUpscip-shell shell docbook-to-man 1:2.0.0-50 oneTimeSetUp().() { |
| 8 | if [scip-shell system . . `[`. "${AUTOPKGTEST_TMP:-}" = "" ] |
| 9 | then |
| 10 | AUTOPKGTEST_TMP="$(mktempscip-shell system . . mktemp. -d)" |
| 11 | fi |
| 12 | } |
| 13 | |
| 14 | testOutputscip-shell shell docbook-to-man 1:2.0.0-50 testOutput().() { |
| 15 | docbook-to-man debian/tests/${NAME}.in >${AUTOPKGTEST_TMP}/stdout 2>${AUTOPKGTEST_TMP}/stderr |
| 16 | |
| 17 | for X in stdout stderr |
| 18 | do |
| 19 | assertEquals \ |
| 20 | "${Xscip-shell system . . cat.} matches" \ |
| 21 | "$(cscip-shell system . . cat.at "${AUTOPKGTEST_TMP}/${X}")" \ |
| 22 | "$(cat "debian/tests/${NAME}.${X}")" |
| 23 | done |
| 24 | } |
| 25 | |
| 26 | . /usr/bin/shunit2scip-shell source . . `/usr/bin/shunit2`. |