diff options
Diffstat (limited to 'Build/source/texk/dvipsk/test-missing-image.test')
-rwxr-xr-x | Build/source/texk/dvipsk/test-missing-image.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/texk/dvipsk/test-missing-image.test b/Build/source/texk/dvipsk/test-missing-image.test new file mode 100755 index 00000000000..a7aaa32b6d3 --- /dev/null +++ b/Build/source/texk/dvipsk/test-missing-image.test @@ -0,0 +1,15 @@ +#! /bin/sh -vx +# $Id$ +# Public domain. Test that dvips exits with bad status when there is a +# missing image file. +# +# BTW, to run just this test on its own: +# make -C $wp TESTS=test-missing-image.test check +# where wp=.../Work/texk/dvipsk + +if ./dvips $srcdir/testdata/missing-image.dvi -o missing-image.ps; then + echo "$0: found image file, but shouldn't have." >&2 + exit 1 +fi + +exit 0 |