Mercurial > hg > audiodb
diff libtests/0030/run-test.sh @ 355:94c18f128ce8
First version of the API, committed to the main trunk. Thanks Christophe, for all the help!
author | mas01ik |
---|---|
date | Wed, 12 Nov 2008 10:21:06 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libtests/0030/run-test.sh Wed Nov 12 10:21:06 2008 +0000 @@ -0,0 +1,36 @@ +#! /bin/bash + +#. ../test-utils.sh +# +#if [ -f testdb ]; then rm -f testdb; fi +# +## creation +#${AUDIODB} -N -d testdb +# +#stat testdb +# +## should fail (testdb exists) +#expect_clean_error_exit ${AUDIODB} -N -d testdb +# +## should fail (no db given) +#expect_clean_error_exit ${AUDIODB} -N +# +#exit 104 + +LD_LIBRARY_PATH=../.. +export LD_LIBRARY_PATH + +. ../test-utils.sh + +make clean +make all + +./test1 + +exit_code=$? + +if [ $exit_code -eq 0 ]; then + exit 104 +else + exit -1 +fi