aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-01-11 15:50:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2010-01-11 15:50:30 +0000
commit78b7d7f7a8bd91dd0a518ce7b7b22b8ed1cce931 (patch)
tree506f917760422ed817e12f9e7f93d16d66d30b81 /tests
parent5bec1b1cf042de97b5af4388902a2787f250de9b (diff)
- The tests/runtests.pl script now checks to see if the test case that runs is
present in the tests/data/Makefile.am and outputs a notice message on the screen if not. Each test file has to be included in that Makefile.am to get included in release archives and forgetting to add files there is a common mistake. This is an attempt to make it harder to forget.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/Makefile.am2
-rwxr-xr-xtests/runtests.pl15
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 30e314481..bb7d0e7a2 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -84,3 +84,5 @@ filecheck:
rm -rf test-place ; \
exit $$RC
+show:
+ @echo $(EXTRA_DIST)
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 33baa815e..a2d5902e5 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -426,6 +426,15 @@ sub checkcmd {
}
#######################################################################
+# Get the list of tests that the tests/data/Makefile.am knows about!
+#
+my $disttests;
+sub get_disttests {
+ my @dist = `cd $srcdir/data && make show`;
+ $disttests = join("", @dist);
+}
+
+#######################################################################
# Check for a command in the PATH of the machine running curl.
#
sub checktestcmd {
@@ -1882,6 +1891,11 @@ sub singletest {
# timestamp test preparation start
$timeprepini{$testnum} = Time::HiRes::time() if($timestats);
+ if($disttests !~ /\Wtest$testnum\W/ ) {
+ print STDERR "NOTICE: data/test$testnum is not present in tests/data/Makefile.am!\n";
+ }
+
+
# load the test case file definition
if(loadtest("${TESTDIR}/test${testnum}")) {
if($verbose) {
@@ -3307,6 +3321,7 @@ mkdir($LOGDIR, 0777);
#
if(!$listonly) {
+ get_disttests();
checksystem();
}