Tests for module 'termios'.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Sep 2010 00:09:55 +0000 (02:09 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Sep 2010 00:09:55 +0000 (02:09 +0200)
* modules/termios-c++-tests: New file.
* modules/termios-tests: New file.
* tests/test-termios-c++.cc: New file.
* tests/test-termios.c: New file.

modules/termios-c++-tests [new file with mode: 0644]
modules/termios-tests [new file with mode: 0644]
tests/test-termios-c++.cc [new file with mode: 0644]
tests/test-termios.c [new file with mode: 0644]

diff --git a/modules/termios-c++-tests b/modules/termios-c++-tests
new file mode 100644 (file)
index 0000000..a197581
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-termios-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-termios-c++
+check_PROGRAMS += test-termios-c++
+test_termios_c___SOURCES = test-termios-c++.cc
+endif
diff --git a/modules/termios-tests b/modules/termios-tests
new file mode 100644 (file)
index 0000000..df7eac1
--- /dev/null
@@ -0,0 +1,11 @@
+Files:
+tests/test-termios.c
+
+Depends-on:
+termios-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-termios
+check_PROGRAMS += test-termios
diff --git a/tests/test-termios-c++.cc b/tests/test-termios-c++.cc
new file mode 100644 (file)
index 0000000..e2ea11a
--- /dev/null
@@ -0,0 +1,30 @@
+/* Test of <termios.h> substitute in C++ mode.
+   Copyright (C) 2010 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <termios.h>
+
+#include "signature.h"
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-termios.c b/tests/test-termios.c
new file mode 100644 (file)
index 0000000..1e7bf48
--- /dev/null
@@ -0,0 +1,27 @@
+/* Test of <termios.h> substitute.
+   Copyright (C) 2010 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
+
+#include <config.h>
+
+#include <termios.h>
+
+int
+main (void)
+{
+  return 0;
+}