Project

General

Profile

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
head -"$n" NYSpecimenDataAmericas.csv|../map \
12
../../mappings/NYBG-VegX.organisms.csv >NYSpecimenDataAmericas.test.xml \
13
&& diff NYSpecimenDataAmericas.xml NYSpecimenDataAmericas.test.xml
14

    
15
head -"$n" NYSpecimenDataAmericas.csv|../map2vegbank \
16
../../mappings/joins/NYBG-VegBank.organisms.csv
(7-7/11)