e439b7a151dda81fcdea80e57ef89bb4fedc6ffd
[gnulib.git] / tests / test-canonicalize-lgpl.sh
1 #!/bin/sh
2
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
5
6 tmpfiles="$tmpfiles t-can-lgpl.tmp ise"
7 mkdir t-can-lgpl.tmp
8 test "x$HAVE_SYMLINK" = xyes \
9   && ln -s t-can-lgpl.tmp/ket ise \
10   || { echo "Skipping test: symbolic links not supported on this filesystem"
11        rm -fr $tmpfiles
12        exit 77
13      }
14 (cd t-can-lgpl.tmp \
15  && ln -s bef plo \
16  && ln -s tra huk \
17  && ln -s lum bef \
18  && ln -s wum ouk \
19  && ln -s ../ise ket \
20  && echo > tra \
21  && mkdir lum
22 ) || exit 1
23
24 ./test-canonicalize-lgpl${EXEEXT}
25 result=$?
26
27 rm -fr $tmpfiles
28
29 exit $result