up. Subsets of tests can now be selected by passing keywords to the
runtests.pl script via the make `TFLAGS` variable.
- New tests are added by finding a free number in `tests/data/Makefile.inc`.
+ New tests are added by finding a free number in `tests/data/Makefile.am`.
## Write tests
my $disttests = "";
sub get_disttests {
# If a non-default $TESTDIR is being used there may not be any
- # Makefile.inc in which case there's nothing to do.
- open(my $dh, "<", "$TESTDIR/Makefile.inc") or return;
+ # Makefile.am in which case there's nothing to do.
+ open(my $dh, "<", "$TESTDIR/Makefile.am") or return;
while(<$dh>) {
chomp $_;
if(($_ =~ /^#/) ||($_ !~ /test/)) {
my @what; # what features are needed
if($disttests !~ /test$testnum(\W|\z)/ ) {
- logmsg "Warning: test$testnum not present in tests/data/Makefile.inc\n";
+ logmsg "Warning: test$testnum not present in tests/data/Makefile.am\n";
}
if($disabled{$testnum}) {
if(!$run_disabled) {
previously unused number.
Add your test to `tests/unit/Makefile.inc` (if it is a unit test). Add your
-test data file name to `tests/data/Makefile.inc`
+test data file name to `tests/data/Makefile.am`
You also need a separate file called `tests/data/testNNNN` (using the same
number) that describes your test case. See the test1300 file for inspiration