summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--test/sanity.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 050de35..dea382f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,3 +14,9 @@ mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
AM_LIBS = $(CODE_COVERAGE_LIBS)
AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
+
+test_sanity_SOURCES = test/sanity.c
+
+check_PROGRAMS = test/sanity
+
+TESTS = $(check_PROGRAMS)
diff --git a/test/sanity.c b/test/sanity.c
new file mode 100644
index 0000000..b4989f8
--- /dev/null
+++ b/test/sanity.c
@@ -0,0 +1,8 @@
+int main(void)
+{
+#ifdef NDEBUG
+ return 1;
+#else
+ return 0;
+#endif
+}
OpenPOWER on IntegriCloud