From cfe91ed582a8947d6cdd5eee0bd3199f3ea265fa Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 31 Oct 2011 18:42:29 +0000 Subject: Add test cases for command-line parsing Preparation for refactoring command-line parsing. All these test cases pass. Signed-off-by: Ben Hutchings --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 1e05640..4b0eb17 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,13 @@ ethtool_SOURCES = ethtool.c ethtool-copy.h internal.h \ smsc911x.c at76c50x-usb.c sfc.c stmmac.c \ rxclass.c +TESTS = test-cmdline +check_PROGRAMS = test-cmdline test-one-cmdline +test_cmdline_SOURCES = test-cmdline.c test-common.c +test_cmdline_CFLAGS = -DTEST_ETHTOOL +test_one_cmdline_SOURCES = $(ethtool_SOURCES) +test_one_cmdline_CFLAGS = -DTEST_ETHTOOL + dist-hook: cp $(top_srcdir)/ethtool.spec $(distdir) -- cgit v1.2.1