summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/kpsestat.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/kpsestat.test')
-rwxr-xr-xBuild/source/texk/kpathsea/kpsestat.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/kpsestat.test b/Build/source/texk/kpathsea/kpsestat.test
new file mode 100755
index 00000000000..8e1cf8526a4
--- /dev/null
+++ b/Build/source/texk/kpathsea/kpsestat.test
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+./kpsestat = nonesuch 2>/dev/null && exit 1
+
+for f in . kpsestat kpsestat.o; do
+ echo "kpsestat = $f => `./kpsestat = $f`"
+done
+
+for m in -rw g-r u-w o+x -rw,u+s -rw,g+s -rw,o+t; do
+ echo "kpsestat $m kpsestat.o => `./kpsestat $m kpsestat.o`"
+done
+
+echo "kpsestat = \$srcdir => `./kpsestat = $srcdir`"
+echo "kpsestat = \$srcdir/ => `./kpsestat = $srcdir/`"
+echo "kpsestat = \$srcdir/kpsestat.c => `./kpsestat = $srcdir/kpsestat.c`"
+