File: run

package info (click to toggle)
spatialindex 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,312 kB
  • sloc: cpp: 51,468; python: 3,886; ansic: 848; sh: 375; makefile: 155
file content (27 lines) | stat: -rwxr-xr-x 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh

set -e

echo Generating dataset
test-rtree-Generator 10000 100 > mix

echo Creating new R-Tree and Querying
test-rtree-RTreeLoad mix tree 20 intersection > res

echo Running exhaustive search
test-rtree-Exhaustive mix intersection > res2

echo Comparing results
sort -n res > a
sort -n res2 > b

set +e
if diff a b; then
    echo "Same results with exhaustive search. Everything seems fine."
    echo Results: `wc -l a`
    rm -rf a b res res2 tree.*
else
    echo "PROBLEM! We got different results from exhaustive search!"
    exit 1
fi