Skip to content

Commit

Permalink
Added tests for better code coverage, including kpathsea tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
henryso committed Feb 7, 2016
1 parent a54936f commit 1058d00
Show file tree
Hide file tree
Showing 36 changed files with 1,766 additions and 24 deletions.
2 changes: 1 addition & 1 deletion harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ function scripted_find {
function scripted_test {
indir="$(dirname "$1")"
filename="$(basename "$1")"
outfile="${filename%.sh}.log"
outfile="${filename%.sh}.out"
logfile="${filename%.sh}.log"

testing "$1" "$filename.result" "scripted_clean '$filename'"
Expand Down
1,355 changes: 1,355 additions & 0 deletions tests/gabc-dump/glyphs/coverage.dump

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions tests/gabc-dump/glyphs/coverage.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: extra code coverage;
generated-by: gregorio 4.1.0-beta1-develop-be70caa-3182;
%%
(c3)hi_h_i>(hi_h_i>) -hi_h_i>(-hi_h_i>) hwi_h_i>(hwi_h_i>) hoi_h_i>(hoi_h_i>) gi_h_i>(gi_h_i>) gwi_h_i>(gwi_h_i>) goi_h_i>(goi_h_i>) hi_h_i(hi_h_i) -hi_h_i(-hi_h_i) hwi_h_i(hwi_h_i) hoi_h_i(hoi_h_i) gi_h_i(gi_h_i) gwi_h_i(gwi_h_i) goi_h_i(goi_h_i) hi_g_i(hi_g_i) -hi_g_i(-hi_g_i) hwi_g_i(hwi_g_i) hoi_g_i(hoi_g_i) gi_g_i(gi_g_i) gwi_g_i(gwi_g_i) goi_g_i(goi_g_i) fgOh~'(fgOh'~) fgOi~'(fgOi'~) gz0i(gz0/i) c1az0c4m(c4/az0c1/m) c4mz0c1a(c1/mz0c4/a) g_1(g_1) h_1(h_1) hvGr<(hv/Gr<<) hvGr<H~(hv/Gr<H~)
39 changes: 39 additions & 0 deletions tests/gabc-dump/glyphs/coverage.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: extra code coverage;
%%
(c3)
hi_h_i>(hi_h_i>)
-hi_h_i>(-hi_h_i>)
hwi_h_i>(hwi_h_i>)
hoi_h_i>(hoi_h_i>)
gi_h_i>(gi_h_i>)
gwi_h_i>(gwi_h_i>)
goi_h_i>(goi_h_i>)

hi_h_i(hi_h_i)
-hi_h_i(-hi_h_i)
hwi_h_i(hwi_h_i)
hoi_h_i(hoi_h_i)
gi_h_i(gi_h_i)
gwi_h_i(gwi_h_i)
goi_h_i(goi_h_i)

hi_g_i(hi_g_i)
-hi_g_i(-hi_g_i)
hwi_g_i(hwi_g_i)
hoi_g_i(hoi_g_i)
gi_g_i(gi_g_i)
gwi_g_i(gwi_g_i)
goi_g_i(goi_g_i)

fgOh~'(fgOh~'[cs:m])
fgOi~'(fgOi~'[cs:m])

gz0i(gz0i)
c1az0c4m(c4az0c1m)
c4mz0c1a(c1mz0c4a)

g_1(g_1[cs:x])
h_1(h_1[cs:x])

