7 echo "Testing with /bin/zsh"
10 if test '!' -f /bin/zsh; then
11 echo "/bin/zsh does not exist, cannot run test"
14 cat $AUTODIST | sed 's/#!\/bin\/sh/#!\/bin\/zsh/' > ./autodist
16 AUTODIST=../autodist # from inside tests/test
23 chmod +x $AUTODIST || exit 1
25 cat << EOF > configure.ad
31 AC_CONFIG_HEADERS(config.h)
41 cat << EOF > Makefile.ad
51 mkdir -p subdir || exit 1
53 cat << EOF > subdir/configure.ad
54 # subdir/configure.ad fragment
62 $AUTODIST -i || exit 1
63 if test '!' -d distdir; then
64 echo "error: distdir/ does no exist"
68 cp -p ../../default distdir || exit 1
69 cp -p ../../autodist.conf distdir || exit 1
71 cat << EOF > distdir/test
72 name Test Distribution
74 bug-report test-dist@test.org
78 touch README NEWS AUTHORS ChangeLog
80 echo "inherit test" >> distdir/default
83 $AUTODIST test 1.0 || exit 1
89 $AUTODIST -m || exit 1
91 if test '!' -f test-distro-1.0.tar.gz; then
92 echo "error: makedist failed"
99 rm -rf subdir distdir $AUTODIST