# HG changeset patch # User Bruno Haible # Date 1284682195 -7200 # Node ID 045fc677dc80a629739b969644b5cc76b1766fa7 # Parent b3e909bb673a32a945ab90cff804c7461b8957ac 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. diff --git a/modules/termios-c++-tests b/modules/termios-c++-tests new file mode 100644 --- /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 --- /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 --- /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 --- /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; +}