summaryrefslogtreecommitdiff
path: root/Build/source/texk/gregorio/gregorio.test
blob: 581a5fcd425e6f9818fc6bae7751ae4cd4860295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /bin/sh -vx
# $Id$
# Copyright 2016-2017 Karl Berry <tex-live@tug.org>
# Copyright 2015 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea

export TEXMFCNF

# DOCSRC=$srcdir/$GREGORIO_TREE/doc

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_gregorio=$BinDir/gregorio$ExeExt

failed=

echo "*** gregorio --version" \
	&& $_gregorio --version \
	&& echo && echo "gregorio-version tests OK" && echo \
	|| failed="$failed gregorio-version"

echo "*** gregorio --help" \
	&& $_gregorio --help \
	&& echo && echo "gregorio-help tests OK" && echo \
	|| failed="$failed gregorio-help"

# echo "*** gregorio -o factus.gtex factus.gabc" \
# 	&& $_gregorio -o factus.gtex $DOCSRC/factus.gabc \
# 	&& echo && echo "gregorio-factus tests OK" && echo \
# 	|| failed="$failed gregorio-factus"

# echo "*** gregorio -o veni.gtex veni.gabc" \
# 	&& $_gregorio -o veni.gtex $DOCSRC/veni.gabc \
# 	&& echo && echo "gregorio-veni tests OK" && echo \
# 	|| failed="$failed gregorio-veni"

test -z "$failed" && exit 0
echo
echo "failed tests:$failed"
exit 1