guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dhcp] 03/03: build: Define tests for 'make check'.


From: Ludovic Courtès
Subject: [dhcp] 03/03: build: Define tests for 'make check'.
Date: Thu, 25 Jun 2015 09:13:14 +0000

civodul pushed a commit to branch master
in repository dhcp.

commit 53e58cc0e9bacbb35e4c170f889f74982dc124ff
Author: Ludovic Courtès <address@hidden>
Date:   Thu Jun 25 11:11:03 2015 +0200

    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(+), 0 deletions(-)

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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]