This unit test serves to validate the configuration and installation of the Criterion unit testing framework. This test will only be compiled and run if Criterion is installed.
# Files generated during make check
rtest/ndata
rtest/nhtml
+tests/**/*.log
+tests/**/*.trs
+
+## Binaries
+tests/lib/common/command_line
# Folders generated by Visual Studio builds
**/Debug/**
man_MANS = graphviz.7
# $(subdirs) contains the list from: AC_CONFIG_SUBDIRS
-SUBDIRS = $(subdirs) lib plugin cmd tclpkg doc contrib share graphs rtest
+SUBDIRS = $(subdirs) lib plugin cmd tclpkg doc contrib share graphs rtest tests
.PHONY: doxygen
doxygen:
tclpkg/gv/demo/Makefile
tclpkg/gv/META.gv
rtest/Makefile
+ tests/Makefile
+ tests/lib/Makefile
+ tests/lib/common/Makefile
share/Makefile
share/examples/Makefile
share/gui/Makefile
--- /dev/null
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+SUBDIRS = lib
--- /dev/null
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+SUBDIRS = common
--- /dev/null
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+if HAVE_CRITERION
+
+AM_LDFLAGS = \
+ -lcriterion
+
+TESTS = command_line
+
+bin_PROGRAMS = $(TESTS)
+
+command_line_SOURCES = command_line.c
+
+endif
--- /dev/null
+#include <criterion/criterion.h>
+
+#include <stdbool.h>
+
+Test(test, success)
+{
+ cr_assert(true);
+}