diff options
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/patches/fix-tests2.patch | 183 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 2 | ||||
-rw-r--r-- | fuzzylite/CMakeLists.txt | 2 | ||||
-rw-r--r-- | fuzzylite/test/BenchmarkTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/MainTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/QuickTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/activation/ThresholdTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/hedge/HedgeFunctionTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/imex/FldExporterTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/imex/FllImporterTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/imex/RScriptExporterTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/norm/NormFunctionTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/term/AggregatedTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/term/DiscreteTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/term/FunctionTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/term/TrapezoidTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/term/TriangleTest.cpp | 2 | ||||
-rw-r--r-- | fuzzylite/test/variable/VariableTest.cpp | 2 |
21 files changed, 211 insertions, 17 deletions
diff --git a/debian/changelog b/debian/changelog index 331380c..bad7431 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +fuzzylite (6.0+dfsg-5) unstable; urgency=medium + + * debian/rules: set -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON to make the build + reproducible + * add patch to replace Catch with Catch2 (Closes: #1017155) + + -- Johannes Schauer Marin Rodrigues <josch@debian.org> Mon, 12 Sep 2022 10:23:13 +0200 + fuzzylite (6.0+dfsg-4) unstable; urgency=medium * add patch from https://github.com/fuzzylite/fuzzylite/pull/108 to support diff --git a/debian/control b/debian/control index 9cab77f..c15f78a 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Johannes Schauer Marin Rodrigues <josch@debian.org> Standards-Version: 4.5.0 Homepage: http://www.fuzzylite.com/cpp/ -Build-Depends: debhelper-compat (= 13), cmake +Build-Depends: debhelper-compat (= 13), cmake, catch2 Vcs-Browser: https://salsa.debian.org/debian/fuzzylite Vcs-Git: https://salsa.debian.org/debian/fuzzylite.git Rules-Requires-Root: no diff --git a/debian/patches/fix-tests2.patch b/debian/patches/fix-tests2.patch new file mode 100644 index 0000000..f359090 --- /dev/null +++ b/debian/patches/fix-tests2.patch @@ -0,0 +1,183 @@ +From: Ferdinand Thiessen <f.thiessen@gmx.de> +Date: Mon, 31 Jan 2022 16:06:19 GMT +Subject: Replace Catch with Catch2 and require C++11 for tests +Origin: vendor, https://github.com/fuzzylite/fuzzylite/issues/94 +Bug-Debian: http://bugs.debian.org/1017155 + +--- a/fuzzylite/CMakeLists.txt ++++ b/fuzzylite/CMakeLists.txt +@@ -194,7 +194,9 @@ if(FL_BUILD_BINARY) + endif(FL_BUILD_BINARY) + + if(FL_BUILD_TESTS) ++ find_package(Catch2) + add_executable(fl-test ${fl-headers} ${fl-tests}) ++ target_link_libraries(fl-test Catch2::Catch2) + set_target_properties(fl-test PROPERTIES OUTPUT_NAME fuzzylite-tests) + set_target_properties(fl-test PROPERTIES OUTPUT_NAME fuzzylite-tests IMPORT_PREFIX tmp-) #To prevent LNK1149 in Windows + set_target_properties(fl-test PROPERTIES DEBUG_POSTFIX -debug) +--- a/fuzzylite/test/activation/ThresholdTest.cpp ++++ b/fuzzylite/test/activation/ThresholdTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/BenchmarkTest.cpp ++++ b/fuzzylite/test/BenchmarkTest.cpp +@@ -16,7 +16,7 @@ + + #include "fl/Benchmark.h" + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + #include <vector> +--- a/fuzzylite/test/hedge/HedgeFunctionTest.cpp ++++ b/fuzzylite/test/hedge/HedgeFunctionTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/imex/FldExporterTest.cpp ++++ b/fuzzylite/test/imex/FldExporterTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/imex/FllImporterTest.cpp ++++ b/fuzzylite/test/imex/FllImporterTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/imex/RScriptExporterTest.cpp ++++ b/fuzzylite/test/imex/RScriptExporterTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + #include <fstream> + +--- a/fuzzylite/test/MainTest.cpp ++++ b/fuzzylite/test/MainTest.cpp +@@ -16,7 +16,7 @@ + + #define CATCH_CONFIG_RUNNER + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + + #include "fl/Headers.h" + +--- a/fuzzylite/test/norm/NormFunctionTest.cpp ++++ b/fuzzylite/test/norm/NormFunctionTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/QuickTest.cpp ++++ b/fuzzylite/test/QuickTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/term/AggregatedTest.cpp ++++ b/fuzzylite/test/term/AggregatedTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/term/DiscreteTest.cpp ++++ b/fuzzylite/test/term/DiscreteTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/term/FunctionTest.cpp ++++ b/fuzzylite/test/term/FunctionTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/term/TrapezoidTest.cpp ++++ b/fuzzylite/test/term/TrapezoidTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/term/TriangleTest.cpp ++++ b/fuzzylite/test/term/TriangleTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + namespace fl { +--- a/fuzzylite/test/variable/VariableTest.cpp ++++ b/fuzzylite/test/variable/VariableTest.cpp +@@ -14,7 +14,7 @@ + fuzzylite is a registered trademark of FuzzyLite Limited. + */ + +-#include "test/catch.hpp" ++#include "catch2/catch.hpp" + #include "fl/Headers.h" + + #include <algorithm> // std::random_shuffle diff --git a/debian/patches/series b/debian/patches/series index d8925b1..7a28790 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,5 @@ reproducible.patch fix-tests.patch +fix-tests2.patch when-testing-large-float-numbers-for-equ.patch 0001-fuzzylite-src-main.cpp-support-building-with-gcc-12.patch diff --git a/debian/rules b/debian/rules index 9e54fdc..e6ef67a 100755 --- a/debian/rules +++ b/debian/rules @@ -14,7 +14,7 @@ include /usr/share/dpkg/architecture.mk dh $@ --sourcedirectory=fuzzylite --builddirectory=fuzzylite/obj-$(DEB_HOST_GNU_TYPE) override_dh_auto_configure: - dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) -DCMAKE_VERBOSE_MAKEFILE=true -DFL_CPP11=ON + dh_auto_configure -- -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) -DCMAKE_VERBOSE_MAKEFILE=true -DFL_CPP11=ON -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON override_dh_auto_test: dh_auto_test diff --git a/fuzzylite/CMakeLists.txt b/fuzzylite/CMakeLists.txt index 28435e2..b6ca540 100644 --- a/fuzzylite/CMakeLists.txt +++ b/fuzzylite/CMakeLists.txt @@ -194,7 +194,9 @@ if(FL_BUILD_BINARY) endif(FL_BUILD_BINARY) if(FL_BUILD_TESTS) + find_package(Catch2) add_executable(fl-test ${fl-headers} ${fl-tests}) + target_link_libraries(fl-test Catch2::Catch2) set_target_properties(fl-test PROPERTIES OUTPUT_NAME fuzzylite-tests) set_target_properties(fl-test PROPERTIES OUTPUT_NAME fuzzylite-tests IMPORT_PREFIX tmp-) #To prevent LNK1149 in Windows set_target_properties(fl-test PROPERTIES DEBUG_POSTFIX -debug) diff --git a/fuzzylite/test/BenchmarkTest.cpp b/fuzzylite/test/BenchmarkTest.cpp index 2b97663..2652ecf 100644 --- a/fuzzylite/test/BenchmarkTest.cpp +++ b/fuzzylite/test/BenchmarkTest.cpp @@ -16,7 +16,7 @@ #include "fl/Benchmark.h" -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" #include <vector> diff --git a/fuzzylite/test/MainTest.cpp b/fuzzylite/test/MainTest.cpp index c18740a..18d29e9 100644 --- a/fuzzylite/test/MainTest.cpp +++ b/fuzzylite/test/MainTest.cpp @@ -16,7 +16,7 @@ #define CATCH_CONFIG_RUNNER -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" diff --git a/fuzzylite/test/QuickTest.cpp b/fuzzylite/test/QuickTest.cpp index 9108fde..902d074 100644 --- a/fuzzylite/test/QuickTest.cpp +++ b/fuzzylite/test/QuickTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/activation/ThresholdTest.cpp b/fuzzylite/test/activation/ThresholdTest.cpp index 9f6a9e6..c2163c8 100644 --- a/fuzzylite/test/activation/ThresholdTest.cpp +++ b/fuzzylite/test/activation/ThresholdTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/hedge/HedgeFunctionTest.cpp b/fuzzylite/test/hedge/HedgeFunctionTest.cpp index dab70f5..606792d 100644 --- a/fuzzylite/test/hedge/HedgeFunctionTest.cpp +++ b/fuzzylite/test/hedge/HedgeFunctionTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/imex/FldExporterTest.cpp b/fuzzylite/test/imex/FldExporterTest.cpp index e312f1d..8cf99a4 100644 --- a/fuzzylite/test/imex/FldExporterTest.cpp +++ b/fuzzylite/test/imex/FldExporterTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/imex/FllImporterTest.cpp b/fuzzylite/test/imex/FllImporterTest.cpp index d31701a..f133d4b 100644 --- a/fuzzylite/test/imex/FllImporterTest.cpp +++ b/fuzzylite/test/imex/FllImporterTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/imex/RScriptExporterTest.cpp b/fuzzylite/test/imex/RScriptExporterTest.cpp index b6d87d8..d1f409d 100644 --- a/fuzzylite/test/imex/RScriptExporterTest.cpp +++ b/fuzzylite/test/imex/RScriptExporterTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" #include <fstream> diff --git a/fuzzylite/test/norm/NormFunctionTest.cpp b/fuzzylite/test/norm/NormFunctionTest.cpp index afce4c8..496d080 100644 --- a/fuzzylite/test/norm/NormFunctionTest.cpp +++ b/fuzzylite/test/norm/NormFunctionTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/term/AggregatedTest.cpp b/fuzzylite/test/term/AggregatedTest.cpp index bb3f0e4..88978d3 100644 --- a/fuzzylite/test/term/AggregatedTest.cpp +++ b/fuzzylite/test/term/AggregatedTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/term/DiscreteTest.cpp b/fuzzylite/test/term/DiscreteTest.cpp index 2fb32aa..f4856b6 100644 --- a/fuzzylite/test/term/DiscreteTest.cpp +++ b/fuzzylite/test/term/DiscreteTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/term/FunctionTest.cpp b/fuzzylite/test/term/FunctionTest.cpp index a42e37b..c8425dd 100644 --- a/fuzzylite/test/term/FunctionTest.cpp +++ b/fuzzylite/test/term/FunctionTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/term/TrapezoidTest.cpp b/fuzzylite/test/term/TrapezoidTest.cpp index 8581ac1..94ebadc 100644 --- a/fuzzylite/test/term/TrapezoidTest.cpp +++ b/fuzzylite/test/term/TrapezoidTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/term/TriangleTest.cpp b/fuzzylite/test/term/TriangleTest.cpp index bd1459d..865c06f 100644 --- a/fuzzylite/test/term/TriangleTest.cpp +++ b/fuzzylite/test/term/TriangleTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" namespace fl { diff --git a/fuzzylite/test/variable/VariableTest.cpp b/fuzzylite/test/variable/VariableTest.cpp index 6f77e94..11f3794 100644 --- a/fuzzylite/test/variable/VariableTest.cpp +++ b/fuzzylite/test/variable/VariableTest.cpp @@ -14,7 +14,7 @@ fuzzylite is a registered trademark of FuzzyLite Limited. */ -#include "test/catch.hpp" +#include "catch2/catch.hpp" #include "fl/Headers.h" #include <algorithm> // std::random_shuffle |