3 # This file runs all the test suites. From experience I have learned
4 # that you want to make sure all files in the test directory are
5 # accounted for, or you end up forgetting to add tests here.
6 # Thus, this makes you state a USE or IGNORE flag for every file.
7 # It is not an error to IGNORE a file that doesn't exist, to
8 # keep things clean for committing changes to this file before
9 # committing the test script itself.
14 my @files = glob('tests/*.pl');
19 # This is borrowed from another source, if it seems a bit overblown.
20 # This makes it mandatory to specify whether you are running a test,
21 # so you can't forget to add it to the suite, while still making it
22 # easy to switch tests in and out.
26 xmpp_stream_in
=> USE
,
27 xmpp_stream_out
=> USE
,
28 entity_capabilities
=> USE
,
32 connection_manager
=> USE
,
34 dbi_backend_mysql_innodb
=> USE
,
36 xhtml_normalize
=> USE
43 $filename =~ s/tests\///;
44 $filename =~ s/\.pl$//;
45 if (!exists($FILES{$filename})) {
46 push @no_entries, $filename;
48 $FILES{$filename} ?
($_) : ()
52 die "No \%FILES entries found for: " . join(", ", @no_entries);