4529406f3e00ee54599cf83f5783ece440f853b9
[tedtools.git] / tests / btree
1 SORTOPT="-k 2,3"
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                 echo -n Size temp/BTREE:
12                 ls -l temp/BTREE | awk '{print $5}'
13 #               ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -L || exit 1
14                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -s 542 || exit 1 
15                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -d 542 || exit 1 
16                 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -s 542 || exit 1 
17                 DATACAT="sort $SORTOPT data/btree.data"
18         done
19         SORTOPT="-n -k 2,3"
20         BTREEOPT="-k"
21 done 
22                 
23