int main (int argc, char **argv) { int do_all = 0 ; int test_count = 0 ; if (argc == 3 && strcmp (argv [2], "-v") == 0) { verbose = SF_TRUE ; argc -- ; } ; if (argc != 2) { printf ("Usage : %s <test>\n", argv [0]) ; printf (" Where <test> is one of the following:\n") ; printf (" wav - test WAV file functions (little endian)\n") ; printf (" aiff - test AIFF file functions (big endian)\n") ; printf (" au - test AU file functions\n") ; #if 0 printf (" svx - test 8SVX/16SV file functions\n") ; printf (" nist - test NIST Sphere file functions\n") ; printf (" ircam - test IRCAM file functions\n") ; printf (" voc - Create Voice file functions\n") ; printf (" w64 - Sonic Foundry's W64 file functions\n") ; #endif printf (" all - perform all tests\n") ; exit (1) ; } ; do_all = !strcmp (argv [1], "all") ; if (do_all || ! strcmp (argv [1], "wav")) { multi_file_test ("multi_wav.dat", wav_formats, ARRAY_LEN (wav_formats)) ; test_count++ ; } ; if (do_all || ! strcmp (argv [1], "aiff")) { multi_file_test ("multi_aiff.dat", aiff_formats, ARRAY_LEN (aiff_formats)) ; test_count++ ; } ; if (do_all || ! strcmp (argv [1], "au")) { multi_file_test ("multi_au.dat", au_formats, ARRAY_LEN (au_formats)) ; test_count++ ; } ; return 0 ; } /* main */
int main() { multi_file_test(); vector_test(); list_test(); deque_test(); adapter_test(); sort_test(); string_test(); return 0; }