comparison libtests/0010/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
comparison
equal deleted inserted replaced
354:4871a3ed9e36 355:94c18f128ce8
1 #! /bin/bash
2
3 #. ../test-utils.sh
4 #
5 #if [ -f testdb ]; then rm -f testdb; fi
6 #
7 ## creation
8 #${AUDIODB} -N -d testdb
9 #
10 #stat testdb
11 #
12 ## should fail (testdb exists)
13 #expect_clean_error_exit ${AUDIODB} -N -d testdb
14 #
15 ## should fail (no db given)
16 #expect_clean_error_exit ${AUDIODB} -N
17 #
18 #exit 104
19
20 LD_LIBRARY_PATH=../..
21 export LD_LIBRARY_PATH
22
23 . ../test-utils.sh
24
25 make clean
26 make all
27
28 ./test1
29
30 exit_code=$?
31
32 if [ $exit_code -eq 0 ]; then
33 exit 104
34 else
35 exit -1
36 fi