Test cases can now be run with make check!
-SUBDIRS = src
+SUBDIRS = src test
# Get the plugin includes directory.
AX_GCC_PLUGIN
+# Python for test cases
+AM_PATH_PYTHON([2.0],
+ , # Do nothing if Python is found.
+ AC_MSG_WARN([Could not find Python binary. Python 2.0 or newer is
+ required for test cases. Running make check will be disabled.]))
+AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
+
AC_CONFIG_FILES([Makefile
src/Makefile
+ test/Makefile
workspace/Makefile])
AC_OUTPUT
--- /dev/null
+if HAVE_PYTHON
+TESTS_ENVIRONMENT = $(PYTHON) $(srcdir)/run-testcase.py --with-gcc=$(CC) \
+ --with-ia-lib-dir=$(top_builddir)/src/.libs \
+ --with-ia-src-dir=$(top_srcdir)
+TESTS = int-types.xml
+endif