view libtests/0025/run-test.sh @ 370:2d5c3f8e8c22

Merge gcc-4.3-cleanups branch (-r629:642, but I consider that branch as having served its purpose) onto the trunk. Now compiles cleanly even with a fairly picky gcc. I await version 4.4 with bated breath.
author mas01cr
date Wed, 12 Nov 2008 15:40:40 +0000
parents 94c18f128ce8
children
line wrap: on
line source
#! /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