diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-22 13:00:48 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-05-22 13:02:50 +0200 |
commit | 15996acc36367acf3a653eea6e1fbec03b00a964 (patch) | |
tree | 5cf964d7d65663554c15253d3bd359f193171406 /t/instdir.sh | |
parent | edbe522d6e9abe71a018d1323ae00f7e7c1625eb (diff) | |
download | automake-15996acc36367acf3a653eea6e1fbec03b00a964.tar.gz |
tests: remove some code duplication
* t/ax/am-test-lib (null_install): New function.
* t/instdir-java.sh: Use it instead of copied & pasted code.
* t/instdir-lisp.sh: Likewise.
* t/instdir-ltlib.sh: Likewise.
* t/instdir-prog.sh: Likewise.
* t/instdir-python.sh: Likewise.
* t/instdir-texi.sh: Likewise.
* t/instdir.sh: Likewise.
* t/instdir2.sh: Likewise.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/instdir.sh')
-rw-r--r-- | t/instdir.sh | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/t/instdir.sh b/t/instdir.sh index 6cc4c2c3e..872f3dca7 100644 --- a/t/instdir.sh +++ b/t/instdir.sh @@ -55,16 +55,7 @@ cd build ../configure --prefix="$instdir" $MAKE -nukedirs='bindir= datadir= includedir= foodir= bardir= man1dir= man2dir=' - -run_make $nukedirs install -test ! -e "$instdir" -run_make $nukedirs install DESTDIR="$destdir" -test ! -e "$instdir" -test ! -e "$destdir" -run_make $nukedirs uninstall > stdout || { cat stdout; exit 1; } -cat stdout -grep 'rm -f' stdout && exit 1 -run_make $nukedirs uninstall DESTDIR="$destdir" +nulldirs='bindir= datadir= includedir= foodir= bardir= man1dir= man2dir=' +null_install : |