diff options
Diffstat (limited to 'src/plugins/kdb/db2/libdb2/test/run.test')
-rw-r--r-- | src/plugins/kdb/db2/libdb2/test/run.test | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/plugins/kdb/db2/libdb2/test/run.test b/src/plugins/kdb/db2/libdb2/test/run.test index 6f5d589..729ca1f 100644 --- a/src/plugins/kdb/db2/libdb2/test/run.test +++ b/src/plugins/kdb/db2/libdb2/test/run.test @@ -36,7 +36,7 @@ main() find $bindir -type f -exec test -r {} \; -print | head -100 > $BINFILES if [ $# -eq 0 ]; then - for t in 1 2 3 4 5 6 7 8 9 10 11 12 13 20 40 41 60 61; do + for t in 1 2 3 4 5 6 7 8 9 10 11 12 13 20 40 41 60 61 62; do test$t done else @@ -47,7 +47,7 @@ main() [0-9]*) test$1;; btree) - for t in 1 2 3 7 8 9 10 12 13 40 41 60 61; do + for t in 1 2 3 7 8 9 10 12 13 40 41 60 61 62; do test$t done;; hash) @@ -947,4 +947,26 @@ test61 () { done } +test62 () { + echo "Test 62: btree: small key, big data, known byte order files" + (echo foo1234; echo bar1234) | + awk '{ + s = $0 + for (i = 0; i < 484; i++) { + s = s "x"; + } + printf("%s\n", s); + }' > $TMP1 + (echo g; echo kfoo1234; echo g; echo kbar1234) > $TMP2 + for f in t.le.db t.be.db; do + echo " $f" + $PROG -f $f -s -o $TMP3 btree $TMP2 + if (cmp -s $TMP1 $TMP3); then : + else + echo "test62: btree: failed" + exit 1 + fi + done +} + main $* |