root/scripts/util/test_map @ 90
1 |
#!/bin/bash
|
---|---|
2 |
# Tests map
|
3 |
# Usage: [env n=<num-rows>] self
|
4 |
|
5 |
selfDir="$(dirname -- "$0")" |
6 |
cd "$selfDir" |
7 |
|
8 |
test -n "$n" || n=2 |
9 |
let n++
|
10 |
|
11 |
in=NYSpecimenDataAmericas.csv |
12 |
out=NYSpecimenDataAmericas.xml |
13 |
|
14 |
head -"$n" "$in"|../map ../../mappings/NYBG-VegX.organisms.csv \ |
15 |
>"test_output/$out" && diff "$out" "test_output/$out" |
16 |
|
17 |
head -"$n" "$in"|../map2vegbank ../../mappings/joins/NYBG-VegBank.organisms.csv |