From 7b6b5f3f7bf82136c419b08d07304f6af7d76a48 Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 8 Feb 2012 21:41:48 -0600 Subject: [PATCH] Always run setup-test from make test/runalltests, just in case the test build directory (test/testbuild) isn't up to date. It might be nice to replace all the copies in the test build directory with symlinks, then make could keep the test build up to date. --- Makefile.am | 1 - test/runalltests | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index ee9b511..42e71fe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -500,7 +500,6 @@ man/man.sed: Makefile $(SED) -f man/man.sed $< > $@ test: all - @test -d $(testdir)/testinstall || $(testdir)/setup-test @$(testdir)/runalltests .PHONY: test diff --git a/test/runalltests b/test/runalltests index 340be0a..48ba7f1 100755 --- a/test/runalltests +++ b/test/runalltests @@ -1,12 +1,13 @@ #!/bin/sh -status=0 - # Get full pathnames that we'll need. cd `dirname $0` testdir=`pwd` -test -d testinstall || ./setup-test +# Always run setup-test in case the code or configuration has changed. +./setup-test + +status=0 # Note that we ignore *~ files as these are probably editor backups. for i in `find . -name 'test-*[!~]' -type f` -- 1.7.10.4