Revision 88
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/util/test_map | ||
---|---|---|
8 | 8 |
test -n "$n" || n=2 |
9 | 9 |
let n++ |
10 | 10 |
|
11 |
head -"$n" NYSpecimenDataAmericas.csv|../map \ |
|
12 |
../../mappings/NYBG-VegX.organisms.csv >NYSpecimenDataAmericas.test.xml \ |
|
13 |
&& diff NYSpecimenDataAmericas.xml NYSpecimenDataAmericas.test.xml |
|
11 |
in=NYSpecimenDataAmericas.csv |
|
12 |
out=NYSpecimenDataAmericas.xml |
|
14 | 13 |
|
15 |
head -"$n" NYSpecimenDataAmericas.csv|../map2vegbank \ |
|
16 |
../../mappings/joins/NYBG-VegBank.organisms.csv |
|
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 |
scripts/util/accept_test_output | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
# Sets the correct test output to be the generated test output |
|
3 |
# Usage: self file |
|
4 |
|
|
5 |
selfDir="$(dirname -- "$0")" |
|
6 |
cd "$selfDir" |
|
7 |
|
|
8 |
file="$(basename -- "$1")" |
|
9 |
cp -p "$file" "test_output/$file" |
|
0 | 10 |
Also available in: Unified diff
Made it easier to accept test output