From aacc14f4b4d3948544b79dd21ddbcf8479786fb8 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 19 Sep 2023 18:53:00 +0200 Subject: [PATCH] tests: Restore that all of runtestspp is run through a C++ compiler .. as originally intended before the big split-up refactoring. --- expat/CMakeLists.txt | 55 ++++++++++++++++++++----------- expat/tests/Makefile.am | 27 ++++++++++----- expat/tests/acc_tests_cxx.cpp | 32 ++++++++++++++++++ expat/tests/alloc_tests_cxx.cpp | 32 ++++++++++++++++++ expat/tests/basic_tests_cxx.cpp | 32 ++++++++++++++++++ expat/tests/chardata_cxx.cpp | 32 ++++++++++++++++++ expat/tests/common_cxx.cpp | 32 ++++++++++++++++++ expat/tests/dummy_cxx.cpp | 32 ++++++++++++++++++ expat/tests/handlers_cxx.cpp | 32 ++++++++++++++++++ expat/tests/memcheck_cxx.cpp | 32 ++++++++++++++++++ expat/tests/minicheck_cxx.cpp | 32 ++++++++++++++++++ expat/tests/misc_tests_cxx.cpp | 32 ++++++++++++++++++ expat/tests/ns_tests_cxx.cpp | 32 ++++++++++++++++++ expat/tests/nsalloc_tests_cxx.cpp | 32 ++++++++++++++++++ expat/tests/structdata_cxx.cpp | 32 ++++++++++++++++++ 15 files changed, 470 insertions(+), 28 deletions(-) create mode 100644 expat/tests/acc_tests_cxx.cpp create mode 100644 expat/tests/alloc_tests_cxx.cpp create mode 100644 expat/tests/basic_tests_cxx.cpp create mode 100644 expat/tests/chardata_cxx.cpp create mode 100644 expat/tests/common_cxx.cpp create mode 100644 expat/tests/dummy_cxx.cpp create mode 100644 expat/tests/handlers_cxx.cpp create mode 100644 expat/tests/memcheck_cxx.cpp create mode 100644 expat/tests/minicheck_cxx.cpp create mode 100644 expat/tests/misc_tests_cxx.cpp create mode 100644 expat/tests/ns_tests_cxx.cpp create mode 100644 expat/tests/nsalloc_tests_cxx.cpp create mode 100644 expat/tests/structdata_cxx.cpp diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index d82d06d0..71dddacc 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -593,23 +593,6 @@ if(EXPAT_BUILD_TESTS) ## these are unittests that can be run on any platform enable_testing() - set(test_SRCS - tests/acc_tests.c - tests/alloc_tests.c - tests/basic_tests.c - tests/chardata.c - tests/common.c - tests/dummy.c - tests/handlers.c - tests/memcheck.c - tests/minicheck.c - tests/misc_tests.c - tests/ns_tests.c - tests/nsalloc_tests.c - tests/structdata.c - ${_EXPAT_C_SOURCES} - ) - if(NOT MSVC) if(MINGW) set(host whatever-mingw32) # for nothing but run.sh @@ -626,8 +609,42 @@ if(EXPAT_BUILD_TESTS) endfunction() set(_EXPAT_TEST_TARGETS runtests runtestspp) - add_executable(runtests tests/runtests.c ${test_SRCS}) - add_executable(runtestspp tests/runtestspp.cpp ${test_SRCS}) + + add_executable(runtests + tests/acc_tests.c + tests/alloc_tests.c + tests/basic_tests.c + tests/chardata.c + tests/common.c + tests/dummy.c + tests/handlers.c + tests/memcheck.c + tests/minicheck.c + tests/misc_tests.c + tests/ns_tests.c + tests/nsalloc_tests.c + tests/runtests.c + tests/structdata.c + ${_EXPAT_C_SOURCES} + ) + + add_executable(runtestspp + tests/acc_tests_cxx.cpp + tests/alloc_tests_cxx.cpp + tests/basic_tests_cxx.cpp + tests/chardata_cxx.cpp + tests/common_cxx.cpp + tests/dummy_cxx.cpp + tests/handlers_cxx.cpp + tests/memcheck_cxx.cpp + tests/minicheck_cxx.cpp + tests/misc_tests_cxx.cpp + tests/ns_tests_cxx.cpp + tests/nsalloc_tests_cxx.cpp + tests/runtestspp.cpp + tests/structdata_cxx.cpp + ${_EXPAT_C_SOURCES} + ) foreach(_target ${_EXPAT_TEST_TARGETS}) set_property(TARGET ${_target} PROPERTY RUNTIME_OUTPUT_DIRECTORY tests) diff --git a/expat/tests/Makefile.am b/expat/tests/Makefile.am index 592569bb..d6d7589a 100644 --- a/expat/tests/Makefile.am +++ b/expat/tests/Makefile.am @@ -34,15 +34,13 @@ SUBDIRS = . benchmark AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(srcdir)/../lib -noinst_LIBRARIES = libruntests.a - check_PROGRAMS = runtests runtestspp TESTS = runtests runtestspp # To support MinGW and Non-MinGW at the same time: LOG_DRIVER = $(srcdir)/../test-driver-wrapper.sh -libruntests_a_SOURCES = \ +runtests_SOURCES = \ acc_tests.c \ alloc_tests.c \ basic_tests.c \ @@ -55,16 +53,27 @@ libruntests_a_SOURCES = \ misc_tests.c \ ns_tests.c \ nsalloc_tests.c \ + runtests.c \ structdata.c -runtests_SOURCES = \ - runtests.c - runtestspp_SOURCES = \ - runtestspp.cpp + acc_tests_cxx.cpp \ + alloc_tests_cxx.cpp \ + basic_tests_cxx.cpp \ + chardata_cxx.cpp \ + common_cxx.cpp \ + dummy_cxx.cpp \ + handlers_cxx.cpp \ + memcheck_cxx.cpp \ + minicheck_cxx.cpp \ + misc_tests_cxx.cpp \ + nsalloc_tests_cxx.cpp \ + ns_tests_cxx.cpp \ + runtestspp.cpp \ + structdata_cxx.cpp -runtests_LDADD = libruntests.a ../lib/libexpatinternal.la -runtestspp_LDADD = libruntests.a ../lib/libexpatinternal.la +runtests_LDADD = ../lib/libexpatinternal.la +runtestspp_LDADD = ../lib/libexpatinternal.la runtests_LDFLAGS = @AM_LDFLAGS@ @LIBM@ runtestspp_LDFLAGS = @AM_LDFLAGS@ @LIBM@ diff --git a/expat/tests/acc_tests_cxx.cpp b/expat/tests/acc_tests_cxx.cpp new file mode 100644 index 00000000..8e1b5661 --- /dev/null +++ b/expat/tests/acc_tests_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "acc_tests.c" diff --git a/expat/tests/alloc_tests_cxx.cpp b/expat/tests/alloc_tests_cxx.cpp new file mode 100644 index 00000000..ba6fdf41 --- /dev/null +++ b/expat/tests/alloc_tests_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "alloc_tests.c" diff --git a/expat/tests/basic_tests_cxx.cpp b/expat/tests/basic_tests_cxx.cpp new file mode 100644 index 00000000..7b57e96a --- /dev/null +++ b/expat/tests/basic_tests_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "basic_tests.c" diff --git a/expat/tests/chardata_cxx.cpp b/expat/tests/chardata_cxx.cpp new file mode 100644 index 00000000..907065cd --- /dev/null +++ b/expat/tests/chardata_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "chardata.c" diff --git a/expat/tests/common_cxx.cpp b/expat/tests/common_cxx.cpp new file mode 100644 index 00000000..761bce34 --- /dev/null +++ b/expat/tests/common_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "common.c" diff --git a/expat/tests/dummy_cxx.cpp b/expat/tests/dummy_cxx.cpp new file mode 100644 index 00000000..f176eeba --- /dev/null +++ b/expat/tests/dummy_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "dummy.c" diff --git a/expat/tests/handlers_cxx.cpp b/expat/tests/handlers_cxx.cpp new file mode 100644 index 00000000..190e310e --- /dev/null +++ b/expat/tests/handlers_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "handlers.c" diff --git a/expat/tests/memcheck_cxx.cpp b/expat/tests/memcheck_cxx.cpp new file mode 100644 index 00000000..6d65075e --- /dev/null +++ b/expat/tests/memcheck_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "memcheck.c" diff --git a/expat/tests/minicheck_cxx.cpp b/expat/tests/minicheck_cxx.cpp new file mode 100644 index 00000000..d96b6c63 --- /dev/null +++ b/expat/tests/minicheck_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "minicheck.c" diff --git a/expat/tests/misc_tests_cxx.cpp b/expat/tests/misc_tests_cxx.cpp new file mode 100644 index 00000000..77d76e4a --- /dev/null +++ b/expat/tests/misc_tests_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "misc_tests.c" diff --git a/expat/tests/ns_tests_cxx.cpp b/expat/tests/ns_tests_cxx.cpp new file mode 100644 index 00000000..24b7c309 --- /dev/null +++ b/expat/tests/ns_tests_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "ns_tests.c" diff --git a/expat/tests/nsalloc_tests_cxx.cpp b/expat/tests/nsalloc_tests_cxx.cpp new file mode 100644 index 00000000..871bc36e --- /dev/null +++ b/expat/tests/nsalloc_tests_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "nsalloc_tests.c" diff --git a/expat/tests/structdata_cxx.cpp b/expat/tests/structdata_cxx.cpp new file mode 100644 index 00000000..03ec271a --- /dev/null +++ b/expat/tests/structdata_cxx.cpp @@ -0,0 +1,32 @@ +/* C++ compilation harness for the test suite. + __ __ _ + ___\ \/ /_ __ __ _| |_ + / _ \\ /| '_ \ / _` | __| + | __// \| |_) | (_| | |_ + \___/_/\_\ .__/ \__,_|\__| + |_| XML parser + + Copyright (c) 2023 Sebastian Pipping + Licensed under the MIT license: + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to permit + persons to whom the Software is furnished to do so, subject to the + following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN + NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +#include "structdata.c"