Changeset 318
- Timestamp:
- 01/25/06 10:19:26 (3 years ago)
- Files:
-
- libremix/trunk/src/tests/Makefile.am (modified) (1 diff)
- libremix/trunk/src/tests/sndfiletest.c (modified) (3 diffs)
- libremix/trunk/src/tests/tests.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libremix/trunk/src/tests/Makefile.am
r168 r318 5 5 REMIX_LIBS = ../ctxdata/libctxdata.la ../libremix/libremix.la -ldl 6 6 7 TESTS = sndfiletest 8 7 9 sndfiletest_SOURCES = sndfiletest.c 8 10 sndfiletest_LDADD = $(REMIX_LIBS) @SNDFILE_LIBS@ 9 10 11 check: start-test sndfile-test end-test12 13 start-test:14 @echo "----------------------------------------------------------------------"15 @echo "Running tests"16 @echo "----------------------------------------------------------------------"17 18 end-test:19 @echo "----------------------------------------------------------------------"20 @echo "All tests completed."21 @echo "----------------------------------------------------------------------"22 23 sndfile-test: sndfiletest24 ./sndfiletestlibremix/trunk/src/tests/sndfiletest.c
r161 r318 20 20 #include <remix/remix.h> 21 21 22 #include "tests.h" 23 22 24 static void non_existant_file (void); 23 24 int25 main (int argc, char ** argv)26 {27 non_existant_file () ;28 29 return 0;30 }31 25 32 26 static void … … 39 33 int sf_path_key; 40 34 41 printf (" Non existant file test ................... ") ; 42 fflush (stdout) ; 35 INFO ("Attempting to read non existant file") ; 43 36 44 37 env = remix_init (); … … 52 45 CD_STRING("bad_file_name.wav")); 53 46 if (sf_plugin == NULL) { 54 fprintf (stderr, "sf_plugin == NULL\n"); 55 exit (1); 47 FAIL ("Newly created sndfile plugin NULL"); 56 48 } 57 49 58 50 sf1 = remix_new (env, sf_plugin, sf_parms); 51 } 59 52 60 puts ("ok"); 53 int 54 main (int argc, char ** argv) 55 { 56 non_existant_file () ; 57 58 return 0; 61 59 }
