Skip to content

Commit

Permalink
Added command line tests for code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
henryso committed Feb 2, 2016
1 parent 2ad1ea2 commit 740d4d0
Show file tree
Hide file tree
Showing 30 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/scripted/cli/help.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eval $gregorio -h
exit $?
6 changes: 6 additions & 0 deletions tests/scripted/cli/invalid_option.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if eval $gregorio -Z
then
exit 1
else
exit 0
fi
2 changes: 2 additions & 0 deletions tests/scripted/cli/licence.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eval $gregorio -L
exit $?
2 changes: 2 additions & 0 deletions tests/scripted/cli/usage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eval $gregorio
exit $?
2 changes: 2 additions & 0 deletions tests/scripted/cli/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eval $gregorio -V
exit $?
Empty file added tests/scripted/kpsewhich/01.dat
Empty file.
Empty file added tests/scripted/kpsewhich/02.dat
Empty file.
Empty file added tests/scripted/kpsewhich/03.dat
Empty file.
Empty file added tests/scripted/kpsewhich/04.dat
Empty file.
Empty file added tests/scripted/kpsewhich/05.dat
Empty file.
Empty file added tests/scripted/kpsewhich/06.dat
Empty file.
Empty file added tests/scripted/kpsewhich/07.dat
Empty file.
Empty file added tests/scripted/kpsewhich/08.dat
Empty file.
Empty file added tests/scripted/kpsewhich/09.dat
Empty file.
Empty file added tests/scripted/kpsewhich/10.dat
Empty file.
Empty file added tests/scripted/kpsewhich/11.dat
Empty file.
Empty file added tests/scripted/kpsewhich/12.dat
Empty file.
Empty file added tests/scripted/kpsewhich/13.dat
Empty file.
Empty file added tests/scripted/kpsewhich/14.dat
Empty file.
Empty file added tests/scripted/kpsewhich/15.dat
Empty file.
Empty file added tests/scripted/kpsewhich/16.dat
Empty file.
Empty file added tests/scripted/kpsewhich/17.dat
Empty file.
Empty file added tests/scripted/kpsewhich/18.dat
Empty file.
Empty file added tests/scripted/kpsewhich/19.dat
Empty file.
Empty file added tests/scripted/kpsewhich/20.dat
Empty file.
5 changes: 5 additions & 0 deletions tests/scripted/kpsewhich/bad-response.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PATH=.:$PATH
export RUNTYPE=bad-response

eval $gregorio -W test.gabc
exit $?
15 changes: 15 additions & 0 deletions tests/scripted/kpsewhich/kpsewhich
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

case $RUNTYPE in
many-vowel)
for file in *.dat
do
echo $file
done
exit 0
;;
bad-response)
echo
exit 0
;;
esac
5 changes: 5 additions & 0 deletions tests/scripted/kpsewhich/many-vowel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PATH=.:$PATH
export RUNTYPE=many-vowel

eval $gregorio -W test.gabc
exit $?
4 changes: 4 additions & 0 deletions tests/scripted/kpsewhich/test.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: test;
language: notfound;
%%
(c4) d(d)
23 changes: 23 additions & 0 deletions tests/scripted/kpsewhich/test.gtex
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
% File generated by gregorio 4.1.0-beta1-integration-3d8bac4-3043
\GregorioTeXAPIVersion{4.1.0-beta1}%
% Name: test
\GreBeginHeaders %
\GreHeader{name}{test}%
\GreHeader{language}{notfound}%
\GreEndHeaders %
\GreBeginScore{961afb7a6225e109400a72f4a992a3d08b8d68b7}{6}{6}{0}{0}{}{4}%
\GreScoreOpening{%
}{%
\GreSetInitialClef{c}{4}{3}{c}{0}{3}%
}{%
}{\GreSyllable}{\GreSetFirstSyllableText{d}{}{}{{}{\GreFirstWord{}}{}}{{}{\GreFirstWord{\GreFirstSyllable{\GreFirstSyllableInitial{d}}}}{}}{}}{}{\GreFirstWord}{1}{\GreSetNextSyllable{}{}{}{}{}}{}{0}{%
\GreLastOfScore %
}{%
\GreGlyph{\GreCPPunctum}{6}{9}{0}%
{%
\GreGlyphHeights{6}{6}%
}{}{}%
}%
%
\GreEndScore %
\endinput %

0 comments on commit 740d4d0

Please sign in to comment.