3 #=======================================================================
5 # File ID: 57712470-0790-11e6-9cac-fefdb24f8e10
7 # Test build of LilyPond template files
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #=======================================================================
13 progname
=test-ly-files
27 " -n "$progname" -- "$@
")"
28 test "$?" = "0" ||
exit 1
37 -a|
--all) opt_all
=1; shift ;;
38 -h|
--help) opt_help
=1; shift ;;
39 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
40 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
41 --version) echo $progname $VERSION; exit 0 ;;
43 *) echo $progname: Internal error
>&2; exit 1 ;;
46 opt_verbose
=$
(($opt_verbose - $opt_quiet))
48 if test "$opt_help" = "1"; then
49 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
52 Test build of LilyPond template files
54 Usage: $progname [options]
59 Also run "tm" to check the MIDI and "evince" to check the PDF.
63 Be more quiet. Can be repeated to increase silence.
65 Increase level of verbosity. Can be repeated.
67 Print version information.
73 if test "$GITLAB_CI" = "true"; then
74 echo Lilypond does not exist here
in Gitlab CI
, skipping tests
>&2
78 rm -f STDprojnameDTS.
{ly
,midi
,pdf
,wav
}
83 ln -fns $f STDprojnameDTS.ly
86 make STDprojnameDTS.wav
87 test -f STDprojnameDTS.wav ||
{
88 echo $progname: STDprojnameDTS.wav does not exist
>&2
91 if test "$opt_all" = "1"; then
92 tm STDprojnameDTS.midi
93 evince STDprojnameDTS.pdf