From 53e58cc0e9bacbb35e4c170f889f74982dc124ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 25 Jun 2015 11:11:03 +0200 Subject: [PATCH] build: Define tests for 'make check'. * Makefile.am (TESTS, TEST_EXTENSIONS, SCM_LOG_COMPILER, EXTRA_DIST): New variables. * tests/dhcp-dhcp.scm: Add missing 'test-end'. --- Makefile.am | 17 +++++++++++++++++ tests/dhcp-dhcp.scm | 2 ++ 2 files changed, 19 insertions(+) diff --git a/Makefile.am b/Makefile.am index 2f995d1..a8749d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,3 +66,20 @@ SUFFIXES = .go # for details. guix_install_go_files = install-nobase_nodist_guilemoduleDATA $(guix_install_go_files): install-nobase_dist_guilemoduleDATA + + + +# Unit tests. + +TESTS = \ + tests/arp-identifiers.scm \ + tests/dhcp-dhcp.scm \ + tests/dhcp-interfaces.scm \ + tests/dhcp-messages.scm \ + tests/dhcp-send.scm + +TEST_EXTENSIONS = .scm + +SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE) + +EXTRA_DIST = $(TESTS) diff --git a/tests/dhcp-dhcp.scm b/tests/dhcp-dhcp.scm index 9d24e4c..eacfc8d 100644 --- a/tests/dhcp-dhcp.scm +++ b/tests/dhcp-dhcp.scm @@ -26,4 +26,6 @@ 'TODO +(test-end) + (exit (zero? (test-runner-fail-count (test-runner-current))))