mas01mc@335: #! /bin/bash mas01mc@335: mas01mc@335: . ../test-utils.sh mas01mc@335: mas01mc@335: if [ -f testdb ]; then rm -f testdb; fi mas01mc@335: mas01mc@335: ${AUDIODB} -d testdb -N mas01mc@335: mas01mc@335: intstring 2 > testfeature01 mas01mc@335: floatstring 0 1 >> testfeature01 mas01mc@335: floatstring 1 0 >> testfeature01 mas01mc@335: intstring 2 > testfeature10 mas01mc@335: floatstring 1 0 >> testfeature10 mas01mc@335: floatstring 0 1 >> testfeature10 mas01mc@335: mas01mc@335: cat > testfeaturefiles < testfeaturekeys < testoutput mas01mc@335: echo "[0] testfeature01 (2)" > test-expected-output mas01mc@335: echo "[1] testfeature10 (2)" >> test-expected-output mas01mc@335: cmp testoutput test-expected-output mas01mc@335: mas01mc@335: if [ -f testdb ]; then rm -f testdb; fi mas01mc@335: mas01mc@335: ${AUDIODB} -d testdb -N mas01mc@335: ${AUDIODB} -d testdb -B -F testfeaturefiles -K testfeaturekeys mas01mc@335: ${AUDIODB} -d testdb -S | grep "num files:2" mas01mc@335: mas01mc@335: ${AUDIODB} -d testdb --LISZT > testoutput mas01mc@335: echo "[0] testkey01 (2)" > test-expected-output mas01mc@335: echo "[1] testkey02 (2)" >> test-expected-output mas01mc@335: cmp testoutput test-expected-output mas01mc@335: mas01cr@548: WSPORT=10039 mas01mc@335: start_server ${AUDIODB} ${WSPORT} mas01mc@335: mas01cr@550: expect_client_failure ${AUDIODB} -d testdb -c localhost:${WSPORT} --LISZT --lisztOffset -1 mas01cr@550: expect_client_failure ${AUDIODB} -d testdb -c localhost:${WSPORT} --LISZT --lisztOffset 3 mas01cr@550: expect_client_failure ${AUDIODB} -d testdb -c localhost:${WSPORT} --LISZT --lisztLength -1 mas01mc@335: mas01mc@335: check_server $! mas01mc@335: mas01mc@335: ${AUDIODB} -c localhost:${WSPORT} -d testdb --LISZT > testoutput mas01mc@335: cmp testoutput test-expected-output mas01mc@335: mas01mc@335: stop_server $! mas01mc@335: mas01mc@335: exit 104