commit 892614d3212744a47629bcdbae0b2fa006f24d86 from: Omar Polo date: Mon Jan 10 11:37:46 2022 UTC hook the tests commit - aead84be5857aecb84cf961972e04ab63a84eafb commit + 892614d3212744a47629bcdbae0b2fa006f24d86 blob - c9929c120717464cab46b8833c4e0eac75ae6c2c blob + 38101f4394fc9772d3ad8bd5d727af043d08d615 --- Makefile.am +++ Makefile.am @@ -13,7 +13,19 @@ AM_CFLAGS += -Wstrict-prototypes AM_CFLAGS += -Wwrite-strings AM_CFLAGS += -Wno-unused-parameter -test: - @echo XXX: figure it out something - @false -#$(MAKE) -C regress +SUDO ?= sudo +HAVE_LISP ?= no + +$(top_builddir)/ninepscript/ninepscript: + ${MAKE} -C $(top_builddir)/ninepscript + +test: $(top_builddir)/ninepscript/ninepscript + "${SUDO}" "$(top_builddir)"/ninepscript/ninepscript \ + -r $(top_srcdir)/regress/root \ + $(top_srcdir)/regress/ninepscript/*-suite.9ps + @if [ "${HAVE_LISP}" = yes ]; then \ + cd "$(top_srcdir)"/regress/lisp && \ + SUDO="${SUDO}" ./run.sh; \ + else \ + echo "skipping lisp suite (HAVE_LISP=yes to run it)."; \ + fi