Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Contents of /branches/destination-access/src/test/only-split.sh
Parent Directory
|
Revision Log
Revision 1920 -
(show annotations)
(download)
(as text)
Wed Jun 7 17:26:57 2017 UTC (7 years, 10 months ago) by amb
File MIME type: text/x-sh
File size: 1609 byte(s)
Wed Jun 7 17:26:57 2017 UTC (7 years, 10 months ago) by amb
File MIME type: text/x-sh
File size: 1609 byte(s)
Merge changes since version 3.2 from the trunk into the branch up to the bug fix for the route optimisation.
1 | #!/bin/sh |
2 | |
3 | # Exit on error |
4 | |
5 | set -e |
6 | |
7 | # Test name |
8 | |
9 | name=`basename $0 .sh` |
10 | |
11 | # Slim or non-slim |
12 | |
13 | if [ "$1" = "slim" ]; then |
14 | slim="-slim" |
15 | dir="slim" |
16 | else |
17 | slim="" |
18 | dir="fat" |
19 | fi |
20 | |
21 | # Libroutino or not libroutino |
22 | |
23 | LD_LIBRARY_PATH=$PWD/..:$LD_LIBRARY_PATH |
24 | export LD_LIBRARY_PATH |
25 | |
26 | if [ "$2" = "lib" ]; then |
27 | lib="+lib" |
28 | else |
29 | lib="" |
30 | fi |
31 | |
32 | # Pruned or non-pruned |
33 | |
34 | if [ "$2" = "prune" ]; then |
35 | |
36 | case $name in |
37 | prune-isolated) prune="--prune-none --prune-isolated=100";; |
38 | prune-short) prune="--prune-none --prune-short=5";; |
39 | prune-straight) prune="--prune-none --prune-straight=5";; |
40 | *) prune="";; |
41 | esac |
42 | |
43 | pruned="-pruned" |
44 | else |
45 | prune="--prune-none" |
46 | pruned="" |
47 | fi |
48 | |
49 | # Create the output directory |
50 | |
51 | dir=$dir$lib$pruned |
52 | |
53 | [ -d $dir ] || mkdir $dir |
54 | |
55 | # Run the programs under a run-time debugger |
56 | |
57 | debugger=${TEST_DEBUGGER:-} |
58 | |
59 | # Name related options |
60 | |
61 | osm=$name.osm |
62 | log=$name$lib$slim$pruned.log |
63 | |
64 | option_prefix="--prefix=$name" |
65 | option_dir="--dir=$dir" |
66 | |
67 | # Generic program options |
68 | |
69 | option_planetsplitter="--loggable --tagging=../../xml/routino-tagging.xml --errorlog $prune" |
70 | option_filedumper="--dump-osm" |
71 | |
72 | # Run planetsplitter |
73 | |
74 | echo "Running planetsplitter" |
75 | |
76 | echo ../planetsplitter$slim $option_dir $option_prefix $option_planetsplitter $osm > $log |
77 | $debugger ../planetsplitter$slim $option_dir $option_prefix $option_planetsplitter $osm >> $log |
78 | |
79 | # Run filedumper |
80 | |
81 | echo "Running filedumper" |
82 | |
83 | echo ../filedumper$slim $option_dir $option_prefix $option_filedumper >> $log |
84 | $debugger ../filedumper$slim $option_dir $option_prefix $option_filedumper > $dir/$osm |
85 |
Properties
Name | Value |
---|---|
svn:executable | * |