Mercurial > hg > octave-lyh > gnulib-hg
changeset 13688:045fc677dc80
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 17 Sep 2010 02:09:55 +0200 |
parents | b3e909bb673a |
children | af3a7152efba |
files | modules/termios-c++-tests modules/termios-tests tests/test-termios-c++.cc tests/test-termios.c |
diffstat | 4 files changed, 86 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
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
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
new file mode 100644 --- /dev/null +++ b/tests/test-termios-c++.cc @@ -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 () +{ +}
new file mode 100644 --- /dev/null +++ b/tests/test-termios.c @@ -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; +}