source: branches/stable/util/arb_test_compresssion

Last change on this file was 6141, checked in by westram, 15 years ago
  • spellchecked all (phew)
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#!/bin/sh
2
3if [ $# -lt 1 ];then
4        echo "syntax $0 arbfile [treename] (no .arb ending)"
5        exit -1;
6fi
7
8mkdir test.$1
9
10echo optimizing database
11arb_2_bin -c$2 $1.arb test.$1/$1_o1.arb
12
13echo generate mapfile
14arb_2_bin -m test.$1/$1_o1.arb test.$1/$1_o1m.arb
15
16echo optimizing optimized
17arb_2_bin -c$2 test.$1/$1_o1.arb test.$1/$1_o2.arb
18
19echo optimizing optimized mapfile
20arb_2_bin -c$2 -t test.$1/$1_o1m.arb test.$1/$1_o2m.arb
21
22echo '    generate original ascii file'
23arb_2_ascii $1.arb test.$1/$1_a.arb
24
25echo  '    generate optimized ascii file'
26arb_2_ascii test.$1/$1_o1.arb test.$1/$1_o1_a.arb
27
28echo '    generate optimized map ascii file'
29arb_2_ascii test.$1/$1_o1m.arb test.$1/$1_o1m_a.arb
30
31echo '    generate optimized2 ascii file'
32arb_2_ascii test.$1/$1_o2.arb test.$1/$1_o2_a.arb
33
34echo '    generate optimized2 map ascii file'
35arb_2_ascii test.$1/$1_o2m.arb test.$1/$1_o2m_a.arb
36
37echo '    regenerate binary ascii'
38arb_2_bin test.$1/$1_a.arb test.$1/$1_ab.arb
39arb_2_ascii test.$1/$1_ab.arb test.$1/$1_aba.arb
40
41echo 'check original and optimized'
42cmp test.$1/$1_a.arb test.$1/$1_o1_a.arb || echo '***'
43
44echo check optimized and optimized map
45cmp test.$1/$1_o1_a.arb test.$1/$1_o1m_a.arb
46
47echo check opti and opti2
48cmp test.$1/$1_o1_a.arb test.$1/$1_o2_a.arb
49
50echo check opti and opti2 map
51cmp test.$1/$1_o1_a.arb test.$1/$1_o2m_a.arb
52
53echo check source and regenerated
54cmp test.$1/$1_a.arb test.$1/$1_aba.arb
Note: See TracBrowser for help on using the repository browser.