$FGREP ':macro21:' configure
$FGREP ':macro33:' configure
grep MACRO3 aclocal.m4
-test ! -f m4_1/macro.m4
-test ! -f m4_2/macro.m4
+test ! -e m4_1/macro.m4
+test ! -e m4_2/macro.m4
$sleep
$FGREP ':macro21:' configure
$FGREP ':macro33:' configure
grep MACRO3 aclocal.m4
-test ! -f m4_1/macro.m4
-test ! -f m4_2/macro.m4
+test ! -e m4_1/macro.m4
+test ! -e m4_2/macro.m4
$sleep
$FGREP ':macro33:' configure
grep MACRO3 aclocal.m4 && exit 1
test -f m4_1/macro.m4
-test ! -f m4_2/macro.m4
+test ! -e m4_2/macro.m4
cp aclocal.m4 copy.m4
$sleep
grep MACRO3 aclocal.m4 && exit 1
grep GREPME m4_1/macro.m4 && exit 1
test -f m4_1/macro.m4
-test ! -f m4_2/macro.m4
+test ! -e m4_2/macro.m4
diff aclocal.m4 copy.m4
:
cat stderr >&2
cat stdout
grep '#serial 456' stdout
-test ! -f 4/m1.m4
+test ! -e 4/m1.m4
grep 'installing.*4/m1\.m4' stderr
$ACLOCAL -I 5 2>stderr && { cat stderr >&2; exit 1; }
&& { cat stderr >&2; exit 1; }
cat stderr >&2
$EGREP '(mkdir:|directory ).*a-regular-file' stderr
-test ! -f aclocal.m4
+test ! -e aclocal.m4
$ACLOCAL --install -I unwritable-dir/sub 2>stderr \
&& { cat stderr >&2; exit 1; }
cat stderr >&2
$EGREP '(mkdir:|directory ).*unwritable-dir/sub' stderr
-test ! -f aclocal.m4
+test ! -e aclocal.m4
$ACLOCAL -I unwritable-dir --install 2>stderr \
&& { cat stderr >&2; exit 1; }
cat stderr >&2
$EGREP '(cp:|copy ).*unwritable-dir' stderr
-test ! -f aclocal.m4
+test ! -e aclocal.m4
# Sanity check.
mkdir m4
# Directories in ACLOCAL_PATH should never be created if they don't
# exist.
ACLOCAL_PATH="$(pwd)/none:$(pwd)/none2" $ACLOCAL --install && exit 1
-test ! -d none
-test ! -d none2
+test ! -e none
+test ! -e none2
ACLOCAL_PATH="$(pwd)/none:$(pwd)/none2" $ACLOCAL --install -I x
test -f x/my-defs.m4
-test ! -d none
-test ! -d none2
+test ! -e none
+test ! -e none2
# It's better if aclocal doesn't create the first include dir on failure.
$ACLOCAL --install -I none -I none2 && exit 1
-test ! -d none
-test ! -d none2
+test ! -e none
+test ! -e none2
:
END
$ACLOCAL -I foo --system-acdir=sys-acdir && exit 1
-test ! -d foo
-test ! -r foo
+test ! -e foo
:
$ACLOCAL --install 2>stderr && { cat stderr >&2; exit 1; }
cat stderr >&2
grep ' no -I was supplied' stderr
-test ! -f pdir/foo.m4
+test ! -e pdir/foo.m4
# The '--install' option should cause a required macro found in a
# directory specified in ACLOCAL_PATH to be installed locally.
$MAKE check 2>stderr && { cat stderr >&2; exit 1; }
cat stderr >&2
grep 'NEWS not updated' stderr
-test ! -f works
+test ! -e works
echo 'alpha 1.0a released' > NEWS
$MAKE check
autodist_list="$list" $MAKE check
$MAKE maintainer-clean
-test ! -f sub/README # Sanity check.
+test ! -e sub/README # Sanity check.
rm -rf $me-1.0 # Remove $(distdir).
: Now try creating the automatically-distributed files before
autodist_list="$list" $MAKE check
$MAKE maintainer-clean
-test ! -f README # Sanity check.
+test ! -e README # Sanity check.
rm -rf $me-1.0 # Remove $(distdir).
: Now try creating the automatically-distributed files before
rm -f config.h
$MAKE -n
test -f stamp-h1
-test ! -f config.h
+test ! -r config.h
:
.a.b: ; cp $< $@
baz: bar ; cp ../baz bar
END
- if $MAKE all && test ! -f foo.b && test ! -f bar; then
+ if $MAKE all && test ! -e foo.b && test ! -e bar; then
am__useless_vpath_rebuild=no
else
am__useless_vpath_rebuild=yes
# by the cleanup trap below if the test passes. If the test doesn't pass,
# this directory will be kept, to facilitate debugging.
testSubDir=t/$me.dir
- test ! -d $testSubDir || rm_rf_ $testSubDir \
+ test ! -e $testSubDir || rm_rf_ $testSubDir \
|| framework_failure_ "removing old test subdirectory"
test -d t || mkdir t
mkdir $testSubDir \
./configure
ls -l . hacky src data tests # For debugging.
-test ! -f mkfile
+test ! -e mkfile
$MAKE
$MAKE distdir
-test ! -f $distdir/Makefile.in
-test ! -f $distdir/data/bar
+test ! -e $distdir/Makefile.in
+test ! -e $distdir/data/bar
test -f $distdir/src/foo
diff README $distdir/README
diff mkfile.in $distdir/mkfile.in
distdir=nonesuch-zardoz-nonesuch-0.1
$MAKE distdir
test -f $distdir/quux.c
-test ! -f $distdir/foo.got
+test ! -e $distdir/foo.got
$MAKE distcheck
VERBOSE=x $MAKE check
if cross_compiling; then
- test ! -f tests/test-suite.log
- test ! -f tests/test.log
+ test ! -e tests/test-suite.log
+ test ! -e tests/test.log
else
test -f tests/test-suite.log
grep 'Foo, Bar!' tests/test.log
fi
$MAKE clean
-test ! -f lib/foo.h
+test ! -e lib/foo.h
test -f lib/bar.h
:
cp -f config.status config-status.sav
$MAKE distclean
- test ! -r hammer.log
- test ! -r hammer.sum
- test ! -r spanner.log
- test ! -r spanner.sum
- test ! -r test-suite.log
- test ! -r a.log
- test ! -r b.log
- test ! -r local.log
+ test ! -e hammer.log
+ test ! -e hammer.sum
+ test ! -e spanner.log
+ test ! -e spanner.sum
+ test ! -e test-suite.log
+ test ! -e a.log
+ test ! -e b.log
+ test ! -e local.log
mv -f config-status.sav config.status
./config.status
$MAKE clean
# Sanity checks
-test ! -f command1.inc
-test ! -f dir/command2.inc
+test ! -e command1.inc
+test ! -e dir/command2.inc
# Now make sure these two files are rebuilt during make install.
$MAKE install
test -f command1.inc
test -f sub/foo
$MAKE distclean
ls -l
-test ! -r bar
-test ! -r sub/foo
-test ! -r Makefile
-test ! -r config.status
+test ! -e bar
+test ! -e sub/foo
+test ! -e Makefile
+test ! -e config.status
test -f Makefile.in
test -f configure
# Makefile should not depend on version.good.
rm -f version.good
$MAKE Makefile
- test ! -r version.good
+ test ! -e version.good
# version.good should be rebuilt from version.gin.
$MAKE version.good
# Makefile should not depend on version.gin.
rm -f ../$srcdir/demo/version.gin
$MAKE Makefile
- test ! -r ../$srcdir/demo/version.gin # Sanity check.
+ test ! -e ../$srcdir/demo/version.gin # Sanity check.
# version.good should depend on version.gin.
rm -f version.good
./compile touch a.o -- -o 'a c.o' a.c
test -f 'a c.o'
-test ! -f ./-o
-test ! -f a.o
+test ! -e ./-o
+test ! -e a.o
test -f a.c
# Make sure 'compile' works for .obj too.
./compile touch a.obj -- -o ac.obj a.c
-test ! -f a.obj
+test ! -e a.obj
test ac.obj
:
./configure --prefix="$cwd"/nowhere --bindir="$cwd"/bin \
--includedir="$cwd"/inc
$MAKE installdirs
-test ! -d bin
+test ! -e bin
test -d inc/foo
-test ! -f inc/foo/foo.h
+test ! -e inc/foo/foo.h
rm -rf inc
$MAKE install
-test ! -d bin
+test ! -e bin
test -f inc/foo/foo.h
$MAKE distdircheck
./configure two=two --prefix="$cwd"/nowhere --bindir="$cwd"/bin \
--includedir="$cwd"/inc
$MAKE install
-test ! -d inc
+test ! -e inc
test -f bin/x.sh
rm -rf inc
$MAKE installdirs
-test ! -d inc
+test ! -e inc
test -d bin
$MAKE distdircheck
./configure cond=yes cond1=yes cond2=no cond3=yes
test -f file1
-test ! -f file2
+test ! -e file2
test -f file3
rm -f file1 file3
$MAKE file1 file3
$MAKE file2 && exit 1
test -f file1
-test ! -f file2
+test ! -e file2
test -f file3
$MAKE distclean
./configure cond=no cond1=yes cond2=yes
-test ! -f file1
+test ! -e file1
test -f file2
-test ! -f file3
+test ! -e file3
rm -f file2
$MAKE file1 && exit 1
$MAKE file2
$MAKE file3 && exit 1
-test ! -f file1
+test ! -e file1
test -f file2
-test ! -f file3
+test ! -e file3
:
$MAKE install
test -f inst/etc/mumble
-test ! -f bad
+test ! -e bad
:
$MAKE test
$MAKE distclean
-test ! -r sdir/dest2
-test ! -r sdir/dest3
+test ! -e sdir/dest2
+test ! -e sdir/dest3
test -r dest # Should still exist, Automake knows nothing about it.
test -r dest5 # Ditto.
rm -f dest dest5
-test ! -r dest4
+test ! -e dest4
mkdir build
cd build
# VPATH build.
$MAKE distcleancheck
fi \
- && test ! -f cscope.files \
- && test ! -f cscope.out \
- && test ! -f cscope.in.out \
- && test ! -f cscope.po.out \
+ && test ! -e cscope.files \
+ && test ! -e cscope.out \
+ && test ! -e cscope.in.out \
+ && test ! -e cscope.po.out \
|| r='not ok'
result_ "$r" "[$pfx] make distcheck"
}
$AUTOMAKE --add-missing
test -f build-aux/depcomp
# Not needed by C++ compilers.
-test ! -f build-aux/compile
+test ! -e build-aux/compile
cat > work.h++ << 'END'
#define ACTION "work"
for f in ltmain.sh depcomp config.guess config.sub; do
test -f ax/$f && test ! -h ax/$f || exit 1
done
-test ! -f ax/compile # Not required by C++ compilers.
+test ! -e ax/compile # Not required by C++ compilers.
cat > src/main.cc << 'END'
#include "libfoo.h++"
$MAKE check
test -f check-target-has-run
-test ! -r all-target-has-failed
+test ! -e all-target-has-failed
# Sanity checks.
$MAKE && exit 1
test -f all-target-has-failed
./configure --prefix="$cwd"/_inst
$MAKE
$MAKE install
-test ! -d _inst
-test ! -r foo.info
-test ! -d _inst/share/info
+test ! -e _inst
+test ! -e foo.info
+test ! -e _inst/share/info
$MAKE install-info
ls -l _inst
test -f foo.info
# by default.
$MAKE distdir
ls -l $distdir
-test ! -r $distdir/bar.dir/bar
-test ! -r $distdir/quux.exp
+test ! -e $distdir/bar.dir/bar
+test ! -e $distdir/quux.exp
:
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-test ! -f depcomp
+test ! -e depcomp
cat > subdir/Makefile.am << 'END'
bin_PROGRAMS = foo
ls -l $distdir $distdir/doc
cd $distdir
test "$(cat write)" = "all is ok"
-test ! -f removed
-test ! -r removed
+test ! -e removed
test -f doc/README
test -f doc/RELEASE-DATE
-test ! -f doc/HACING
-test ! -r doc/HACING
+test ! -e doc/HACING
./execute
./execute | grep 'I run successfully'
cd ..
ln -s $lnk1 $lnka
ln -s $lnka $lnkb
-# Sanity checks. Use 'test -r', since Solaris Sh doesn't grok 'test -e'.
-test ! -r $lnk1
-test ! -r $lnk2
-test ! -r $lnka
-test ! -r $lnkb
+# Sanity checks.
+test ! -e $lnk1
+test ! -e $lnk2
+test ! -e $lnka
+test ! -e $lnkb
test -h $lnk1
test -h $lnk2
test -h $lnka
$AUTOMAKE
./configure
$MAKE
-test ! -f bar.o
-test ! -f bar.obj
-test ! -f baz.o
-test ! -f baz.obj
-test ! -f goodbye-baz.o
-test ! -f goodbye-baz.obj
+test ! -e bar.o
+test ! -e bar.obj
+test ! -e baz.o
+test ! -e baz.obj
+test ! -e goodbye-baz.o
+test ! -e goodbye-baz.obj
$MAKE distcheck
:
$AUTOMAKE -a
./configure
$MAKE
-test ! -f bar.lo
-test ! -f baz.lo
-test ! -f libgoodbye_la-baz.lo
+test ! -e bar.lo
+test ! -e baz.lo
+test ! -e libgoodbye_la-baz.lo
$MAKE distcheck
:
END
$ACLOCAL --force --help --output=foo.m4
-test ! -r foo.m4
+test ! -e foo.m4
$ACLOCAL --output=foo.m4 --version --force
-test ! -r foo.m4
+test ! -e foo.m4
# Sanity check.
$ACLOCAL --output=foo.m4 --force
test -f foo.m4
mv -f foo.m4 aclocal.m4 # autoconf will need aclocal.m4
$AUTOMAKE --add-missing --help --copy
-test ! -r install-sh
+test ! -e install-sh
$AUTOMAKE --copy --version --add-mising
-test ! -r install-sh
+test ! -e install-sh
# Sanity check.
$AUTOMAKE --add-missing --copy
test -f install-sh
$FGREP 'Does nothing at all, but has a nice name' $instdir/info/dir
$MAKE uninstall
- test ! -f $instdir/info/foo.info
+ test ! -e $instdir/info/foo.info
$FGREP 'but has a nice name' $instdir/info/dir && exit 1
dir="$destdir/$cwd/$instdir/info"
test -f "$dir"/dir
$FGREP 'Does nothing at all, but has a nice name' "$dir"/dir
$MAKE DESTDIR="$cwd/$destdir" uninstall
- test ! -f "$dir"/foo.info
+ test ! -e "$dir"/foo.info
$FGREP 'but has a nice name' "$dir"/dir && exit 1
unset dir
$MAKE install-info >output 2>&1 || { cat output; exit 1; }
cat output
test -f $instdir/info/foo.info
-test ! -f $instdir/info/dir
+test ! -e $instdir/info/dir
grep 'error from install-info' output && exit 1
rm -rf $instdir output
test -f $instdir/info/foo.info
test -f $instdir/info/dir
$MAKE uninstall
- test ! -f $instdir/info/foo.info
+ test ! -e $instdir/info/foo.info
test -f $instdir/info/dir
$FGREP 'but has a nice name' $instdir/info/dir && exit 1
: For shells with busted 'set -e'.
rm -rf $instdir
env AM_UPDATE_INFO_DIR="$val" $MAKE install-info
test -f $instdir/info/foo.info
- test ! -f $instdir/info/dir
+ test ! -e $instdir/info/dir
done
$MAKE install-info
test -f $instdir/info/foo.info
test -f $instdir/info/dir
env AM_UPDATE_INFO_DIR="$val" $MAKE uninstall
- test ! -f $instdir/info/foo.info
+ test ! -e $instdir/info/foo.info
$FGREP 'but has a nice name' $instdir/info/dir && exit 1
: For shells with busted 'set -e'.
done
./configure --prefix="$(pwd)/inst"
$MAKE install
-test ! -d inst/share/instdir-cond
-test ! -d inst/libexec/instdir-cond
+test ! -e inst/share/instdir-cond
+test ! -e inst/libexec/instdir-cond
:
./configure --prefix="$(pwd)/inst"
$MAKE installdirs
-test ! -d inst || { find inst; exit 1; }
+test ! -e inst || { find inst; exit 1; }
:
javadir=
export javadir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
grep 'rm -f' stdout && exit 1
export lispdir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
grep 'rm -f' stdout && exit 1
bindir= libdir= pyexecdir=
export bindir libdir pyexecdir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
# Creative quoting below to please maintainer-check.
./configure --prefix="$cwd/inst"
doinst
-test ! -d inst || { find inst; exit 1; }
+test ! -e inst || { find inst; exit 1; }
$MAKE uninstall
doinst bin_SCRIPTS=foo.sh AM_MAKEFLAGS='bin_SCRIPTS=foo.sh'
test -f inst/bin/foo.sh
./configure
doinst DESTDIR="$cwd/dest"
-test ! -d dest || { find dest; exit 1; }
+test ! -e dest || { find dest; exit 1; }
$MAKE uninstall
doinst DESTDIR="$cwd/dest" bin_SCRIPTS=foo.sh AM_MAKEFLAGS='bin_SCRIPTS=foo.sh'
test -f dest/usr/local/bin/foo.sh
bindir= libdir= pyexecdir=
export bindir libdir pyexecdir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
# Creative quoting below to please maintainer-check.
export pythondir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
grep 'rm -f' stdout && exit 1
export infodir htmldir dvidir psdir pdfdir
$MAKE -e install install-html install-dvi install-ps install-pdf
-test ! -d "$instdir"
-$MAKE -e install install-html install-dvi install-ps install-pdf DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+$MAKE -e install install-html install-dvi install-ps install-pdf \
+ DESTDIR="$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
grep 'rm -f' stdout && exit 1
export bindir datadir includedir foodir bardir man1dir man2dir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
grep 'rm -f' stdout && exit 1
export bindir datadir includedir foodir bardir man1dir man2dir
$MAKE -e install
-test ! -d "$instdir"
+test ! -e "$instdir"
$MAKE -e install DESTDIR="$destdir"
-test ! -d "$instdir"
-test ! -d "$destdir"
+test ! -e "$instdir"
+test ! -e "$destdir"
$MAKE -e uninstall > stdout || { cat stdout; exit 1; }
cat stdout
grep 'rm -f' stdout && exit 1
ls -l
test -f Class1.class
test -f Class2.class
-test ! -f Class3.class
-test ! -f Class3.java
+test ! -e Class3.class
+test ! -e Class3.java
$MAKE distclean
$MAKE
ls -l
test -f Class1.class
-test ! -f Class2.class
+test ! -e Class2.class
test -f Class3.class
test -f Class3.java
$MAKE distdir
ls -l $distdir # For debugging.
-test ! -f $distdir/Class.java
+test ! -e $distdir/Class.java
test -f $distdir/ClassDist.java
-test ! -f $distdir/ClassNobase.java
+test ! -e $distdir/ClassNobase.java
test -f $distdir/ClassNobaseDist.java
-test ! -f $distdir/ClassNodist.java
-test ! -f $distdir/ClassNobaseNodist.java
+test ! -e $distdir/ClassNodist.java
+test ! -e $distdir/ClassNobaseNodist.java
:
check_uninstallation()
{
- test ! -r $javadir/aClass.class
- test ! -r $javadir/bClass.class
- test ! -r $javadir/Zardoz.class
- test ! -r $javadir/Baz.class
- test ! -r $javadir/Baz2.class
+ test ! -e $javadir/aClass.class
+ test ! -e $javadir/bClass.class
+ test ! -e $javadir/Zardoz.class
+ test ! -e $javadir/Baz.class
+ test ! -e $javadir/Baz2.class
test -f $javadir/Foo.class
test -f $javadir/Bar.class
test -f $javadir/xClass.class
find . -name '*.class' | grep . && exit 1
# If we have nothing to install, we shouldn't create any installation
# directory. Related to automake bug#11030.
-test ! -d _inst
+test ! -e _inst
$MAKE uninstall
$MAKE distcheck
ls -l
test -f parsefoo.cxx
test -f bar-parsebar.cc
- test ! -r parsebaz.l++
- test ! -r parsebaz.c++
- test ! -r parsequx.lpp
- test ! -r qux-parsequx.cpp
+ test ! -e parsebaz.l++
+ test ! -e parsebaz.c++
+ test ! -e parsequx.lpp
+ test ! -e qux-parsequx.cpp
done
cp config.sav config.status
ls -l
test -f parsefoo.lxx
test -f parsebar.ll
-test ! -r parsefoo.cxx
-test ! -r bar-parsebar.cc
+test ! -e parsefoo.cxx
+test ! -e bar-parsebar.cc
test -f parsefoo.lxx
test -f parsebar.ll
-test ! -r parsefoo.cxx
-test ! -r bar-parsebar.cc
+test ! -e parsefoo.cxx
+test ! -e bar-parsebar.cc
:
test -f lexer.l
test -f lexer.c
test -f bar-lexer.c
- test ! -r baz.l
- test ! -r baz.c
- test ! -r qux-baz.c
+ test ! -e baz.l
+ test ! -e baz.c
+ test ! -e qux-baz.c
done
cp config.sav config.status
$MAKE maintainer-clean
ls -l
test -f lexer.l
-test ! -r lexer.c
-test ! -r bar-lexer.c
+test ! -e lexer.c
+test ! -e bar-lexer.c
:
test -f foo.c
./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
-test ! -f foo.c
+test ! -e foo.c
:
./configure
$MAKE all check
$MAKE clean
-test ! -d src/.libs
-test ! -d src/_libs
-test ! -d check/.libs
-test ! -d check/_libs
+test ! -e src/.libs
+test ! -e src/_libs
+test ! -e check/.libs
+test ! -e check/_libs
$MAKE distcheck
+
+:
:> ChangeLog
:> README
-test ! -f COPYING
+test ! -e COPYING
$ACLOCAL
$AUTOCONF
$MAKE
test -f am-one.elc
-test ! -f am-two.elc
+test ! -e am-two.elc
test -f am-three.elc
test -f elc-stamp
$MAKE install
test -f lisp/am-one.el
test -f lisp/am-one.elc
-test ! -f lisp/am-two.el
-test ! -f lisp/am-two.elc
-test ! -f lisp/am-three.el
-test ! -f lisp/am-three.elc
+test ! -e lisp/am-two.el
+test ! -e lisp/am-two.elc
+test ! -e lisp/am-three.el
+test ! -e lisp/am-three.elc
$MAKE dist-test
$MAKE distclean
-test ! -f am-one.elc
-test ! -f am-two.elc
-test ! -f am-three.elc
-test ! -f elc-stamp
+test ! -e am-one.elc
+test ! -e am-two.elc
+test ! -e am-three.elc
+test ! -e elc-stamp
./configure --with-lispdir="$cwd/lisp" want_two=1
test -f lisp/am-one.elc
test -f lisp/am-two.el
test -f lisp/am-two.elc
-test ! -f lisp/am-three.el
-test ! -f lisp/am-three.elc
+test ! -e lisp/am-three.el
+test ! -e lisp/am-three.elc
$MAKE dist-test
$MAKE distclean
-test ! -f am-one.elc
-test ! -f am-two.elc
-test ! -f am-three.elc
-test ! -f elc-stamp
+test ! -e am-one.elc
+test ! -e am-two.elc
+test ! -e am-three.elc
+test ! -e elc-stamp
:
cat stdout
test 1 -eq $(grep -c 'Warnings can be ignored' stdout)
-test ! -f am-one.elc
-test ! -f am-two.elc
-test ! -f am-three.elc
+test ! -e am-one.elc
+test ! -e am-two.elc
+test ! -e am-three.elc
test -f elc-stamp
$MAKE distcheck
$MAKE -n
-test ! -f am-one.elc
-test ! -f am-two.elc
-test ! -f am-three.elc
-test ! -f elc-stamp
+test ! -e am-one.elc
+test ! -e am-two.elc
+test ! -e am-three.elc
+test ! -e elc-stamp
:
test -f lib1foo.la
test -f lib1bar.la
test -f lib2foo.la
-test ! -f lib2bar.la
-test ! -f lib3foo.la
-test ! -f lib3bar.la
+test ! -e lib2bar.la
+test ! -e lib3foo.la
+test ! -e lib3bar.la
$MAKE check
-test ! -f lib2bar.la
+test ! -e lib2bar.la
test -f lib3foo.la
-test ! -f lib3bar.la
+test ! -e lib3bar.la
$MAKE install
test -f lib/lib1foo.la
test -f lib/lib1bar.la
test -f lib/lib2foo.la
-test ! -f lib/lib3foo.la
+test ! -e lib/lib3foo.la
find empty -type f -print > empty.lst
test -s empty.lst && { cat empty.lst; exit 1; }
test -f lib3foo.la
$MAKE clean
-test ! -f lib1foo.la
-test ! -f lib1bar.la
-test ! -f lib2foo.la
-test ! -f lib3foo.la
+test ! -e lib1foo.la
+test ! -e lib1bar.la
+test ! -e lib2foo.la
+test ! -e lib3foo.la
:
test -s empty.lst && { cat empty.lst; exit 1; }
$MAKE clean
-test ! -f libtop.la
-test ! -f sub1/libsub1.la
-test ! -f sub2/libsub2.la
-test ! -f sub2/sub21/libsub21.la
-test ! -f sub2/sub22/libsub22.la
-test ! -f ltconvtest
+test ! -e libtop.la
+test ! -e sub1/libsub1.la
+test ! -e sub2/libsub2.la
+test ! -e sub2/sub21/libsub21.la
+test ! -e sub2/sub22/libsub22.la
+test ! -e ltconvtest
$MAKE installcheck
test -f installcheck-ok
$test_cache
$MAKE distclean
-test ! -f bar
-test ! -f Makefile
-test ! -f sub/Makefile
-test ! -f config.status
+test ! -e bar
+test ! -e Makefile
+test ! -e sub/Makefile
+test ! -e config.status
test -f foo.c
test -f sub/zap
test -f ../sub/zap.sh
$MAKE maintainer-clean
test -f ../sub/zap.sh
-test ! -f bar
-test ! -f foo.c
-test ! -f sub/zap
-test ! -f Makefile
-test ! -f sub/Makefile
-test ! -f config.status
-test ! -d ../autom4te.cache
+test ! -e bar
+test ! -e foo.c
+test ! -e sub/zap
+test ! -e Makefile
+test ! -e sub/Makefile
+test ! -e config.status
+test ! -e ../autom4te.cache
:
$test_cache
$MAKE distclean
-test ! -f bar
-test ! -f Makefile
-test ! -f sub/Makefile
-test ! -f config.status
+test ! -e bar
+test ! -e Makefile
+test ! -e sub/Makefile
+test ! -e config.status
test -f foo.c
test -f sub/zap
test -f sub/zap.sh
$MAKE maintainer-clean
test -f sub/zap.sh
-test ! -f bar
-test ! -f foo.c
-test ! -f sub/zap
-test ! -f Makefile
-test ! -f sub/Makefile
-test ! -f config.status
-test ! -d autom4te.cache
+test ! -e bar
+test ! -e foo.c
+test ! -e sub/zap
+test ! -e Makefile
+test ! -e sub/Makefile
+test ! -e config.status
+test ! -e autom4te.cache
:
if $have_dotmake; then
grep "stamp-$target$" stdout || exit 1
fi
- test ! -f "stamp-$target$" || exit 1
+ test ! -e "stamp-$target" || exit 1
;;
esac
case $target in
if $have_dotmake; then
grep "stamp-$target-sub" stdout || exit 1
fi
- test ! -f "sub/stamp-$target-sub" || exit 1
+ test ! -e "sub/stamp-$target-sub" || exit 1
;;
esac
case $target in
if $have_dotmake; then
grep "should-not-be-executed" stdout || exit 1
fi
- test ! -f "sub2/sub2-$target-should-not-be-executed" || exit 1
+ test ! -e "sub2/sub2-$target-should-not-be-executed" || exit 1
;;
esac
done
./configure --prefix='' --mandir=/man
$MAKE DESTDIR="$cwd/_inst" install
-test -f ./_inst/man/man2/foo.2
-test -f ./_inst/man/man4/foo.4
-test -f ./_inst/man/man4/bar.4
+test -f _inst/man/man2/foo.2
+test -f _inst/man/man4/foo.4
+test -f _inst/man/man4/bar.4
$MAKE DESTDIR="$cwd/_inst" uninstall
-test ! -f ./_inst/man/man2/foo.2
-test ! -f ./_inst/man/man4/foo.4
-test ! -f ./_inst/man/man4/bar.4
+test ! -e _inst/man/man2/foo.2
+test ! -e _inst/man/man4/foo.4
+test ! -e _inst/man/man4/bar.4
:
test -f _inst/man/man3/bar.3
test -f _inst/man/man3/nbar.3
-test ! -d _inst/man/man1
-test ! -d _inst/man/man4
-test ! -d _inst/man/man5
+test ! -e _inst/man/man1
+test ! -e _inst/man/man4
+test ! -e _inst/man/man5
$MAKE DESTDIR="$cwd/_inst" uninstall
-test ! -f _inst/man/man2/foo.2
-test ! -f _inst/man/man2/nfoo.2
-test ! -f _inst/man/man2/baz-1.4.2
-test ! -f _inst/man/man2/nbaz-1.4.2
-test ! -f _inst/man/man3/bar.3
-test ! -f _inst/man/man3/nbar.3
+test ! -e _inst/man/man2/foo.2
+test ! -e _inst/man/man2/nfoo.2
+test ! -e _inst/man/man2/baz-1.4.2
+test ! -e _inst/man/man2/nbaz-1.4.2
+test ! -e _inst/man/man3/bar.3
+test ! -e _inst/man/man3/nbar.3
:
test -f ../foo.1
$MAKE maintainer-clean
-test ! -f bar.1
-test ! -f ../foo.1
+test ! -e bar.1
+test ! -e ../foo.1
cd ..
./configure
test -f foo.1
$MAKE maintainer-clean
-test ! -f bar.1
-test ! -f foo.1
+test ! -e bar.1
+test ! -e foo.1
:
# too strict semantics here, so don't check for it. But the later
# files shouldn't exist.
test -f sub1/Makefile.in
-test ! -f sub2/Makefile.in
-test ! -f sub3/Makefile.in
-test ! -f sub4/Makefile.in
-test ! -f sub5/Makefile.in
+test ! -e sub2/Makefile.in
+test ! -e sub3/Makefile.in
+test ! -e sub4/Makefile.in
+test ! -e sub5/Makefile.in
rm -f Makefile.in */Makefile.in
test -f sub1/Makefile.in
test -f sub2/Makefile.in
test -f sub3/Makefile.in
-test ! -f sub4/Makefile.in
-test ! -f sub5/Makefile.in
+test ! -e sub4/Makefile.in
+test ! -e sub5/Makefile.in
:
PATH=$save_PATH
export PATH
diff output-file my--output--file-o
-test ! -f ./--file-o
-test ! -f input
+test ! -e ./--file-o
+test ! -e input
./configure --prefix "$(pwd)/sub"
$MAKE installdirs
-test ! -d sub/man
+test ! -e sub/man
$MAKE install
-test ! -d sub/man
+test ! -e sub/man
:
$MAKE distdir
ls -l $distdir $distdir/* # For debugging.
-test ! -f $distdir/foo1.el
-test ! -f $distdir/sub/foo2.el
-test ! -f $distdir/foo3.el
-test ! -f $distdir/sub/foo4.el
-test ! -f $distdir/bar1.java
-test ! -f $distdir/sub/bar2.java
-test ! -f $distdir/bar3.java
-test ! -f $distdir/sub/bar4.java
-test ! -f $distdir/baz1.py
-test ! -f $distdir/sub/baz2.py
+test ! -e $distdir/foo1.el
+test ! -e $distdir/sub/foo2.el
+test ! -e $distdir/foo3.el
+test ! -e $distdir/sub/foo4.el
+test ! -e $distdir/bar1.java
+test ! -e $distdir/sub/bar2.java
+test ! -e $distdir/bar3.java
+test ! -e $distdir/sub/bar4.java
+test ! -e $distdir/baz1.py
+test ! -e $distdir/sub/baz2.py
:
./configure create=false
$MAKE
-test ! -f file
-test ! -f link
-test ! -f stamp
+test ! -e file
+test ! -e link
+test ! -e stamp
./configure create=:
test -f file
./configure cond=no
$MAKE ps
-test ! -r foobar
+test ! -e foobar
./configure cond=yes
$MAKE ps
ls -l . sub my_aux_dir # For debugging.
test -f my_aux_dir/test-driver
-test ! -r test-driver
-test ! -r sub/test-driver
+test ! -e test-driver
+test ! -e sub/test-driver
grep '^configure\.ac:3:.*installing.*my_aux_dir/test-driver' stderr
ls -l . dir build-aux # For debugging.
test -f build-aux/test-driver
-test ! -r test-driver
-test ! -r dir/test-driver
+test ! -e test-driver
+test ! -e dir/test-driver
grep '^dir/GNUmakefile\.am:2:.*installing.*build-aux/test-driver' stderr
files='foo.log bar.log foo.trs bar.trs'
for target in check recheck test-suite.log; do
- test ! -f foo.log
- test ! -f foo.trs
- test ! -f bar.log
- test ! -f bar.trs
- test ! -f test-suite.log
+ make_n_ $target
+ test ! -e foo.log
+ test ! -e foo.trs
+ test ! -e bar.log
+ test ! -e bar.trs
+ test ! -e test-suite.log
done
echo 'exit 0' > foo.test
chmod a-w .
for target in check recheck test-suite.log $files; do
make_n_ $target
- test ! -f foo.log
+ test ! -e foo.log
test -f foo.trs
- test ! -f bar.trs
+ test ! -e bar.trs
test -f bar.log
done
$MAKE check
ls -l # For debugging.
test -f y.log
-test ! -r y.bin.log
+test ! -e y.bin.log
test -f b.log
-test ! -r b.test.log
+test ! -e b.test.log
$EGREP '^y\.log: y(\$\(EXEEXT\)|\.bin)' Makefile
$EGREP '^\.test(\$\(EXEEXT\)|\.bin)\.log:' Makefile
grep barbarbar bar.log
grep yepyepyep baz.log
# Files that shouldn't have been created.
-test ! -f none.log
-test ! -f test-suite.log
+test ! -e none.log
+test ! -e test-suite.log
# Expected testsuite progress output.
grep '^PASS: baz\.test$' stdout
# Don't anchor the end of the next two patterns, to allow for non-empty
cat output
$FGREP '::OOPS::' output && exit 1 # Possible infinite recursion.
# Check that at least we don't create a botched global log file.
- test ! -f "$log"
+ test ! -e "$log"
if using_gmake; then
grep "[Cc]ircular.*dependency" output | $FGREP "$log"
test $st -gt 0
# Check that we can override the testsuite log file at runtime.
TEST_SUITE_LOG=zardoz.log $MAKE -e check
ls -l
-test ! -f test-suite.log
+test ! -e test-suite.log
cat zardoz.log
test_log_expected zardoz.log
# Sanity check the distribution too (this also does minimal checks on
cp orig test-suite.log
TEST_SUITE_LOG=zardoz.log $MAKE -e clean
ls -l
-test ! -f zardoz.log
+test ! -e zardoz.log
diff orig test-suite.log
# Check that the default testsuite log doesn't get unduly modified.
test_log_expected TheLogFile
TEST_SUITE_LOG=TheLogFile $MAKE -e clean
ls -l
-test ! -f TheLogFile
+test ! -e TheLogFile
diff orig test-suite.log
:
cat pass.log
cat skip.log
cat partial.log
- test ! -f test-suite.log
- test ! -f pass2.log
- test ! -f skip2.log
- test ! -f fail.log
+ test ! -e test-suite.log
+ test ! -e pass2.log
+ test ! -e skip2.log
+ test ! -e fail.log
grep '^PASS: pass\.test$' stdout
grep '^SKIP: skip\.test$' stdout
$FGREP 'SKIP: skip' partial.log
$MAKE check >stdout && { cat stdout; exit 1; }
cat stdout
count_test_results total=3 pass=1 fail=2 skip=0 xfail=0 xpass=0 error=0
-test ! -f status
+test ! -e status
$sleep
: > status
test -f foo.log
$MAKE clean
-test ! -f baz.log
-test ! -f bar.log
-test ! -f foo.log
-test ! -f test-suite.log
+test ! -e baz.log
+test ! -e bar.log
+test ! -e foo.log
+test ! -e test-suite.log
# Check dependencies: baz.test needs to run before bar.test,
# but foo.test is not needed.
test -f baz.log
test -f bar.log
-test ! -f foo.log
+test ! -e foo.log
test -f test-suite.log
# Upon a lazy rerun, foo.test should be run, but the others shouldn't.
# "make clean" should remove HTML files.
$MAKE clean
-test ! -f mylog.html
-test ! -f bla
+test ! -e mylog.html
+test ! -e bla
# Always create the HTML output, even if there were no failures.
rm -f mylog.html
# Create HTML output for an individual test.
$MAKE foo.html
grep 'this is .*foo\.test' foo.html
-test ! -f bar.html
-test ! -f baz.html
+test ! -e bar.html
+test ! -e baz.html
# Create HTML output for individual tests. Since the pre-existing log
# files are expected to be used for the HTML conversion, this should
# HTML output removed by mostlyclean.
$MAKE mostlyclean
-test ! -f foo.html
-test ! -f bar.html
-test ! -f baz.html
-test ! -f mylog.html
+test ! -e foo.html
+test ! -e bar.html
+test ! -e baz.html
+test ! -e mylog.html
# check-html and recheck-html should cause check_SCRIPTS to be created,
# and recheck-html should rerun no tests if check has not been run.
$MAKE clean
-test ! -f mylog.html
+test ! -e mylog.html
env TEST_LOGS=foo.log $MAKE -e check-html
test -f bla
test -f foo.log
-test ! -f bar.log
-test ! -f baz.log
+test ! -e bar.log
+test ! -e baz.log
test -f mylog.html
$MAKE clean
env TESTS=foo.test $MAKE -e recheck-html
test -f bla
-test ! -f foo.log
+test ! -e foo.log
test -f mylog.html
$MAKE clean
$MAKE recheck-html
test -f bla
-test ! -f foo.log
-test ! -f bar.log
-test ! -f baz.log
+test ! -e foo.log
+test ! -e bar.log
+test ! -e baz.log
test -f mylog.html
:
cd build
../configure
$MAKE check
-test ! -f ../foo.log
+test ! -e ../foo.log
$MAKE distcheck
:
$MAKE clean
$MAKE recheck
test -f bla
-test ! -f foo.log
-test ! -f bar.log
-test ! -f baz.log
+test ! -e foo.log
+test ! -e bar.log
+test ! -e baz.log
test -f mylog.log
:
./configure --prefix "$cwd/inst" --libdir "$cwd/inst/lib"
# A rule in the Makefile should create subdir.
-test ! -d subdir
+test ! -e subdir
$MAKE >stdout || { cat stdout; exit 1; }
cat stdout
test -d subdir
$AUTOCONF
$AUTOMAKE
./configure
-test ! -d lib/lib
+test ! -e lib/lib
$MAKE distcheck
## -------------------------------------------- ##
$AUTOCONF
$AUTOMAKE --add-missing
./configure
-test ! -d src/lib
-test ! -d 'src/$(top_builddir)'
+test ! -e src/lib
+test ! -e 'src/$(top_builddir)'
$MAKE
$MAKE check
$MAKE distclean
$AUTOCONF
$AUTOMAKE -a
./configure
-test ! -d lib/lib
+test ! -e lib/lib
$MAKE distcheck
## -------------------------------------------- ##
$AUTOCONF
$AUTOMAKE --add-missing
./configure
-test ! -d src/lib
-test ! -d 'src/$(top_builddir)'
+test ! -e src/lib
+test ! -e 'src/$(top_builddir)'
$MAKE
$MAKE check
$MAKE distclean
$AUTOCONF
$AUTOMAKE
./configure
-test ! -d lib/lib
+test ! -e lib/lib
$MAKE distcheck
## -------------------------------------------- ##
$AUTOMAKE --add-missing
./configure
$MAKE
-test ! -d src/lib
-test ! -d 'src/$(top_builddir)'
+test ! -e src/lib
+test ! -e 'src/$(top_builddir)'
$MAKE check
$MAKE distclean
$MAKE disttest
# It's not distributed, hence it shouldn't be needlessly generated.
-test ! -f my-nodist.py
+test ! -e my-nodist.py
:
$MAKE install
test -f inst/py/yes.py
test -f inst/py/yes.pyc
-test ! -f inst/py/no.py
-test ! -f inst/py/no.pyc
+test ! -e inst/py/no.py
+test ! -e inst/py/no.pyc
$MAKE disttest
pythondir=$py_site pyexecdir=$py_site
export pythondir pyexecdir
$MAKE -e install
-test ! -d bad-prefix
+test ! -e bad-prefix
$MAKE -e test-install
$MAKE test-run
$MAKE -e uninstall
test -f "$inst/your/two.py"
test -f "$inst/your/two.pyc"
test -f "$inst/your/two.pyo"
-test ! -f "$inst/my/one.py"
-test ! -f "$inst/my/one.pyc"
-test ! -f "$inst/my/one.pyo"
+test ! -e "$inst/my/one.py"
+test ! -e "$inst/my/one.pyc"
+test ! -e "$inst/my/one.pyo"
$MAKE uninstall
-test ! -f "$inst/your/two.py"
-test ! -f "$inst/your/two.pyc"
-test ! -f "$inst/your/two.pyo"
+test ! -e "$inst/your/two.py"
+test ! -e "$inst/your/two.pyc"
+test ! -e "$inst/your/two.pyo"
../configure --prefix=$cwd/"$inst" one=1
$MAKE install
-test ! -f "$inst/your/two.py"
-test ! -f "$inst/your/two.pyc"
-test ! -f "$inst/your/two.pyo"
+test ! -e "$inst/your/two.py"
+test ! -e "$inst/your/two.pyc"
+test ! -e "$inst/your/two.pyo"
test -f "$inst/my/one.py"
test -f "$inst/my/one.pyc"
test -f "$inst/my/one.pyo"
$MAKE uninstall
-test ! -f "$inst/my/one.py"
-test ! -f "$inst/my/one.pyc"
-test ! -f "$inst/my/one.pyo"
+test ! -e "$inst/my/one.py"
+test ! -e "$inst/my/one.pyc"
+test ! -e "$inst/my/one.pyo"
$MAKE disttest
$MAKE
ls -l
-test ! -f stdio.h
+test ! -e stdio.h
# Also try our build rules in a VPATH build.
$MAKE distcheck
using_gmake || $MAKE Makefile
$MAKE
ls -l
- test ! -f stdio.h
+ test ! -e stdio.h
# And now simulate that we want our custom stdio.h back.
$MAKE distdir
ls -l $distdir $distdir/*
test -f $distdir/d2/foo.m4
-test ! -f $distdir/d1/foo.m4
+test ! -e $distdir/d1/foo.m4
test -f $distdir/d1/macros.m4
-test ! -f $distdir/d2/macros.m4
+test ! -e $distdir/d2/macros.m4
# Move both files at once.
mv d1/macros.m4 d3/macros.m4
ls -l $distdir $distdir/*
test -f $distdir/d3/foo.m4
test -f $distdir/d3/macros.m4
-test ! -f $distdir/d1/foo.m4
-test ! -f $distdir/d2/foo.m4
-test ! -f $distdir/d1/macros.m4
-test ! -f $distdir/d2/macros.m4
+test ! -e $distdir/d1/foo.m4
+test ! -e $distdir/d2/foo.m4
+test ! -e $distdir/d1/macros.m4
+test ! -e $distdir/d2/macros.m4
:
echo 'include $(srcdir)/zardoz.am' > Makefile.am
using_gmake || $MAKE Makefile
$MAKE
-test ! -f has-run-1
+test ! -e has-run-1
test -f has-run-2
:
$MAKE distdir
ls -l $distdir $distdir/*
test -f $distdir/m4/bar.m4
-test ! -f $distdir/m4/foo.m4
+test ! -e $distdir/m4/foo.m4
mv m4/macros.m4 m4/defs.m4
using_gmake || $MAKE Makefile
$MAKE distdir
ls -l $distdir $distdir/*
test -f $distdir/m4/defs.m4
-test ! -f $distdir/m4/macros.m4
+test ! -e $distdir/m4/macros.m4
# Rename both files at once.
ls -l $distdir $distdir/*
test -f $distdir/m4/quux.m4
test -f $distdir/acinclude.m4
-test ! -f $distdir/m4/foo.m4
-test ! -f $distdir/m4/bar.m4
-test ! -f $distdir/m4/macros.m4
-test ! -f $distdir/m4/defs.m4
+test ! -e $distdir/m4/foo.m4
+test ! -e $distdir/m4/bar.m4
+test ! -e $distdir/m4/macros.m4
+test ! -e $distdir/m4/defs.m4
:
ls -l $distdir $distdir/*
test -f $distdir/m4/bar.m4
test -f $distdir/m4/macros.m4
-test ! -f $distdir/m4/foo.m4
+test ! -e $distdir/m4/foo.m4
# Rename both at once.
ls -l $distdir $distdir/*
test -f $distdir/m4/quux.m4
test -f $distdir/m4/defs.m4
-test ! -f $distdir/m4/bar.m4
-test ! -f $distdir/m4/macros.m4
+test ! -e $distdir/m4/bar.m4
+test ! -e $distdir/m4/macros.m4
:
cd ..
# Check that no spurious Makefile has been created in the
# top-level directory.
-test ! -r Makefile
+test ! -e Makefile
# Check that the Makefile in the subdirectory has been properly
# updated.
$FGREP "$fingerprint" sub/Makefile
$MAKE
cat bar
grep '!Baz!' bar
-test ! -r foo
+test ! -e foo
$MAKE distcheck
rm -f bar
$MAKE
cat quux
grep '!Zardoz!' quux
-test ! -r bar
+test ! -e bar
$MAKE distcheck
rm -f quux
$MAKE
cat bar
grep '!Baz!' bar
-test ! -r foo
+test ! -e foo
$MAKE distcheck
rm -f bar
$MAKE
cat quux
grep '!Zardoz!' quux
-test ! -r bar
+test ! -e bar
$MAKE distcheck
rm -f quux
$MAKE distcheck
ls -l
test -f $me-1.0.tar.bz2
-test ! -r $me-1.0.tar.gz
+test ! -e $me-1.0.tar.gz
:
command_ok_ "pre-cleanup can deal with low-perms testdir" \
$AM_TEST_RUNNER_SHELL -c '. ./defs' t/dummy.sh
command_ok_ "pre-cleanup removed low-perms testdir" \
- eval 'test ! -f t/dummy.dir \
- && test ! -d t/dummy.dir \
- && test ! -r t/dummy.dir'
+ test ! -e t/dummy.dir
do_clean_setup
:
' t/dummy.sh
command_ok_ "post-cleanup removed null-perms testdir" \
- eval 'test ! -f t/dummy.dir \
- && test ! -d t/dummy.dir \
- && test ! -r t/dummy.dir'
+ test ! -e t/dummy.dir
do_clean_setup
do_check ()
{
- test ! -d _self.dir || rm -rf _self.dir \
- || framework_failure_ "cleaning up _self.dir"
+ rm -rf _self.dir || framework_failure_ "cleaning up _self.dir"
command_ok_ "$1 [$2]" $AM_TEST_RUNNER_SHELL -c "
$2
. ./defs || exit 99
do_check 'do not create nor chdir in testdir' \
'am_create_testdir=no' \
- 'test ! -d t/_self.dir || exit 1
- test ! -f t/_self.dir || exit 1
- test ! -r t/_self.dir || exit 1
+ 'test ! -e t/_self.dir || exit 1
grep "self-check-dir\.tap" Makefile || exit 1
case $(pwd) in '"$cwd"') : ;; *) exit 1;; esac'
$AUTOMAKE
grep TEST Makefile.in # For debugging.
hasnt_parallel_tests Makefile.in
-test ! -r test-driver
+test ! -e test-driver
cd ..
cd two
hasnt_parallel_tests bMakefile.in
mv aMakefile.in aMakefile.sav
mv bMakefile.in bMakefile.sav
-test ! -r test-driver
+test ! -e test-driver
test -f config/test-driver
$AUTOMAKE
diff aMakefile.sav aMakefile.in
rm -f sdir1/stamp-h*
./config.status sdir1/7.h 2.h sdir1/4.h
-test ! -f stamp-h1
+test ! -e stamp-h1
test -f stamp-h2
-test ! -f stamp-h3
+test ! -e stamp-h3
test -f sdir1/stamp-h4
-test ! -f sdir1/stamp-h5
-test ! -f sdir1/stamp-h6
+test ! -e sdir1/stamp-h5
+test ! -e sdir1/stamp-h6
test -f sdir1/stamp-h7
:
touch sub2/oops sub1/subsub/oops
$MAKE distclean
-test ! -f sub1/run
-test ! -f sub2/oops
-test ! -f sub1/subsub/oops
-test ! -f sub1/Makefile
-test ! -f sub2/Makefile
-test ! -f sub1/subsub/Makefile
+test ! -e sub1/run
+test ! -e sub2/oops
+test ! -e sub1/subsub/oops
+test ! -e sub1/Makefile
+test ! -e sub2/Makefile
+test ! -e sub1/subsub/Makefile
mkdir build
cd build
touch sub2/oops sub1/subsub/oops
$MAKE maintainer-clean
-test ! -f sub1/run
-test ! -f sub2/oops
-test ! -f sub1/subsub/oops
-test ! -f sub1/Makefile
-test ! -f sub2/Makefile
-test ! -f sub1/subsub/Makefile
+test ! -e sub1/run
+test ! -e sub2/oops
+test ! -e sub1/subsub/oops
+test ! -e sub1/Makefile
+test ! -e sub2/Makefile
+test ! -e sub1/subsub/Makefile
cd ..
test -f $distdir/src/subdir2/foo
$MAKE clean
$MAKE distclean
-test ! -f src/subdir2/Makefile
+test ! -e src/subdir2/Makefile
:
ls -l . sub1 sub2
for i in 1 2; do
for j in a b c d e f; do
- test ! -f sub$i/$j.o
- test ! -f sub$i/$j.obj
- test ! -f sub$i/$j.lo
+ test ! -e sub$i/$j.o
+ test ! -e sub$i/$j.obj
+ test ! -e sub$i/$j.lo
test -f sub$i/$j.c || exit 99 # Sanity check
done
done
# ... but they get removed by "make mostlyclean" ...
$MAKE mostlyclean
-test ! -f sub1/a.$OBJEXT
-test ! -f sub2/d.$OBJEXT
+test ! -e sub1/a.$OBJEXT
+test ! -e sub2/d.$OBJEXT
# ... and do not get rebuilt ...
$MAKE clean
$MAKE all
-test ! -f sub1/a.$OBJEXT
-test ! -f sub2/d.$OBJEXT
+test ! -e sub1/a.$OBJEXT
+test ! -e sub2/d.$OBJEXT
# ... while the non-stale files do.
test -f sub1/b.$OBJEXT
ls -l . sub1 sub2
for i in 1 2; do
for j in a b c d e f; do
- test ! -f sub$i/$j.o
- test ! -f sub$i/$j.obj
+ test ! -e sub$i/$j.o
+ test ! -e sub$i/$j.obj
test -f sub$i/$j.c || exit 99 # Sanity check
done
done
# ... but they get removed by "make mostlyclean" ...
$MAKE mostlyclean
-test ! -f sub1/a.$OBJEXT
-test ! -f sub2/d.$OBJEXT
+test ! -e sub1/a.$OBJEXT
+test ! -e sub2/d.$OBJEXT
# ... and do not get rebuilt ...
$MAKE clean
$MAKE all
-test ! -f sub1/a.$OBJEXT
-test ! -f sub2/d.$OBJEXT
+test ! -e sub1/a.$OBJEXT
+test ! -e sub2/d.$OBJEXT
# ... while the non-stale files do.
test -f sub1/b.$OBJEXT
$MAKE dist
test -f lib-dist-hook-has-run
test -f subpack-1.tar.gz
-test ! -d subpack-1 # Make sure "dist" cleans up after itself.
+test ! -e subpack-1 # Make sure "dist" cleans up after itself.
rm -f lib-dist-hook-has-run subpack-1.tar.gz
./configure
$MAKE
$MAKE distcheck
-test ! -d subpack-1 # Make sure distcheck cleans up after itself.
+test ! -e subpack-1 # Make sure distcheck cleans up after itself.
test -f subpack-1.tar.gz
:
# Intermediate files should not be distributed.
command_ok_ "make distdir" $MAKE distdir
-command_ok_ "intermediate file not distributed" test ! -r $me-1.0/foo.cc
+command_ok_ "intermediate file not distributed" test ! -e $me-1.0/foo.cc
:
$AUTOMAKE --add-missing
test -f install-sh
-test ! -r Zardoz
+test ! -e Zardoz
:
$FGREP iguana.h sub/TAGS
$MAKE distclean
-test ! -f sub/TAGS
-test ! -f TAGS
+test ! -e sub/TAGS
+test ! -e TAGS
+
+:
count_test_results total=1 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=1
-test ! -f success.log
+test ! -e success.log
test -f bail.log
test -f test-suite.log
test -f ok.test
test -f ok.log
-test ! -f success.log
-test ! -f bail.log
+test ! -e success.log
+test ! -e bail.log
test -f test-suite.log
$EGREP '(bail|success)\.test' stdout && exit 1
TEST_SUITE_LOG=my.log $MAKE -e check && exit 1
ls -l # For debugging.
-test ! -f test-suite.log
-test ! -f global.log
+test ! -e test-suite.log
+test ! -e global.log
test -f my.log
st=0
for result in pass fail xfail xpass skip error; do
touch error2.log test-suite.log global.log
TEST_SUITE_LOG=my.log $MAKE -e mostlyclean
ls -l # For debugging.
-test ! -f my.log
-test ! -f pass.log
-test ! -f fail.log
-test ! -f xfail.log
-test ! -f xpass.log
-test ! -f skip.log
-test ! -f error.log
+test ! -e my.log
+test ! -e pass.log
+test ! -e fail.log
+test ! -e xfail.log
+test ! -e xpass.log
+test ! -e skip.log
+test ! -e error.log
# "make mostlyclean" shouldn't remove unrelated log files.
test -f error2.log
test -f test-suite.log
VERBOSE=yes $MAKE check >stdout && { cat stdout; exit 1; }
cat stdout
cat global.log
-test ! -f my.log
-test ! -f test-suite.log
+test ! -e my.log
+test ! -e test-suite.log
# Check that VERBOSE causes the global testsuite log to be
# emitted on stdout.
out=$(cat stdout)
touch error2.log test-suite.log my.log
$MAKE clean
ls -l # For debugging.
-test ! -f global.log
-test ! -f pass.log
-test ! -f fail.log
-test ! -f xfail.log
-test ! -f xpass.log
-test ! -f skip.log
-test ! -f error.log
+test ! -e global.log
+test ! -e pass.log
+test ! -e fail.log
+test ! -e xfail.log
+test ! -e xpass.log
+test ! -e skip.log
+test ! -e error.log
# "make clean" shouldn't remove unrelated log files.
test -f error2.log
test -f test-suite.log
: A "make recheck" in a clean tree should run no tests.
do_recheck --pass
cat test-suite.log
- test ! -r a.run
- test ! -r a.log
- test ! -r b.run
- test ! -r b.log
- test ! -r c.run
- test ! -r c.log
- test ! -r d.run
- test ! -r d.log
+ test ! -e a.run
+ test ! -e a.log
+ test ! -e b.run
+ test ! -e b.log
+ test ! -e c.run
+ test ! -e c.log
+ test ! -e d.run
+ test ! -e d.log
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
: Run the tests for the first time.
do_recheck --fail
# a.test has been successful the first time, so no need to re-run it.
# Similar considerations apply to similar checks, below.
- test ! -r a.run
+ test ! -e a.run
test -f b.run
test -f c.run
test -f d.run
: Let us make the first part of c.test pass.
echo OK > c.pass
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
test -f d.run
count_test_results total=5 pass=1 fail=1 xpass=1 xfail=1 skip=1 error=0
: Let us make also the second part of c.test pass.
echo KO > c.xfail
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
test -f d.run
count_test_results total=5 pass=1 fail=1 xpass=0 xfail=2 skip=1 error=0
: Nothing changed, so only d.test should be run.
for i in 1 2; do
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=2 pass=0 fail=1 xpass=0 xfail=0 skip=1 error=0
done
echo 'Bail out!'
END
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=11 pass=2 fail=4 xpass=1 xfail=0 skip=2 error=2
echo 'test_count=1' > d.count
echo : > d.extra
do_recheck --pass
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=1 pass=0 fail=0 xpass=0 xfail=0 skip=1 error=0
: All tests have been successful or skipped, nothing should be re-run.
do_recheck --pass
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
- test ! -r d.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
+ test ! -e d.run
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
cd $srcdir
: A "make recheck" in a clean tree should run no tests.
do_recheck --pass
cat test-suite.log
- test ! -r a.run
- test ! -r a.log
- test ! -r b.run
- test ! -r b.log
- test ! -r c.run
- test ! -r c.log
- test ! -r d.run
- test ! -r d.log
+ test ! -e a.run
+ test ! -e a.log
+ test ! -e b.run
+ test ! -e b.log
+ test ! -e c.run
+ test ! -e c.log
+ test ! -e d.run
+ test ! -e d.log
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
: Run the tests for the first time.
do_recheck --fail
# a.test has been successful the first time, so no need to re-run it.
# Similar considerations apply to similar checks, below.
- test ! -r a.run
+ test ! -e a.run
test -f b.run
test -f c.run
test -f d.run
: Let us make the first part of c.test pass.
echo OK > c.pass
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
test -f d.run
count_test_results total=5 pass=1 fail=1 xpass=1 xfail=1 skip=1 error=0
: Let us make also the second part of c.test pass.
echo KO > c.xfail
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
test -f d.run
count_test_results total=5 pass=1 fail=1 xpass=0 xfail=2 skip=1 error=0
: Nothing changed, so only d.test should be run.
for i in 1 2; do
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=2 pass=0 fail=1 xpass=0 xfail=0 skip=1 error=0
done
echo ERROR: e 2
END
do_recheck --fail
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=11 pass=2 fail=4 xpass=1 xfail=0 skip=2 error=2
: Let us finally make d.test pass.
echo : > d.extra
do_recheck --pass
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
test -f d.run
count_test_results total=1 pass=0 fail=0 xpass=0 xfail=0 skip=1 error=0
: All tests have been successful or skipped, nothing should be re-run.
do_recheck --pass
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
- test ! -r d.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
+ test ! -e d.run
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
cd $srcdir
env "$var=" $MAKE -e recheck >stdout || { cat stdout; exit 1; }
cat stdout
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
done
unset var
|| { cat stdout; exit 1; }
cat stdout
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
: b.test failed, it should be re-run. And make it pass this time.
echo OK > b.ok
TEST_LOGS=b.log $MAKE -e recheck >stdout \
|| { cat stdout; exit 1; }
cat stdout
- test ! -r a.run
+ test ! -e a.run
test -f b.run
- test ! -r c.run
+ test ! -e c.run
count_test_results total=2 pass=0 fail=0 xpass=0 xfail=1 skip=1 error=0
rm -f *.run
|| { cat stdout; exit 1; }
cat stdout
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
TESTS='a.test b.test' $MAKE -e recheck >stdout \
|| { cat stdout; exit 1; }
cat stdout
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
: No need to re-run a.test anymore, but c.test should be rerun,
: as it contained an XPASS. And this time, make it fail with
&& { cat stdout; exit 1; }
cat stdout
count_test_results total=1 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=1
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
rm -f *.run *.err
|| { cat stdout; exit 1; }
cat stdout
count_test_results total=1 pass=1 fail=0 xpass=0 xfail=0 skip=0 error=0
- test ! -r a.run
- test ! -r b.run
+ test ! -e a.run
+ test ! -e b.run
test -f c.run
rm -f *.run *.err *.ok
$MAKE recheck >stdout || { cat stdout; exit 1; }
cat stdout
count_test_results total=0 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=0
- test ! -r a.run
- test ! -r b.run
- test ! -r c.run
+ test ! -e a.run
+ test ! -e b.run
+ test ! -e c.run
cd $srcdir
VERBOSE=yes $MAKE check
ls -l . sub
-test ! -r BAD.log
-test ! -r BAD.trs
+test ! -e BAD.log
+test ! -e BAD.trs
echo 'chk-wrapper 1.chk --am-chk --chk' > 1.exp
echo 'test-wrapper 2.test -am-test -test' > 2.exp
# The testsuite driver does not exist.
$MAKE check && exit 1
-test ! -f test-suite.log
+test ! -e test-suite.log
# The testsuite driver exists and create the test log files, but fails.
chmod a+x oops
$MAKE check && exit 1
-test ! -f test-suite.log
+test ! -e test-suite.log
:
TEST_SUITE_LOG=my.log $MAKE -e check && exit 1
ls -l # For debugging.
-test ! -f test-suite.log
-test ! -f global.log
+test ! -e test-suite.log
+test ! -e global.log
test -f my.log
st=0
for result in pass fail xfail xpass skip error; do
touch error2.log test-suite.log global.log
TEST_SUITE_LOG=my.log $MAKE -e mostlyclean
ls -l # For debugging.
-test ! -f my.log
-test ! -f pass.log
-test ! -f fail.log
-test ! -f xfail.log
-test ! -f xpass.log
-test ! -f skip.log
-test ! -f error.log
+test ! -e my.log
+test ! -e pass.log
+test ! -e fail.log
+test ! -e xfail.log
+test ! -e xpass.log
+test ! -e skip.log
+test ! -e error.log
# "make mostlyclean" shouldn't remove unrelated log files.
test -f error2.log
test -f test-suite.log
VERBOSE=yes $MAKE check >stdout && { cat stdout; exit 1; }
cat stdout
cat global.log
-test ! -f my.log
-test ! -f test-suite.log
+test ! -e my.log
+test ! -e test-suite.log
# Check that VERBOSE causes the global testsuite log to be
# emitted on stdout.
out=$(cat stdout)
touch error2.log test-suite.log my.log
$MAKE clean
ls -l # For debugging.
-test ! -f global.log
-test ! -f pass.log
-test ! -f fail.log
-test ! -f xfail.log
-test ! -f xpass.log
-test ! -f skip.log
-test ! -f error.log
+test ! -e global.log
+test ! -e pass.log
+test ! -e fail.log
+test ! -e xfail.log
+test ! -e xpass.log
+test ! -e skip.log
+test ! -e error.log
# "make clean" shouldn't remove unrelated log files.
test -f error2.log
test -f test-suite.log
test -f ok.log
grep '^PASS: ok\.test' output
$FGREP 'zardoz.log' output
-test ! -f test-suite.log
+test ! -e test-suite.log
TESTS='zardoz2.test' $MAKE -e check >output 2>&1 \
&& { cat output; exit 1; }
cat output
$FGREP 'zardoz2.log' output
-test ! -f test-suite.log
+test ! -e test-suite.log
TEST_LOGS='zardoz3.log' $MAKE -e check >output 2>&1 \
&& { cat output; exit 1; }
cat output
$FGREP 'zardoz3.log' output
-test ! -f test-suite.log
+test ! -e test-suite.log
# The errors should persist even after 'test-suite.log'
# has been created.
$MAKE check >output 2>&1 && { cat output; exit 1; }
cat output
$FGREP 'zardoz.log' output
-test ! -f test-suite.log
+test ! -e test-suite.log
:
./configure
$MAKE foobar1.log foobar2.log || exit 99
-test ! -f foobar1.log || exit 99
-test ! -f foobar1.trs || exit 99
-test ! -f foobar2.log || exit 99
-test ! -f foobar2.trs || exit 99
+test ! -e foobar1.log || exit 99
+test ! -e foobar1.trs || exit 99
+test ! -e foobar2.log || exit 99
+test ! -e foobar2.trs || exit 99
$MAKE check >output 2>&1 && { cat output; exit 1; }
cat output
grep 'test-suite\.log.*foobar1\.trs' output
grep 'test-suite\.log.*foobar2\.log' output
grep 'test-suite\.log.*foobar2\.trs' output
-test ! -f test-suite.log
+test ! -e test-suite.log
:
test -f bar.trs
test -f sub/zardoz.trs
$MAKE clean
-test ! -f foo.trs
-test ! -f bar.trs
-test ! -f sub/zardoz.trs
+test ! -e foo.trs
+test ! -e bar.trs
+test ! -e sub/zardoz.trs
# Unrelated '.trs' files shouldn't be removed.
test -f unrelated.trs
test -f sub/foo.trs
test -f bar.trs
test -f sub/zardoz.trs
$MAKE mostlyclean
-test ! -f foo.trs
-test ! -f bar.trs
-test ! -f sub/zardoz.trs
+test ! -e foo.trs
+test ! -e bar.trs
+test ! -e sub/zardoz.trs
# Unrelated '.trs' files shouldn't be removed.
test -f unrelated.trs
test -f sub/foo.trs
TESTS=foo.test $MAKE -e check
test -f foo.trs
-test ! -f bar.trs
-test ! -f sub/zardoz.trs
+test ! -e bar.trs
+test ! -e sub/zardoz.trs
$MAKE clean
-test ! -f foo.trs
+test ! -e foo.trs
TESTS='foo.test bar.sh' $MAKE -e check
test -f foo.trs
test -f bar.trs
-test ! -f sub/zardoz.trs
+test ! -e sub/zardoz.trs
# "make clean" shouldn't remove '.trs' files for tests not in $(TESTS).
TESTS=bar.sh $MAKE -e clean
test -f foo.trs
-test ! -f bar.trs
+test ! -e bar.trs
$MAKE clean
#
TEST_LOGS=sub/zardoz.log $MAKE -e check
-test ! -f foo.trs
-test ! -f bar.trs
+test ! -e foo.trs
+test ! -e bar.trs
test -f sub/zardoz.trs
$MAKE clean
-test ! -f sub/zardoz.trs
+test ! -e sub/zardoz.trs
TEST_LOGS='foo.log bar.log' $MAKE -e check
test -f foo.trs
test -f bar.trs
-test ! -f sub/zardoz.trs
+test ! -e sub/zardoz.trs
# "make clean" shouldn't remove '.trs' files for tests whose log
# is not in $(TEST_LOGS).
TEST_LOGS=foo.log $MAKE -e clean
-test ! -f foo.trs
+test ! -e foo.trs
test -f bar.trs
-test ! -f sub/zardoz.trs
+test ! -e sub/zardoz.trs
:
rm -f foo.trs bar.trs baz.trs
$MAKE foo.trs
test -f foo.trs
-test ! -f bar.trs
-test ! -f baz.trs
+test ! -e bar.trs
+test ! -e baz.trs
: Recreate by hand, several at the same time.
rm -f foo.trs bar.trs baz.trs
$MAKE foo.trs bar.trs
test -f foo.trs
test -f bar.trs
-test ! -f baz.trs
+test ! -e baz.trs
: Recreate by hand, with a failing test.
rm -f foo.trs bar.trs
TEST_STATUS=1 $MAKE bar.trs baz.trs >stdout || { cat stdout; exit 1; }
cat stdout
-test ! -f foo.trs
+test ! -e foo.trs
test -f bar.trs
test -f baz.trs
grep '^FAIL: bar\.test' stdout
rm -f foo.trs bar.trs baz.trs
TESTS=foo.test $MAKE -e check
test -f foo.trs
-test ! -f bar.trs
-test ! -f baz.trs
+test ! -e bar.trs
+test ! -e baz.trs
: Recreate with a "make check" with redefined TEST_LOGS.
rm -f foo.trs bar.trs baz.trs
TEST_LOGS=bar.log $MAKE -e check
-test ! -f foo.trs
+test ! -e foo.trs
test -f bar.trs
-test ! -f baz.trs
+test ! -e baz.trs
: Interactions with "make recheck" are OK.
rm -f foo.trs bar.trs baz.log baz.trs
cat stdout
test -f foo.trs
test -f bar.trs
-test ! -f baz.trs
-test ! -f baz.log
+test ! -e baz.trs
+test ! -e baz.log
grep '^PASS: foo\.test' stdout
grep '^PASS: bar\.test' stdout
grep 'baz\.test' stdout && exit 1
./configure
: > t
-chmod a-r t
-test ! -r t || exit 77
+chmod a-r t && test ! -r t || skip_ "you can still read unreadable files"
rm -f t
: Create the required log files.
../configure
$MAKE distcheck
test -f ../subdir/main.info
-test ! -f subdir/main.info
+test ! -e subdir/main.info
test -f ../subdir/main.info.bak
+
+:
../configure
$MAKE
test -f ../main.info
-test ! -f main.info
+test ! -e main.info
test -f ../stamp-vti
-test ! -f stamp-vti
+test ! -e stamp-vti
test -f ../version.texi
-test ! -f version.texi
+test ! -e version.texi
cd ..
rm -rf build make.info* stamp-vti version.texi
# stamp-vti is newer than version.texi, the 'version.texi: stamp-vti'
# rule is always triggered. Still that's not a reason for 'make'
# to think 'version.texi' has been created...
-test ! -f main.info
+test ! -e main.info
$MAKE dvi
test -f main.dvi
# They should be uninstalled too.
$MAKE uninstall
-test ! -f _inst/main.i1
-test ! -f _inst/main.i21
+test ! -e _inst/main.i1
+test ! -e _inst/main.i21
# Make sure rebuild rules erase old .iNN files when they run makeinfo.
$sleep
test -f main.i1
test -f main.i21
$MAKE
-test ! -f main.i1
-test ! -f main.i21
+test ! -e main.i1
+test ! -e main.i21
# Finally, we also want them erased by maintainer-clean.
: > main.i7
: > main.i39
$MAKE maintainer-clean
-test ! -f main.i7
-test ! -f main.i39
+test ! -e main.i7
+test ! -e main.i39
:
mv main.old main.texi
$MAKE && exit 1
test -f main
-test ! -f main-1
+test ! -e main-1
test -f sub/main
test -f sub/main-1
+
+:
is_newest main.html main.texi
$MAKE clean
-test ! -d main.html
-test ! -d sub/main2.html
-test ! -d rec/main3.html
+test ! -e main.html
+test ! -e sub/main2.html
+test ! -e rec/main3.html
# Test production of a single HTML file.
MAKEINFOFLAGS=--no-split $MAKE -e html
test -f sub/main2.html
test -f rec/main3.html
$MAKE clean
-test ! -f main.html
-test ! -f sub/main2.html
-test ! -f rec/main3.html
+test ! -e main.html
+test ! -e sub/main2.html
+test ! -e rec/main3.html
# Make sure AM_MAKEINFOHTMLFLAGS is supported, and override AM_MAKEINFO.
cat >>Makefile.am <<\EOF
test -f sub/main2.html
test -d rec/main3.html
$MAKE clean
-test ! -f main.html
-test ! -f sub/main2.html
-test ! -d rec/main3.html
+test ! -e main.html
+test ! -e sub/main2.html
+test ! -e rec/main3.html
$MAKE install-html
test -f share/$me/html/main.html
test -f share/$me/html/main2.html
test -d share/$me/html/main3.html
$MAKE uninstall
-test ! -f share/$me/html/main.html
-test ! -f share/$me/html/main2.html
-test ! -d share/$me/html/main3.html
+test ! -e share/$me/html/main.html
+test ! -e share/$me/html/main2.html
+test ! -e share/$me/html/main3.html
$MAKE install-dvi
test -f share/$me/dvi/main.dvi
test -f share/$me/dvi/main2.dvi
test -f share/$me/dvi/main3.dvi
$MAKE uninstall
-test ! -f share/$me/dvi/main.dvi
-test ! -f share/$me/dvi/main2.dvi
-test ! -f share/$me/dvi/main3.dvi
+test ! -e share/$me/dvi/main.dvi
+test ! -e share/$me/dvi/main2.dvi
+test ! -e share/$me/dvi/main3.dvi
dvips --help || skip_ "dvips is missing"
test -f share/$me/ps/main2.ps
test -f share/$me/ps/main3.ps
$MAKE uninstall
-test ! -f share/$me/ps/main.ps
-test ! -f share/$me/ps/main2.ps
-test ! -f share/$me/ps/main3.ps
+test ! -e share/$me/ps/main.ps
+test ! -e share/$me/ps/main2.ps
+test ! -e share/$me/ps/main3.ps
pdfetex --help || pdftex --help \
|| skip_ "pdftex and pdfetex are both missing"
test -f share/$me/pdf/main3.pdf
test -f share/$me/pdf/hello
$MAKE uninstall
-test ! -f share/$me/pdf/main.pdf
-test ! -f share/$me/pdf/main2.pdf
-test ! -f share/$me/pdf/main3.pdf
-test ! -f share/$me/pdf/hello
+test ! -e share/$me/pdf/main.pdf
+test ! -e share/$me/pdf/main2.pdf
+test ! -e share/$me/pdf/main3.pdf
+test ! -e share/$me/pdf/hello
:
$AUTOMAKE --add-missing
$AUTOCONF
-test ! -f texinfo.tex
-test ! -f aux1/texinfo.tex
+test ! -e texinfo.tex
+test ! -e aux1/texinfo.tex
test -f tex/texinfo.tex
./configure
../configure
$MAKE distcheck
test -f subdir/main.info
-test ! -f ../subdir/main.info
+test ! -e ../subdir/main.info
:
cd build
../configure
$MAKE
-test ! -f ../main.info
+test ! -e ../main.info
test -f main.info
cd ..
$MAKE
# main.info should be rebuilt in the current directory.
test -f main.info
-test ! -f ../main.info
+test ! -e ../main.info
$MAKE dvi
test -f main.dvi
../configure
$MAKE
test -f main.info
-test ! -f ../main.info
-test ! -f other.info
+test ! -e ../main.info
+test ! -e other.info
test -f ../other.info
cd ..
# rule is always triggered. Still that's not a reason for 'make'
# to think 'version.texi' has been created...
test -f main.info
-test ! -f other.info
+test ! -e other.info
$MAKE dvi
test -f main.dvi
test -f other.dvi
abscwd=$(pwd) || fatal_ "getting current working directory"
-case $abscwd in
- *\ * | *\ *)
- skip_ "this test might fail in a directory containing white spaces";;
-esac
-
mkdir build
cd build
../configure --srcdir="$abscwd" \
$MAKE install
test -f ../main.info
-test ! -f ./main.info
+test ! -e ./main.info
test -f _inst/info/main.info
$MAKE uninstall
-test ! -f _inst/info/main.info
+test ! -e _inst/info/main.info
test -f ../main.info
# Multiple uninstall should not fail.
$MAKE uninstall
+
+:
$MAKE
# main.info should be rebuilt in the current directory.
test -f main.info
-test ! -f ../main.info
+test ! -e ../main.info
$MAKE dvi
test -f main.dvi
# We should not create a missing bar.info.
rm -f bar.info
$MAKE && exit 1
-test ! -f bar.info
+test ! -e bar.info
:
$MAKE clean
-test ! -f main.dvi
-test ! -f main.ps
-test ! -f main.html && test ! -d main.html
-test ! -f main.pdf
-test ! -f other.pdf
-test ! -f sub/another.pdf
-test ! -f sub/yetanother.pdf
-
-test ! -f other.dvi
-test ! -f other.html && test ! -d other.html
-test ! -f other.ps
-test ! -f sub/another.dvi
-test ! -f sub/another.html && test ! -d sub/another.html
-test ! -f sub/another.ps
+test ! -e main.dvi
+test ! -e main.ps
+test ! -e main.html
+test ! -e main.pdf
+test ! -e other.pdf
+test ! -e sub/another.pdf
+test ! -e sub/yetanother.pdf
+
+test ! -e other.dvi
+test ! -e other.html
+test ! -e other.ps
+test ! -e sub/another.dvi
+test ! -e sub/another.html
+test ! -e sub/another.ps
./configure
$MAKE
$ACLOCAL
$AUTOMAKE --cygnus
$AUTOMAKE -a --cygnus
-test ! -f texinfo.tex
+test ! -e texinfo.tex
:
./configure --prefix="$(pwd)/inst"
$MAKE uninstall
-test ! -d inst
+test ! -e inst
rm -rf inst
$MAKE install-exec
test -f inst/bin/foo || exit 99 # Sanity check.
$MAKE uninstall
-test ! -f inst/bin/foo
+test ! -e inst/bin/foo
$MAKE install-data
test -f inst/share/bar || exit 99 # Sanity check.
$MAKE uninstall
-test ! -f inst/share/bar
+test ! -e inst/share/bar
rm -rf inst
$MAKE install-exec
test -f inst/bin/foo || exit 99 # Sanity check.
$MAKE uninstall
-test ! -f inst/bin/foo
+test ! -e inst/bin/foo
:
$MAKE distcheck
$MAKE maintainer-clean
-for h in $headers; do test ! -f $h; done
+for h in $headers; do test ! -e $h; done
:
$MAKE maintainer-clean -j4
ls -l # For debugging.
-for x in main 1 2 3 4 5 6; do test ! -f $x.c; done
-test ! -f zardoz_vala.stamp
+for x in main 1 2 3 4 5 6; do test ! -e $x.c; done
+test ! -e zardoz_vala.stamp
mkdir build
cd build
$MAKE distcheck -j4
$MAKE maintainer-clean -j2
-for x in main 1 2 3 4 5 6; do test ! -f ../$x.c; done
-test ! -f ../zardoz_vala.stamp
+for x in main 1 2 3 4 5 6; do test ! -e ../$x.c; done
+test ! -e ../zardoz_vala.stamp
:
test -f ../zardoz.h
test -f ../hello.c
$MAKE maintainer-clean
-test ! -f ../zardoz.h
-test ! -f ../hello.c
-test ! -f ../foo_vala.stamp
-test ! -f ../bar_vala.stamp
+test ! -e ../zardoz.h
+test ! -e ../hello.c
+test ! -e ../foo_vala.stamp
+test ! -e ../bar_vala.stamp
:
test -f src_zardoz_vala.stamp
$MAKE distcheck
$MAKE maintainer-clean
-test ! -f src/zardoz.c
-test ! -f src_zardoz_vala.stamp
+test ! -e src/zardoz.c
+test ! -e src_zardoz_vala.stamp
mkdir build
cd build
./config.status
$MAKE maintainer-clean
-test ! -f src/xfoo.c
-test ! -f src/xbar.c
+test ! -e src/xfoo.c
+test ! -e src/xbar.c
:
$ACLOCAL
$AUTOMAKE -a
test -f aux1/ylwrap
-test ! -f ylwrap
-test ! -f sub/ylwrap
+test ! -e ylwrap
+test ! -e sub/ylwrap
grep -i 'ylwrap' Makefile.in sub/Makefile.in # For debugging.
$FGREP '$(top_srcdir)/aux1/ylwrap' Makefile.in
$FGREP '$(top_srcdir)/aux1/ylwrap' sub/Makefile.in
./configure # We must re-create 'Makefile'.
$MAKE maintainer-clean
ls -l
-test ! -f parse.c
-test ! -f bar-parse.c
+test ! -e parse.c
+test ! -e bar-parse.c
:
ls -l . sub1 sub2
test -f sub1/parsefoo.cxx
test -f sub1/bar-parsebar.cc
- test ! -r sub1/parsebaz.y++
- test ! -r sub1/parsebaz.c++
- test ! -r sub1/parsequx.ypp
- test ! -r sub1/qux-parsequx.cpp
+ test ! -e sub1/parsebaz.y++
+ test ! -e sub1/parsebaz.c++
+ test ! -e sub1/parsequx.ypp
+ test ! -e sub1/qux-parsequx.cpp
test -f sub2/parsefoo.cxx
test -f sub2/parsefoo.hxx
test -f sub2/bar-parsebar.cc
test -f sub2/bar-parsebar.hh
- test ! -r sub2/parsebaz.y++
- test ! -r sub2/parsebaz.c++
- test ! -r sub2/parsebaz.h++
- test ! -r sub2/parsequx.ypp
- test ! -r sub2/qux-parsequx.cpp
- test ! -r sub2/qux-parsequx.hpp
+ test ! -e sub2/parsebaz.y++
+ test ! -e sub2/parsebaz.c++
+ test ! -e sub2/parsebaz.h++
+ test ! -e sub2/parsequx.ypp
+ test ! -e sub2/qux-parsequx.cpp
+ test ! -e sub2/qux-parsequx.hpp
done
cp config.sav config.status
ls -l . sub1 sub2
test -f sub1/parsefoo.yxx
test -f sub1/parsebar.yy
-test ! -r sub1/parsefoo.cxx
-test ! -r sub1/bar-parsebar.cc
+test ! -e sub1/parsefoo.cxx
+test ! -e sub1/bar-parsebar.cc
test -f sub2/parsefoo.yxx
test -f sub2/parsebar.yy
-test ! -r sub2/parsefoo.cxx
-test ! -r sub2/parsefoo.hxx
-test ! -r sub2/bar-parsebar.cc
-test ! -r sub2/bar-parsebar.hh
-
-cp config.sav config.status
-./config.status # re-create Makefile
+test ! -e sub2/parsefoo.cxx
+test ! -e sub2/parsefoo.hxx
+test ! -e sub2/bar-parsebar.cc
+test ! -e sub2/bar-parsebar.hh
:
test -f sub1/parse.y
test -f sub1/parse.c
test -f sub1/bar-parse.c
- test ! -r sub1/baz.y
- test ! -r sub1/baz.c
- test ! -r sub1/qux-baz.c
+ test ! -e sub1/baz.y
+ test ! -e sub1/baz.c
+ test ! -e sub1/qux-baz.c
test -f sub2/parse.y
test -f sub2/parse.c
test -f sub2/parse.h
test -f sub2/bar-parse.c
test -f sub2/bar-parse.h
- test ! -r sub2/baz.y
- test ! -r sub2/baz.c
- test ! -r sub2/baz.h
- test ! -r sub2/qux-baz.c
- test ! -r sub2/qux-baz.h
+ test ! -e sub2/baz.y
+ test ! -e sub2/baz.c
+ test ! -e sub2/baz.h
+ test ! -e sub2/qux-baz.c
+ test ! -e sub2/qux-baz.h
done
cp config.sav config.status
$MAKE maintainer-clean
ls -l . sub1 sub2
test -f sub1/parse.y
-test ! -r sub1/parse.c
-test ! -r sub1/bar-parse.c
+test ! -e sub1/parse.c
+test ! -e sub1/bar-parse.c
test -f sub2/parse.y
-test ! -r sub2/parse.c
-test ! -r sub2/parse.h
-test ! -r sub2/bar-parse.c
-test ! -r sub2/bar-parse.h
+test ! -e sub2/parse.c
+test ! -e sub2/parse.h
+test ! -e sub2/bar-parse.c
+test ! -e sub2/bar-parse.h
:
./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
ls -l
-test ! -f parse1.cc
-test ! -f parse2.c++
-test ! -f foo3-parse3.cxx
-test ! -f foo4-parse4.cpp
+test ! -e parse1.cc
+test ! -e parse2.c++
+test ! -e foo3-parse3.cxx
+test ! -e foo4-parse4.cpp
:
test -f baz/zardoz-parse.h
./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
-test ! -f foo/parse.c
-test ! -f foo/parse.h
-test ! -f bar/parse.c
-test ! -f bar/parse.h
-test ! -f baz/zardoz-parse.c
-test ! -f baz/zardoz-parse.h
+test ! -e foo/parse.c
+test ! -e foo/parse.h
+test ! -e bar/parse.c
+test ! -e bar/parse.h
+test ! -e baz/zardoz-parse.c
+test ! -e baz/zardoz-parse.h
:
test -f qux/maude-parse.hxx
./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
-test ! -f foo/parse.cc
-test ! -f foo/parse.hh
-test ! -f bar/parse.cpp
-test ! -f bar/parse.hpp
-test ! -f baz/sub/parse.c++
-test ! -f baz/sub/parse.h++
-test ! -f qux/maude-parse.cxx
-test ! -f qux/maude-parse.hxx
+test ! -e foo/parse.cc
+test ! -e foo/parse.hh
+test ! -e bar/parse.cpp
+test ! -e bar/parse.hpp
+test ! -e baz/sub/parse.c++
+test ! -e baz/sub/parse.h++
+test ! -e qux/maude-parse.cxx
+test ! -e qux/maude-parse.hxx
:
rm -f $headers
$MAKE parse1.h
test -f parse1.h
-test ! -r p2-parse2.h
-test ! -r parse3.h
-test ! -r parse4.h
+test ! -e p2-parse2.h
+test ! -e parse3.h
+test ! -e parse4.h
rm -f $headers
$MAKE p2-parse2.h
-test ! -r parse1.h
+test ! -e parse1.h
test -f p2-parse2.h
-test ! -r parse3.h
-test ! -r parse4.h
+test ! -e parse3.h
+test ! -e parse4.h
rm -f $headers
$MAKE parse3.h
-test ! -r parse1.h
-test ! -r p2-parse2.h
+test ! -e parse1.h
+test ! -e p2-parse2.h
test -f parse3.h
-test ! -r parse4.h
+test ! -e parse4.h
# Since we declared parse3.h into $(p3_SOURCES), make should be
# able to rebuild it automatically before remaking 'p3'.
rm -f $headers
$MAKE clean-p3
-test ! -f parse3.h # Sanity check.
+test ! -e parse3.h # Sanity check.
$MAKE build-p3
test -f parse3.h
rm -f $headers
$MAKE parse4.h
-test ! -r parse1.h
-test ! -r p2-parse2.h
-test ! -r parse3.h
+test ! -e parse1.h
+test ! -e p2-parse2.h
+test ! -e parse3.h
test -f parse4.h
# Now remake all the headers together.
test -f parse3.h
# parse4.h is not declared in any *_SOURCES variable, nor #included
# by any C source file, so it shouldn't be rebuilt by "make all".
-test ! -r parse4.h
+test ! -e parse4.h
:
test -f sub/parse.c
test -f sub/parse.h
test -f sub/bar-parse.c
-test ! -r sub/bar-parse.h
+test ! -e sub/bar-parse.h
test -f $distdir/sub/parse.c
test -f $distdir/sub/parse.h
test -f $distdir/sub/bar-parse.c
-test ! -r $distdir/sub/bar-parse.h
+test ! -e $distdir/sub/bar-parse.h
# But they shouldn't be rebuilt in VPATH builds.
test -f p.c
test -f p.h
test -f c2-p.c
- test ! -r c2-p.h
+ test ! -e c2-p.h
test -f parse.cc
test -f parse.hh
test -f parse3.hxx
test -f cxx2-parse2.c++
- test ! -r parse2.h++
- test ! -r cxx2-parse2.h++
+ test ! -e parse2.h++
+ test ! -e cxx2-parse2.h++
# Minimal checks about recovering from header removal.
rm -f p.h parse.hh parse3.hxx
$debug_info
test -f p.h
test -f parse.hh
- test ! -r parse3.hxx
+ test ! -e parse3.hxx
$run_make
$debug_info
test -f parse3.hxx
# ... but maintainer-clean should.
../configure
$MAKE maintainer-clean
-test ! -f bar.c
-test ! -f parse.c
+test ! -e bar.c
+test ! -e parse.c
:
# ... but maintainer-clean should.
./configure # Re-create 'Makefile'.
$MAKE maintainer-clean
-test ! -f foo.h
-test ! -f foo.c
+test ! -e foo.h
+test ! -e foo.c
:
rm -f parse.h
$MAKE -n parse.h
test -f parse.c
-test ! -f parse.h
+test ! -e parse.h
:
$MAKE
ls -l
test -f foo.c
-test ! -r foo.h
+test ! -e foo.h
test -f foo.output
$MAKE maintainer-clean
ls -l
test -f foo.c
test -f foo.h
-test ! -r foo.output
+test ! -e foo.output
$MAKE maintainer-clean
ls -l