fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 test/Makefile.am      |    2 +-
 test/run-test-conf.sh |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit b35c72dbc7da5b61a84766cfa431c95c1d1b35bd
Author: Ben Wagner <bungeman@xxxxxxxxxxxx>
Date:   Tue Dec 15 17:39:05 2020 -0500

    Always run-test-conf, but skip if not built.
    
    The test-conf test requires libjson-c to be available in order to be
    built. However, there has been no user indication that additional tests
    could be built if the json-c development files were available.
    
    Continue to not build test-conf if json-c is not available, but do run
    the test harness. The test harness is updated to SKIP the test if the
    test-conf binary is unavailable.

diff --git a/test/Makefile.am b/test/Makefile.am
index 5a998b3..1a9b293 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -101,8 +101,8 @@ if ENABLE_JSONC
 check_PROGRAMS += test-conf
 test_conf_CFLAGS = $(JSONC_CFLAGS)
 test_conf_LDADD = $(top_builddir)/src/libfontconfig.la $(JSONC_LIBS)
-TESTS += run-test-conf.sh
 endif
+TESTS += run-test-conf.sh
 
 check_PROGRAMS += test-bz106618
 test_bz106618_LDADD = $(top_builddir)/src/libfontconfig.la
diff --git a/test/run-test-conf.sh b/test/run-test-conf.sh
index 437bafa..e085e82 100644
--- a/test/run-test-conf.sh
+++ b/test/run-test-conf.sh
@@ -33,6 +33,12 @@ BUILDTESTDIR=${builddir-"$MyPWD"}
 
 RUNNER=../test/test-conf$EXEEXT
 
+if [ ! -f ${RUNNER} ]; then
+    echo "${RUNNER} not found!\n"
+    echo "Building this test requires libjson-c development files to be available."
+    exit 77 # SKIP
+fi
+
 for i in \
 	60-generic.conf \
 	90-synthetic.conf \
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux