changeset 43:cadab98092a2

Test single-vector insertion and point query.
author mas01cr
date Mon, 17 Sep 2007 14:26:15 +0000
parents 08ae151398cb
children 09275a49cb51
files tests/0003/run-test.sh
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/0003/run-test.sh	Mon Sep 17 14:26:15 2007 +0000
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+if [ -f testdb ]; then rm -f testdb; fi
+
+${AUDIODB} -d testdb -N
+
+# FIXME: endianness!
+printf "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f" > testfeature
+
+${AUDIODB} -d testdb -I -f testfeature
+
+${AUDIODB} -d testdb -Q point -f /tmp/foo > query-output
+
+echo testfeature 1 0 0 > test-query-output
+
+cmp query-output test-query-output
+
+exit 104