summaryrefslogtreecommitdiff
path: root/modules/getopt-gnu-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2016-12-18 14:03:37 +0100
committerBruno Haible <bruno@clisp.org>2016-12-18 14:03:37 +0100
commitbd70cf691d1f9a1a514b37b5dcd675bea3b013bd (patch)
tree402eb21e96ec5a084bef4f9726092cb8f2373cba /modules/getopt-gnu-tests
parent3e8966603703b677b3c29003dd8c1d68dd34457c (diff)
downloadgnulib-bd70cf691d1f9a1a514b37b5dcd675bea3b013bd.tar.gz
Split tests for getopt-posix and getopt-gnu.
* tests/test-getopt-posix.c: New file. * tests/test-getopt-gnu.c: New file, with code from test-getopt.c. * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of GNULIB_TEST_GETOPT_GNU. * modules/getopt-posix-tests (Files): Add test-getopt-posix.c, test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h. (Makefile.am): Test test-getopt-posix instead of test-getopt. * modules/getopt-gnu-tests: New file. * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
Diffstat (limited to 'modules/getopt-gnu-tests')
-rw-r--r--modules/getopt-gnu-tests21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/getopt-gnu-tests b/modules/getopt-gnu-tests
new file mode 100644
index 0000000000..688b5ded87
--- /dev/null
+++ b/modules/getopt-gnu-tests
@@ -0,0 +1,21 @@
+Files:
+tests/macros.h
+tests/signature.h
+tests/test-getopt-gnu.c
+tests/test-getopt-main.h
+tests/test-getopt.h
+tests/test-getopt_long.h
+
+Depends-on:
+dup2
+setenv
+stdbool
+unistd
+unsetenv
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-getopt-gnu
+check_PROGRAMS += test-getopt-gnu
+test_getopt_gnu_LDADD = $(LDADD) $(LIBINTL)