- Timestamp:
- 10/15/07 13:49:02 (5 years ago)
- Location:
- hw/hw2/MyStuff
- Files:
-
- 2 modified
-
runtests.sh (modified) (1 diff)
-
runtests_setup.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hw/hw2/MyStuff/runtests.sh
r63 r64 12 12 13 13 # check output 14 if ( `diff runtests.out/1 runtests.out/2` != '') echo 'OnePageNN failure'15 if ( `diff runtests.out/3 runtests.out/4` != '') echo 'BasicNN failure'16 if ( `diff runtests.out/5 runtests.out/6` != '') echo 'SelectionNN failure'17 if ( `cat runtests.out/10` != '') echo 'Rectangle failure: mismatch on zeros'18 if ( `diff runtests.out/7 runtests.out/8` != '') echo 'Rectangle failure'14 if ( "`gdiff -q runtests.out/1 runtests.out/2`" != "" ) echo 'OnePageNN failure' 15 if ( "`gdiff -q runtests.out/3 runtests.out/4`" != "" ) echo 'BasicNN failure' 16 if ( "`gdiff -q runtests.out/5 runtests.out/6`" != "" ) echo 'SelectionNN failure' 17 if ( "`cat runtests.out/10`" != "") echo 'Rectangle failure: mismatch on zeros' 18 if ( "`gdiff -q runtests.out/7 runtests.out/8`" != "" ) echo 'Rectangle failure' -
hw/hw2/MyStuff/runtests_setup.sql
r63 r64 7 7 drop table if exists testscan25; 8 8 create table testgist(id integer, the_box box); 9 copy testgist from '/ Users/joeh/devel/hw2/MyStuff/randomboxes' delimiter ';' ;9 copy testgist from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes' delimiter ';' ; 10 10 create index testgistix on testgist using gist (the_box box_ops); 11 11 12 12 create table testscan(id integer, the_box box); 13 copy testscan from '/ Users/joeh/devel/hw2/MyStuff/randomboxes' delimiter ';' ;13 copy testscan from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes' delimiter ';' ; 14 14 15 15 create table testgist25 (id integer, the_box box); 16 copy testgist25 from '/ Users/joeh/devel/hw2/MyStuff/randomboxes25' delimiter ';' ;16 copy testgist25 from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes25' delimiter ';' ; 17 17 create index testgist25ix on testgist25 using gist (the_box box_ops); 18 18 19 19 create table testscan25(id integer, the_box box); 20 copy testscan25 from '/Users/joeh/devel/hw2/MyStuff/randomboxes25' delimiter ';' ; 21 20 copy testscan25 from '/home/cc/cs186/fa07/class/cs186-ee/Hw2/MyStuff/randomboxes25' delimiter ';' ; 22 21 23 22 -- … … 30 29 -- SeqScan: 31 30 set enable_seqscan to off; 31 set enable_bitmapscan to off; 32 32 33 \o runtests.out/1 33 34 select id, box_mindistance(the_box, '(0.5,0.5,0.5,0.5)') as dist from testscan25 where the_box ~~ '(0.5,0.5,0.5,0.5)' and box_mindistance(the_box, '(0.5,0.5,0.5,0.5)') > 0 order by dist;
