diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-17 07:59:20 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-05-17 07:59:20 +0000 |
commit | 19cd08b2a2e6e3f1fae59bbffde9ccc76bfd0c5a (patch) | |
tree | fa87e10106f354dde45029482a8787e448b6c4d3 /Build/source/texk/kpathsea/kpseaccess.test | |
parent | a018954444adab7c33016ce804ea49ec54b8b4b2 (diff) |
add kpathsea test cases (for make check)
git-svn-id: svn://tug.org/texlive/trunk@18298 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/kpseaccess.test')
-rwxr-xr-x | Build/source/texk/kpathsea/kpseaccess.test | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/kpseaccess.test b/Build/source/texk/kpathsea/kpseaccess.test new file mode 100755 index 00000000000..ffe2b56f312 --- /dev/null +++ b/Build/source/texk/kpathsea/kpseaccess.test @@ -0,0 +1,27 @@ +#! /bin/sh + +# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +./kpseaccess '' nonesuch && exit 1 +./kpseaccess - nonesuch && exit 1 +./kpseaccess r nonesuch && exit 1 +./kpseaccess w nonesuch && exit 1 +./kpseaccess x nonesuch && exit 1 + +./kpseaccess '' access.o || exit 1 +./kpseaccess - access.o || exit 1 +./kpseaccess rw access.o || exit 1 +./kpseaccess x access.o && exit 1 + +./kpseaccess rwx kpseaccess || exit 1 + +./kpseaccess r $srcdir/access.c || exit 1 +./kpseaccess x $srcdir/access.c && exit 1 + +if ./kpseaccess w $srcdir/access.c; then + echo 'file "$srcdir/access.c" is writable' +else + echo 'file "$srcdir/access.c" is not writable' +fi + |