Tag
Hash :
b432ad19
Author :
Date :
2007-07-06T14:22:21
Fix testing canonicalize on cygwin. * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD): Revert patch from 2007-06-19. * tests/test-canonicalize-lgpl.c (main): Instead, skip test when canonicalize module is also in use. * tests/test-canonicalize.c: New file. * tests/test-canonicalize.sh: Likewise. * modules/canonicalize-tests: Likewise.
#!/bin/sh
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
tmpfiles="$tmpfiles t-can.tmp ise"
mkdir t-can.tmp
ln -s t-can.tmp/ket ise \
|| { echo "Skipping test: symbolic links not supported on this filesystem"
rm -fr $tmpfiles
exit 77
}
(cd t-can.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${EXEEXT}
result=$?
rm -fr $tmpfiles
exit $result