From f963ec24bef79448bbd49b373f0ec84c4221ada6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 Sep 2010 02:09:55 +0200 Subject: [PATCH] Tests for module 'termios'. * 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 | 18 ++++++++++++++++++ modules/termios-tests | 11 +++++++++++ tests/test-termios-c++.cc | 30 ++++++++++++++++++++++++++++++ tests/test-termios.c | 27 +++++++++++++++++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 modules/termios-c++-tests create mode 100644 modules/termios-tests create mode 100644 tests/test-termios-c++.cc create mode 100644 tests/test-termios.c diff --git a/modules/termios-c++-tests b/modules/termios-c++-tests new file mode 100644 index 000000000..a19758185 --- /dev/null +++ b/modules/termios-c++-tests @@ -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 index 000000000..df7eac190 --- /dev/null +++ b/modules/termios-tests @@ -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 index 000000000..e2ea11a1d --- /dev/null +++ b/tests/test-termios-c++.cc @@ -0,0 +1,30 @@ +/* Test of 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 . */ + +/* Written by Bruno Haible , 2010. */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include + +#include "signature.h" + + +int +main () +{ +} diff --git a/tests/test-termios.c b/tests/test-termios.c new file mode 100644 index 000000000..1e7bf48e0 --- /dev/null +++ b/tests/test-termios.c @@ -0,0 +1,27 @@ +/* Test of 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 . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include + +int +main (void) +{ + return 0; +} -- 2.11.0