modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / tests / do_tests
blob574403f2d456ca8a1330559434a542ed2c0ca036
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
6 my @tests;
7 for (glob "test*[0-9]") {
8 push @tests, $_ if -e "$_.ans";
11 my $num_failed=0;
13 for my $test (@tests) {
14 `./$test > $test.out`;
15 `diff $test.out $test.ans`;
16 print "$test failed\n" if $?;
17 $num_failed++ if $?;
20 print scalar @tests . " tests conducted, $num_failed failed.\n";
21 exit $num_failed;