Speed up the tests by testing slightly fewer combinations.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 26 Feb 2012 01:19:39 +0000 (12:19 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 26 Feb 2012 01:19:39 +0000 (12:19 +1100)
src/test_streams/main.c
test/test_seeking.sh

index c41b346..fe1173c 100644 (file)
@@ -1078,9 +1078,9 @@ int main(int argc, char *argv[])
        if(!generate_wackywavs()) return 1;
        if(!generate_wackywav64s()) return 1;
        if(!generate_wackyrf64s()) return 1;
-       for(channels = 1; channels <= 8; channels++) {
+       for(channels = 1; channels <= 8; channels *= 2) {
                unsigned bits_per_sample;
-               for(bits_per_sample = 4; bits_per_sample <= 24; bits_per_sample++) {
+               for(bits_per_sample = 8; bits_per_sample <= 24; bits_per_sample += 4) {
                        static const unsigned nsamples[] = { 1, 111, 4777 } ;
                        unsigned samples;
                        for(samples = 0; samples < sizeof(nsamples)/sizeof(nsamples[0]); samples++) {
index f59e665..94e4de1 100755 (executable)
@@ -103,7 +103,7 @@ tiny_seek_count=100
 if [ "$FLAC__TEST_LEVEL" -gt 1 ] ; then
        small_seek_count=10000
 else
-       small_seek_count=100000
+       small_seek_count=100
 fi
 
 for suffix in '' '-s' ; do