summaryrefslogtreecommitdiff
path: root/tests/test-canonicalize-lgpl.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-11 00:55:27 +0000
committerBruno Haible <bruno@clisp.org>2007-03-11 00:55:27 +0000
commit0f62f46a9f8bf7bd4693c6c6750adcea6bfd8e2e (patch)
treea71ea28cf561dd51ebe6a073b5585d83d9bef382 /tests/test-canonicalize-lgpl.sh
parent5cde64897a0df3db3101d53004b96102edd37480 (diff)
downloadgnulib-0f62f46a9f8bf7bd4693c6c6750adcea6bfd8e2e.tar.gz
Tests for module 'canonicalize-lgpl'.
Diffstat (limited to 'tests/test-canonicalize-lgpl.sh')
-rwxr-xr-xtests/test-canonicalize-lgpl.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test-canonicalize-lgpl.sh b/tests/test-canonicalize-lgpl.sh
new file mode 100755
index 0000000000..54d30b737c
--- /dev/null
+++ b/tests/test-canonicalize-lgpl.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles t-can-lgpl.tmp ise"
+mkdir t-can-lgpl.tmp
+ln -s t-can-lgpl.tmp/ket ise \
+ || { echo "Skipping test: symbolic links not supported on this filesystem"
+ rm -fr $tmpfiles
+ exit 77
+ }
+(cd t-can-lgpl.tmp \
+ && ln -s bef plo \
+ && ln -s tra huk \
+ && ln -s lum bef \
+ && ln -s wum ouk \
+ && ln -s ../ise ket \
+ && echo > tra \
+ && mkdir lum
+) || exit 1
+
+./test-canonicalize-lgpl${EXEEXT}
+result=$?
+
+rm -fr $tmpfiles
+
+exit $result