- run: make -Cbuild test
- run: make -Cbuild install
- fedora:
+ fedora-out-of-tree:
docker:
- image: fedora
steps:
- checkout
- run: dnf install -y pkg-config ragel gcc gcc-c++ automake autoconf libtool make which glib2-devel freetype-devel cairo-devel libicu-devel gobject-introspection-devel graphite2-devel redhat-rpm-config || true
- - run: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
- - run: make && make check
+ - run: NOCONFIGURE=1 ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
+ - run: mkdir build && cd build && ../configure && make && make check
archlinux:
docker:
build:
jobs:
- oracledeveloperstudio
- - fedora
+ - fedora-out-of-tree
- archlinux
- freebsd9
- base
lib \
$(NULL)
-AM_TESTS_ENVIRONMENT = \
- EXEEXT="$(EXEEXT)"; \
- export EXEEXT; \
- srcdir="$(srcdir)"; \
- export srcdir; \
- builddir="$(builddir)"; \
- export builddir; \
- $(NULL)
-
-if AUTOMAKE_OLDER_THAN_1_13
-TESTS_ENVIRONMENT = \
- $(AM_TESTS_ENVIRONMENT) \
- $(TESTS_LOG_COMPILER) \
- $(NULL)
-endif
-
check:
- $(srcdir)/run-fuzzer-tests.py
+ EXEEXT="$(EXEEXT)" srcdir="$(srcdir)" builddir="$(builddir)" $(srcdir)/run-fuzzer-tests.py
-include $(top_srcdir)/git.mk
top_builddir = os.environ.get ("top_builddir", ".")
hb_fuzzer = os.path.join (top_builddir, "hb-fuzzer" + EXEEXT)
-if hb_fuzzer == ".\\hb-fuzzer":
- hb_fuzzer = "./hb-fuzzer.exe"
-
if not os.path.exists (hb_fuzzer):
+ if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]):
+ print ("""Failed to find hb-fuzzer binary automatically,
+please provide it as the first argument to the tool""")
+ sys.exit (1)
+
hb_fuzzer = sys.argv[1]
print ('hb_fuzzer:', hb_fuzzer)
args = sys.argv[1:]
if not os.path.exists (hb_shape):
+ if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]):
+ print ("""Failed to find hb-shape binary automatically,
+please provide it as the first argument to the tool""")
+ sys.exit (1)
+
hb_shape = args[0]
args = args[1:]