diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2020-05-29 01:21:37 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2020-06-07 19:11:06 +0200 |
commit | 875a9cf2c43d9013aeb385d9dce443082fbbee2d (patch) | |
tree | f37d45cdfbf0ec55f9094c27f61caa7765f4d207 | |
parent | a75e3be55bb3699ccdfc2c292303903537c030ed (diff) | |
download | ethtool-875a9cf2c43d9013aeb385d9dce443082fbbee2d.tar.gz |
selftest: omit test-features if netlink is enabled
The test-features selftest is checking data structures passed to ioctl()
syscall. Therefore a complete rework of the test framework will be needed
to be able to perform an equivalent selftest for netlink interface. Until
such framework is implemented, disable test-features when building ethtool
with netlink support.
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 0f8465f..b3ffae5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,12 +40,16 @@ AM_CPPFLAGS += @MNL_CFLAGS@ LDADD += @MNL_LIBS@ endif -TESTS = test-cmdline test-features -check_PROGRAMS = test-cmdline test-features +TESTS = test-cmdline +check_PROGRAMS = test-cmdline test_cmdline_SOURCES = test-cmdline.c test-common.c $(ethtool_SOURCES) test_cmdline_CFLAGS = -DTEST_ETHTOOL +if !ETHTOOL_ENABLE_NETLINK +TESTS += test-features +check_PROGRAMS += test-features test_features_SOURCES = test-features.c test-common.c $(ethtool_SOURCES) test_features_CFLAGS = -DTEST_ETHTOOL +endif dist-hook: cp $(top_srcdir)/ethtool.spec $(distdir) |