Project

General

Profile

1 53 aaronmk
#!/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 73 aaronmk
head -"$n" NYSpecimenDataAmericas.csv|../map \
12
../../mappings/NYBG-VegX.organisms.csv >NYSpecimenDataAmericas.test.xml \
13
&& diff NYSpecimenDataAmericas.xml NYSpecimenDataAmericas.test.xml
14 53 aaronmk
15 73 aaronmk
head -"$n" NYSpecimenDataAmericas.csv|../map2vegbank \
16
../../mappings/joins/NYBG-VegBank.organisms.csv