view tests/0002/run-test.sh @ 279:dee55886eca0 sampling

make the RNG a part of the audioDB object. Easier to deal with memory discipline and initialization (though note the FIXME comment in audioDB::initTables()). Also initialize the RNG from the current time. A mature implementation would use a proper source of entropy...
author mas01cr
date Wed, 02 Jul 2008 13:53:23 +0000
parents fe4dc39b2dd7
children
line wrap: on
line source
#! /bin/bash

. ../test-utils.sh

if [ -f testdb ]; then rm -f testdb; fi

${AUDIODB} -N -d testdb

# FIXME: at some point we will want to test that some relevant
# information is being printed
${AUDIODB} -S -d testdb
${AUDIODB} -d testdb -S

# should fail (no db given)
expect_clean_error_exit ${AUDIODB} -S

exit 104