1 # ========== Executing gpst-file.t v0.00 ==========
2 # Testing --author option...
3 ok - "../../gpst-file -a sunny files/testfile/file.txt" - --author option works
4 ok - "../../gpst-file -a sunny files/testfile/file.txt" - --author option works (stderr)
5 ok - "../../gpst-file -a sunny -o xml files/testfile/file.txt" - Author info is included with -o xml
6 ok - "../../gpst-file -a sunny -o xml files/testfile/file.txt" - Author info is included with -o xml (stderr)
7 # Testing --description option...
8 ok - "../../gpst-file -d 'Description stuff \&<>' files/testfile/file.txt" - --description with backslash and stuff
9 ok - "../../gpst-file -d 'Description stuff \&<>' files/testfile/file.txt" - --description with backslash and stuff (stderr)
10 ok - "../../gpst-file -o xml -d 'Description stuff \&<>' files/testfile/file.txt" - --description with backslash and stuff
11 ok - "../../gpst-file -o xml -d 'Description stuff \&<>' files/testfile/file.txt" - --description with backslash and stuff (stderr)
12 # Testing -h (--help) option...
13 ok - "../../gpst-file -h" - Option -h prints help screen
14 ok - "../../gpst-file -h" - Option -h prints help screen (stderr)
15 ok - "../../gpst-file -h" - No Id with only -h
16 # Testing --output-format option...
17 ok - "../../gpst-file -o pgtab files/testfile/file.txt" - Output pgtab format from DSC_4426.JPG
18 ok - "../../gpst-file -o pgtab files/testfile/file.txt" - Output pgtab format from DSC_4426.JPG (stderr)
19 ok - "../../gpst-file -o xml files/testfile/file.txt" - Output XML information for DSC_4426.JPG
20 ok - "../../gpst-file -o xml files/testfile/file.txt" - Output XML information for DSC_4426.JPG (stderr)
21 ok - "../../gpst-file -o blurfl files/testfile/file.txt" - Unknown output format specified
22 ok - "../../gpst-file -o blurfl files/testfile/file.txt" - Unknown output format specified (stderr)
23 # Testing -w (--strip-whitespace) option...
24 ok - "../../gpst-file -w -o xml files/testfile/file.txt" - Strip whitespace from XML
25 ok - "../../gpst-file -w -o xml files/testfile/file.txt" - Strip whitespace from XML (stderr)
26 # Testing -T (--timezone) option...
27 ok - "../../gpst-file --timezone +1234 files/testfile/file.txt" - --timezone works
28 ok - "../../gpst-file --timezone +1234 files/testfile/file.txt" - --timezone works (stderr)
29 ok - "../../gpst-file -T +0200 files/testfile/file.txt" - Positive time zone
30 ok - "../../gpst-file -T +0200 files/testfile/file.txt" - Positive time zone (stderr)
31 ok - "../../gpst-file -T-0600 files/testfile/file.txt" - Negative time zone
32 ok - "../../gpst-file -T-0600 files/testfile/file.txt" - Negative time zone (stderr)
33 ok - "../../gpst-file -T CET files/testfile/file.txt" - Time zone abbreviation
34 ok - "../../gpst-file -T CET files/testfile/file.txt" - Time zone abbreviation (stderr)
35 ok - "../../gpst-file -T cet files/testfile/file.txt" - Time zone is converted to upper case
36 ok - "../../gpst-file -T cet files/testfile/file.txt" - Time zone is converted to upper case (stderr)
37 ok - "../../gpst-file -T Z files/testfile/file.txt" - Zulu abbreviation
38 ok - "../../gpst-file -T Z files/testfile/file.txt" - Zulu abbreviation (stderr)
39 ok - "../../gpst-file -T erf324 files/testfile/file.txt" - Invalid time zone abbr, contains digits
40 ok - "../../gpst-file -T erf324 files/testfile/file.txt" - Invalid time zone abbr, contains digits (stderr)
41 ok - "../../gpst-file -T CET -o xml files/testfile/file.txt" - Time zone abbr. works with -o xml
42 ok - "../../gpst-file -T CET -o xml files/testfile/file.txt" - Time zone abbr. works with -o xml (stderr)
43 ok - "../../gpst-file -T Z -o xml files/testfile/file.txt" - Zulu time zone works with -o xml
44 ok - "../../gpst-file -T Z -o xml files/testfile/file.txt" - Zulu time zone works with -o xml (stderr)
45 # Testing -v (--verbose) option...
46 ok - "../../gpst-file -hv" - Option --version with -h returns version number and help screen
47 ok - "../../gpst-file -hv" - Option --version with -h returns version number and help screen (stderr)
48 # Testing --version option...
49 ok - "../../gpst-file --version" - Option --version returns version number
50 ok - "../../gpst-file --version" - Option --version returns version number (stderr)
52 ok - "../../gpst-file files/testfile/file.txt" - No options
53 ok - "../../gpst-file files/testfile/file.txt" - No options (stderr)
54 ok - "echo files/testfile/file.txt | ../../gpst-file" - Read filename from stdin
55 ok - "echo files/testfile/file.txt | ../../gpst-file" - Read filename from stdin (stderr)