hvGr<(hvGr<)
hvGr<H~(hvGr<H~)
Binary file added tests/gabc-dump/glyphs/coverage.pdf
Binary file not shown.
66 changes: 58 additions & 8 deletions tests/gabc-dump/glyphs/fusion.dump
Original file line number Diff line number Diff line change
Expand Up @@ -2594,7 +2594,7 @@
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 38 (G_VIRGA_REVERSA)
glyph_type 37 (G_VIRGA_REVERSA)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch h
Expand Down Expand Up @@ -2672,7 +2672,7 @@
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 38 (G_VIRGA_REVERSA)
glyph_type 37 (G_VIRGA_REVERSA)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch f
Expand Down Expand Up @@ -2766,7 +2766,7 @@
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch g
shape 26 (S_ORISCUS_CAVUM_ASCENDENS)
shape 24 (S_ORISCUS_CAVUM_ASCENDENS)
liquescentia 32 (L_FUSED)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
Expand Down Expand Up @@ -2814,7 +2814,7 @@
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch g
shape 21 (S_PUNCTUM_CAVUM)
shape 19 (S_PUNCTUM_CAVUM)
liquescentia 32 (L_FUSED)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
Expand Down Expand Up @@ -2861,7 +2861,7 @@
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch g
shape 24 (S_PUNCTUM_CAVUM_INCLINATUM)
shape 22 (S_PUNCTUM_CAVUM_INCLINATUM)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 15 (G_PUNCTUM)
Expand Down Expand Up @@ -2931,7 +2931,7 @@
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 38 (G_VIRGA_REVERSA)
glyph_type 37 (G_VIRGA_REVERSA)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch h
Expand Down Expand Up @@ -2977,7 +2977,7 @@
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 38 (G_VIRGA_REVERSA)
glyph_type 37 (G_VIRGA_REVERSA)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch e
Expand Down Expand Up @@ -3023,7 +3023,7 @@
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 38 (G_VIRGA_REVERSA)
glyph_type 37 (G_VIRGA_REVERSA)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch g
Expand All @@ -3049,6 +3049,56 @@
=====================================================================
type 0 (GRE_SYLLABLE)
position 4 (WORD_ONE_SYLLABLE)
---------------------------------------------------------------------
character f
---------------------------------------------------------------------
character @
---------------------------------------------------------------------
character g
---------------------------------------------------------------------
character h
---------------------------------------------------------------------
character @
---------------------------------------------------------------------
beginning of style ST_CENTER
---------------------------------------------------------------------
character i
---------------------------------------------------------------------
end of style ST_CENTER
---------------------------------------------------------------------
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 15 (G_PUNCTUM)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch f
shape 1 (S_PUNCTUM)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 17 (G_PODATUS)
liquescentia 32 (L_FUSED)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch g
shape 1 (S_PUNCTUM)
liquescentia 32 (L_FUSED)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch h
shape 1 (S_PUNCTUM)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 15 (G_PUNCTUM)
liquescentia 32 (L_FUSED)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch i
shape 1 (S_PUNCTUM)
liquescentia 32 (L_FUSED)
=====================================================================
type 0 (GRE_SYLLABLE)
position 4 (WORD_ONE_SYLLABLE)
---------------------------------------------------------------------
type 7 (GRE_BAR)
bar 5 (B_DIVISIO_FINALIS)
Expand Down
4 changes: 2 additions & 2 deletions tests/gabc-dump/glyphs/fusion.exp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: fusion;
generated-by: gregorio 4.1.0-beta1-fix-868-79eb47d-3161;
generated-by: gregorio 4.1.0-beta1-develop-be70caa-3182;
%%
(c3)h!iw@ji@j@ih<sp>~</sp>(h!iw@ji@j@ih~) -e@hj(-e@hj) f@g<v>[ocb:1;6mm]</v>@ij(f@g[nv:\GreOverCurlyBrace{6mm}{0pt}{0pt}{1}{0}]@ij) e@g(i@g) HI@jg(HI@jg) GH@jg(GH@jg) d@d(d@d) h@f_e<sp>~</sp>(h@f_e~) e@g(e@g) h!iw_@ji@j@ih<sp>~</sp>(h!iw_@ji@j@ih~) h!iw_@j_i@j@ih<sp>~</sp>(h!iw_@j_i@j@ih~) h!iw_@j_i_@j@ih<sp>~</sp>(h!iw_@j_i_@j@ih~) h!iw'_@j_i_@j_@ih<sp>~</sp>(h!iw'_@j_i_@j_@ih~) h.@e@fd>(h.@e@fd>) jh@i_g@jk(jh@i_g@jk) jh@ig_@jk<sp>~</sp>(jh@ig_@jk~) jh@i_g_@j_h(jh@i_g_@j_h) f@g@h@j'h@i_g_@j.@h@f@e@d@gi<(f@g@h@j'h@i_g_@j.@h@f@e@d@gi<) @<v>[</v>fghj'hi_g_j.hfedgi<<v>]</v>(f@g@h@j'h@i_g_@j.@h@f@e@d@gi<) f'_@hf(f'_@hf) f_@if@ge(f_@if@ge) g'@hg_@i_f(g'@hg_@i_f) g_@h_g_@if(g_@h_g_@if) g@h_g_@if(g@h_g_@if) g@h_g_!@if(g@h_g_!@if) f@gwh(f@gwh) e@gwh(e@gwi) f@gw@hi(f@gw@hi) e@gw@ih(e@gw@ih) e@gW@ih(e@gw@ih) e@gij(e@gij) e@g@ece(e@g@ece) e@g@ec@e(e@g@ec@e) e@g@igi(e@g@igi) e@g@ig@i(e@g@ig@i) gw@ij(gw@ij) gW@ij(gw@ij) -g@ed(-g@ed) g@ed(g@ed) g@ec(g@ec) hV@fe(hV@fe) hv@fe(hv@fe) fV@hi(fV@hi) fv@hi(fv@hi) e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(fv@hi) e@gor@i(e@gor@i) e@gr@i(e/gr@i) e@Gr@i(e/Gr@i) g@cd(g@cd) hV@g@e(hV@g@e) eV@d@b(eV@d@b) gV@f@d(gV@f@d) f@gh@i(f@gh@i) (::)
1 change: 1 addition & 0 deletions tests/gabc-dump/glyphs/fusion.gabc
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ g@cd(g@cd)
hV@g@e(hV@g@e)
eV@d@b(eV@d@b)
gV@f@d(gV@f@d)
f@gh@i(f@gh@i)
(::)
Binary file modified tests/gabc-dump/glyphs/fusion.pdf
Binary file not shown.
45 changes: 41 additions & 4 deletions tests/gabc-dump/glyphs/punctum-inclinatum-2.dump
Original file line number Diff line number Diff line change
Expand Up @@ -1407,11 +1407,11 @@
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch i
shape 24 (S_PUNCTUM_CAVUM_INCLINATUM)
shape 22 (S_PUNCTUM_CAVUM_INCLINATUM)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch h
shape 25 (S_PUNCTUM_CAVUM_INCLINATUM_AUCTUS)
shape 23 (S_PUNCTUM_CAVUM_INCLINATUM_AUCTUS)
liquescentia 2 (L_AUCTUS_ASCENDENS)
=====================================================================
type 0 (GRE_SYLLABLE)
Expand Down Expand Up @@ -1439,15 +1439,52 @@
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch d
shape 24 (S_PUNCTUM_CAVUM_INCLINATUM)
shape 22 (S_PUNCTUM_CAVUM_INCLINATUM)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch e
shape 25 (S_PUNCTUM_CAVUM_INCLINATUM_AUCTUS)
shape 23 (S_PUNCTUM_CAVUM_INCLINATUM_AUCTUS)
liquescentia 2 (L_AUCTUS_ASCENDENS)
=====================================================================
type 0 (GRE_SYLLABLE)
position 4 (WORD_ONE_SYLLABLE)
---------------------------------------------------------------------
character G
---------------------------------------------------------------------
character r
---------------------------------------------------------------------
character <
---------------------------------------------------------------------
beginning of style ST_CENTER
---------------------------------------------------------------------
character I
---------------------------------------------------------------------
end of style ST_CENTER
---------------------------------------------------------------------
beginning of style ST_SPECIAL_CHAR
---------------------------------------------------------------------
character ~
---------------------------------------------------------------------
end of style ST_SPECIAL_CHAR
---------------------------------------------------------------------
type 3 (GRE_ELEMENT)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
type 2 (GRE_GLYPH)
glyph_type 6 (G_2_PUNCTA_INCLINATA_ASCENDENS)
liquescentia 1 (L_DEMINUTUS)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch g
shape 23 (S_PUNCTUM_CAVUM_INCLINATUM_AUCTUS)
liquescentia 2 (L_AUCTUS_ASCENDENS)
- - - - - - - - - - - - - - - - - - - - - - -
type 1 (GRE_NOTE)
pitch i
shape 4 (S_PUNCTUM_INCLINATUM_DEMINUTUS)
liquescentia 1 (L_DEMINUTUS)
=====================================================================
type 0 (GRE_SYLLABLE)
position 4 (WORD_ONE_SYLLABLE)
---------------------------------------------------------------------
type 7 (GRE_BAR)
bar 5 (B_DIVISIO_FINALIS)
Expand Down
4 changes: 2 additions & 2 deletions tests/gabc-dump/glyphs/punctum-inclinatum-2.exp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: punctum inclinatum 2;
generated-by: gregorio 4.1.0-beta1-fix-868-aea71fd-3164;
generated-by: gregorio 4.1.0-beta1-develop-be70caa-3182;
%%
(c4)jvI(jv/I) jvIH(jvIH) jvIHG(jvIHG) jvIHGF(jvIHGF) jvIHGFE(jvIHGFE) jvIHGFED(jv/IHGFED) (:) Dev(Dev) DEfv(DEfv) DEFgv(DEFgv) DEFGhv(DEFGhv) DEFGHiv(DEFGHiv) DEFGHIjv(DEFGHI/jv) (:) D!ev(D!ev) DE!fv(DE!fv) DEF!gv(DEF!gv) DEFG!hv(DEFG!hv) DEFGH!iv(DEFGH!iv) DEFGHI!jv(DEFGHI!jv) (:) jvIHGFEDEFGHIjv(jv/IHGFEDEFGHI/jv) (:) DED(DED) DEFE(DEFE) DEFGF(DEFGF) DEFGHG(DEFGHG) JIJ(JIJ) JIHI(JIHI) JIHGH(JIHGH) JIHGFG(JIHGFG) (::Z) G.(G.) G<sp>~</sp>.(G.~) G.H.<sp>~</sp>(G.H.~) IrH<r(IrHr<<) DrE<r(DrEr<<) (::)
(c4)jvI(jv/I) jvIH(jvIH) jvIHG(jvIHG) jvIHGF(jvIHGF) jvIHGFE(jvIHGFE) jvIHGFED(jv/IHGFED) (:) Dev(Dev) DEfv(DEfv) DEFgv(DEFgv) DEFGhv(DEFGhv) DEFGHiv(DEFGHiv) DEFGHIjv(DEFGHI/jv) (:) D!ev(D!ev) DE!fv(DE!fv) DEF!gv(DEF!gv) DEFG!hv(DEFG!hv) DEFGH!iv(DEFGH!iv) DEFGHI!jv(DEFGHI!jv) (:) jvIHGFEDEFGHIjv(jv/IHGFEDEFGHI/jv) (:) DED(DED) DEFE(DEFE) DEFGF(DEFGF) DEFGHG(DEFGHG) JIJ(JIJ) JIHI(JIHI) JIHGH(JIHGH) JIHGFG(JIHGFG) (::Z) G.(G.) G<sp>~</sp>.(G.~) G.H.<sp>~</sp>(G.H.~) IrH<r(IrHr<<) DrE<r(DrEr<<) Gr<I<sp>~</sp>(Gr<I~) (::)
2 changes: 1 addition & 1 deletion tests/gabc-dump/glyphs/punctum-inclinatum-2.gabc
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ DED(DED) DEFE(DEFE) DEFGF(DEFGF) DEFGHG(DEFGHG)
JIJ(JIJ) JIHI(JIHI) JIHGH(JIHGH) JIHGFG(JIHGFG)
(::Z)
G.(G.) G<sp>~</sp>.(G~.) G.H.<sp>~</sp>(G.H.~)
IrH<r(IrH<r) DrE<r(DrE<r)
IrH<r(IrH<r) DrE<r(DrE<r) Gr<I<sp>~</sp>(Gr<I~)
(::)
Binary file modified tests/gabc-dump/glyphs/punctum-inclinatum-2.pdf
Binary file not shown.
Loading

0 comments on commit 1058d00

Please sign in to comment.