mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +00:00
unigbrk/base: Add tests.
* tests/unigbrk/test-unigbrk-h.c: New file. * modules/unigbrk/base-tests: New file. * tests/unigbrk/test-unigbrk-h-c++.cc: New file. * modules/unigbrk/base-c++-tests: New file.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
2025-10-03 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
unigbrk/base: Add tests.
|
||||
* tests/unigbrk/test-unigbrk-h.c: New file.
|
||||
* modules/unigbrk/base-tests: New file.
|
||||
* tests/unigbrk/test-unigbrk-h-c++.cc: New file.
|
||||
* modules/unigbrk/base-c++-tests: New file.
|
||||
|
||||
uniwidth/base: Add tests.
|
||||
* tests/uniwidth/test-uniwidth-h.c: New file.
|
||||
* modules/uniwidth/base-tests: New file.
|
||||
|
||||
18
modules/unigbrk/base-c++-tests
Normal file
18
modules/unigbrk/base-c++-tests
Normal file
@@ -0,0 +1,18 @@
|
||||
Files:
|
||||
tests/unigbrk/test-unigbrk-h-c++.cc
|
||||
|
||||
Status:
|
||||
c++-test
|
||||
|
||||
Depends-on:
|
||||
ansi-c++-opt
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
if ANSICXX
|
||||
TESTS += test-unigbrk-h-c++
|
||||
check_PROGRAMS += test-unigbrk-h-c++
|
||||
test_unigbrk_h_c___SOURCES = unigbrk/test-unigbrk-h-c++.cc
|
||||
test_unigbrk_h_c___LDADD = $(LDADD) $(LIBUNISTRING)
|
||||
endif
|
||||
13
modules/unigbrk/base-tests
Normal file
13
modules/unigbrk/base-tests
Normal file
@@ -0,0 +1,13 @@
|
||||
Files:
|
||||
tests/unigbrk/test-unigbrk-h.c
|
||||
|
||||
Depends-on:
|
||||
unigbrk/base-c++-tests
|
||||
|
||||
configure.ac:
|
||||
|
||||
Makefile.am:
|
||||
TESTS += test-unigbrk-h
|
||||
check_PROGRAMS += test-unigbrk-h
|
||||
test_unigbrk_h_SOURCES = unigbrk/test-unigbrk-h.c
|
||||
test_unigbrk_h_LDADD = $(LDADD) $(LIBUNISTRING)
|
||||
25
tests/unigbrk/test-unigbrk-h-c++.cc
Normal file
25
tests/unigbrk/test-unigbrk-h-c++.cc
Normal file
@@ -0,0 +1,25 @@
|
||||
/* Test of <unigbrk.h> in C++ mode.
|
||||
Copyright (C) 2025 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 <https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <unigbrk.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
}
|
||||
26
tests/unigbrk/test-unigbrk-h.c
Normal file
26
tests/unigbrk/test-unigbrk-h.c
Normal file
@@ -0,0 +1,26 @@
|
||||
/* Test of <unigbrk.h>.
|
||||
Copyright (C) 2025 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 <https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <unigbrk.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user