add TBTGetFirst/TBTGetLast methods
[tedtools.git] / tests / btree
1 SORTOPT="-k2 -k3"
2 BTREEOPT=
3 for NUMERIC in n y
4 do 
5         DATACAT="cat data/btree.data"
6         for STRATEGY in 0 1 2
7         do
8                 [ -f temp/BTREE ] && rm -rf temp/BTREE
9                 echo "$DATACAT | ./tbtreetest -c 10 -f temp/BTREE -b -S $STRATEGY $BTREEOPT"
10                 $DATACAT | ./tbtreetest -c 10 -f temp/BTREE -b -S $STRATEGY $BTREEOPT || exit 1
11                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -L || exit 1
12                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -z || exit 1
13                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -s 542 || exit 1 
14                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -d 542 || exit 1 
15                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -s 542 || exit 1 
16                 DATACAT="sort $SORTOPT data/btree.data"
17         done
18         SORTOPT="-k2n -k3"
19         BTREEOPT="-k"
20 done 
21                 
22