Revision 132
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/test/map | ||
---|---|---|
22 | 22 |
(set -x; head -"$n" "$in") |
23 | 23 |
} |
24 | 24 |
|
25 |
function importDb() |
|
26 |
{ |
|
27 |
echo "$PS4. \"$in\"" >&2 |
|
28 |
. "$in" |
|
29 |
} |
|
30 |
|
|
25 | 31 |
function exportXml() |
26 | 32 |
{ |
27 | 33 |
out="$stem.$out_fmt.xml" |
... | ... | |
43 | 49 |
# Test exporting to XML |
44 | 50 |
for out_fmt in VegX VegBank; do |
45 | 51 |
if test "$ext" == "csv"; then importCsv|exportXml |
46 |
elif test "$ext" == "sh"; then (. "$in"; exportXml)
|
|
52 |
elif test "$ext" == "sh"; then (importDb; exportXml)
|
|
47 | 53 |
fi |
48 | 54 |
done |
49 | 55 |
|
50 | 56 |
# Test exporting to VegBank db |
51 | 57 |
if test "$ext" == "csv"; then importCsv|exportDb |
52 |
elif test "$ext" == "sh"; then (. "$in"; exportDb)
|
|
58 |
elif test "$ext" == "sh"; then (importDb; exportDb)
|
|
53 | 59 |
fi |
54 | 60 |
done |
Also available in: Unified diff
test/map: Echo command used to import db config