1#!/bin/sh -e
2
3pause()
4{
5    local junk
6
7    printf "Press return to continue..."
8    read junk
9}
10
11cd ..
12./cave-man-install.sh
13cd Test
14../vcf-split test-all-fields- 1 11 < test.vcf
15../vcf-split --fields chrom,pos,ref,alt,format test-limited-fields- 1 11 < test.vcf
16rm -f *.done
17
18printf "All files should be 12 lines:\n"
19wc -l test-*.vcf
20pause
21
22printf "There should be no differences shown below:\n"
23for col in $(seq 11); do
24    diff test-all-fields-$col.vcf correct-all-fields-$col.vcf
25    diff test-limited-fields-$col.vcf correct-limited-fields-$col.vcf
26done
27rm -f test-*.vcf
28