Add uuid in configure file
[platform/upstream/fontconfig.git] / test / run-test-conf.sh
1 #!/bin/sh
2 # test/run-test-conf.sh
3 #
4 # Copyright © 2000 Keith Packard
5 # Copyright © 2018 Akira TAGOH
6 #
7 # Permission to use, copy, modify, distribute, and sell this software and its
8 # documentation for any purpose is hereby granted without fee, provided that
9 # the above copyright notice appear in all copies and that both that
10 # copyright notice and this permission notice appear in supporting
11 # documentation, and that the name of the author(s) not be used in
12 # advertising or publicity pertaining to distribution of the software without
13 # specific, written prior permission.  The authors make no
14 # representations about the suitability of this software for any purpose.  It
15 # is provided "as is" without express or implied warranty.
16 #
17 # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 # PERFORMANCE OF THIS SOFTWARE.
24 set -e
25
26 case "$OSTYPE" in
27     msys ) MyPWD=`pwd -W` ;;  # On Msys/MinGW, returns a MS Windows style path.
28     *    ) MyPWD=`pwd`    ;;  # On any other platforms, returns a Unix style path.
29 esac
30
31 TESTDIR=${srcdir-"$MyPWD"}
32 BUILDTESTDIR=${builddir-"$MyPWD"}
33
34 RUNNER=../test/test-conf$EXEEXT
35
36 if [ ! -f ${RUNNER} ]; then
37     echo "${RUNNER} not found!\n"
38     echo "Building this test requires libjson-c development files to be available."
39     exit 77 # SKIP
40 fi
41
42 for i in \
43         45-generic.conf \
44         60-generic.conf \
45         90-synthetic.conf \
46     ; do
47     test_json=$(echo test-$i|sed s'/\.conf/.json/')
48     echo $RUNNER $TESTDIR/../conf.d/$i $TESTDIR/$test_json
49     $RUNNER $TESTDIR/../conf.d/$i $TESTDIR/$test_json
50 done
51 for i in \
52         test-issue-286.json \
53         test-style-match.json \
54     ; do
55     echo $RUNNER $TESTDIR/$i ...
56     $RUNNER $TESTDIR/../conf.d/10-autohint.conf $TESTDIR/$i
57 done