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 --- internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index c2f504a..ba7d719 100644 --- a/internal.h +++ b/internal.h @@ -94,6 +94,10 @@ struct cmd_context { struct ifreq ifr; /* ifreq suitable for ethtool ioctl */ }; +#ifdef TEST_ETHTOOL +int test_cmdline(const char *args); +#endif + int send_ioctl(struct cmd_context *ctx, void *cmd); /* National Semiconductor DP83815, DP83816 */ -- cgit v1.2.1