# HG changeset patch # User mas01mc # Date 1220375459 0 # Node ID 69d5649d3e1c17d5118bb9551b5847c4af9fd74f # Parent 100cf66a58253f0ef0c3c43c3655fdc89f1479ff Added test for --LISZT over command-line and WS, plus --lisztOffset and --lisztLength diff -r 100cf66a5825 -r 69d5649d3e1c tests/0039/run-test.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/0039/run-test.sh Tue Sep 02 17:10:59 2008 +0000 @@ -0,0 +1,63 @@ +#! /bin/bash + +. ../test-utils.sh + +if [ -f testdb ]; then rm -f testdb; fi + +${AUDIODB} -d testdb -N + +intstring 2 > testfeature01 +floatstring 0 1 >> testfeature01 +floatstring 1 0 >> testfeature01 +intstring 2 > testfeature10 +floatstring 1 0 >> testfeature10 +floatstring 0 1 >> testfeature10 + +cat > testfeaturefiles < testfeaturekeys < testoutput +echo "[0] testfeature01 (2)" > test-expected-output +echo "[1] testfeature10 (2)" >> test-expected-output +cmp testoutput test-expected-output + +if [ -f testdb ]; then rm -f testdb; fi + +${AUDIODB} -d testdb -N +${AUDIODB} -d testdb -B -F testfeaturefiles -K testfeaturekeys +${AUDIODB} -d testdb -S | grep "num files:2" + +${AUDIODB} -d testdb --LISZT > testoutput +echo "[0] testkey01 (2)" > test-expected-output +echo "[1] testkey02 (2)" >> test-expected-output +cmp testoutput test-expected-output + +WSPORT=10020 +start_server ${AUDIODB} ${WSPORT} + +expect_clean_error_exit ${AUDIODB} -d testdb -c localhost:${WSPORT} --LISZT --lisztOffset -1 +#expect_clean_error_exit ${AUDIODB} -d testdb -c localhost:${WSPORT} --LISZT --lisztOffset 3 #NOT EXITING CLEANLY +expect_clean_error_exit ${AUDIODB} -d testdb -c localhost:${WSPORT} --LISZT --lisztLength -1 + +check_server $! + +${AUDIODB} -c localhost:${WSPORT} -d testdb --LISZT > testoutput +cmp testoutput test-expected-output + +stop_server $! + +exit 104 diff -r 100cf66a5825 -r 69d5649d3e1c tests/0039/short-description --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/0039/short-description Tue Sep 02 17:10:59 2008 +0000 @@ -0,0 +1,1 @@ +--LISZT command-line and WS, --lisztOffset, --lisztLength \ No newline at end of file