7 echo "Testing with /bin/ash"
10 if test '!' -f /bin/ash; then
11 echo "/bin/zsh does not exist, cannot run test"
14 cat $AUTODIST | sed 's/#!\/bin\/sh/#!\/bin\/ash/' > ./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)
44 cat << EOF > Makefile.ad
54 mkdir -p subdir || exit 1
56 cat << EOF > subdir/configure.ad
57 # subdir/configure.ad fragment
65 $AUTODIST -i || exit 1
66 if test '!' -d distdir; then
67 echo "error: distdir/ does no exist"
71 cp -p ../../default distdir || exit 1
72 cp -p ../../autodist.conf distdir || exit 1
74 cat << EOF > distdir/test
75 name Test Distribution
77 bug-report test-dist@test.org
82 touch README NEWS AUTHORS ChangeLog
84 echo "inherit test" >> distdir/default
87 $AUTODIST test 1.0 || exit 1
93 $AUTODIST -m || exit 1
95 if test '!' -f test-distro-1.0.tar.gz; then
96 echo "error: makedist failed"
103 rm -rf subdir distdir $AUTODIST