4 # Check where we're being run from.
9 # Find libsndfile shared object.
10 libsndfile_lib_location
=""
12 if [ -f "../src/.libs/libsndfile.so" ]; then
13 libsndfile_lib_location
="../src/.libs/"
14 elif [ -f "../src/libsndfile.so" ]; then
15 libsndfile_lib_location
="../src/"
16 elif [ -f "../src/.libs/libsndfile.dylib" ]; then
17 libsndfile_lib_location
="../src/.libs/"
18 elif [ -f "../src/libsndfile.dylib" ]; then
19 libsndfile_lib_location
="../src/"
22 echo "Not able to find the libsndfile shared lib we've just built."
23 echo "This may cause the following test to fail."
27 libsndfile_lib_location
=`(cd $libsndfile_lib_location && pwd)`
31 sndfile_oct_location
=""
33 if [ -f .libs
/sndfile.oct
]; then
34 sndfile_oct_location
=".libs"
35 elif [ -f sndfile.oct
]; then
36 sndfile_oct_location
="."
38 echo "Not able to find the sndfile.oct binaries we've just built."
42 case `file -b $sndfile_oct_location/sndfile.oct` in
46 echo "Tests don't work on this platform."
50 echo "Not able to find the sndfile.oct binaries we've just built."
56 # Make sure the TERM environment variable doesn't contain anything wrong.
59 # echo "libsndfile_lib_location : $libsndfile_lib_location"
60 # echo "sndfile_oct_location : $sndfile_oct_location"
62 export LD_LIBRARY_PATH
="$libsndfile_lib_location:$LD_LIBRARY_PATH"
64 octave_src_dir
=`(cd $octave_src_dir && pwd)`
66 octave_script
="$octave_src_dir/octave_test.m"
68 (cd $sndfile_oct_location && octave
-qH $octave_script)