ROOT now uses llvm/clang version 9 (updated from version 5)
No longer exclude arch s390x (better supported in llvm/clang 9)
Drop patches accepted upstream or previously backported
Backport some fixes that make more tests work
New subpackages: python{2,3}-distrdf, root-roofit-batchcompute
Require js-jsroot >= 6
215 lines
8.4 KiB
Diff
215 lines
8.4 KiB
Diff
diff -ur root-6.24.02.orig/hist/hist/test/test_THBinIterator.cxx root-6.24.02/hist/hist/test/test_THBinIterator.cxx
|
|
--- root-6.24.02.orig/hist/hist/test/test_THBinIterator.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/hist/hist/test/test_THBinIterator.cxx 2021-08-06 22:59:45.039518775 +0200
|
|
@@ -1,5 +1,10 @@
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef INSTANTIATE_TEST_SUITE_P
|
|
+#define SetUpTestSuite SetUpTestCase
|
|
+#define TearDownTestSuite TearDownTestCase
|
|
+#endif
|
|
+
|
|
// test iterating histogram bins and using the new THistRange and
|
|
// THBinIterator classes
|
|
|
|
diff -ur root-6.24.02.orig/math/mathcore/test/stress/testGenVector.cxx root-6.24.02/math/mathcore/test/stress/testGenVector.cxx
|
|
--- root-6.24.02.orig/math/mathcore/test/stress/testGenVector.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathcore/test/stress/testGenVector.cxx 2021-08-06 09:31:38.795835283 +0200
|
|
@@ -4,6 +4,16 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE_P
|
|
+#define TYPED_TEST_SUITE_P TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef REGISTER_TYPED_TEST_SUITE_P
|
|
+#define REGISTER_TYPED_TEST_SUITE_P REGISTER_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef INSTANTIATE_TYPED_TEST_SUITE_P
|
|
+#define INSTANTIATE_TYPED_TEST_SUITE_P INSTANTIATE_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include "StatFunction.h"
|
|
#include "TestHelper.h"
|
|
#include "VectorTest.h"
|
|
diff -ur root-6.24.02.orig/math/mathcore/test/stress/testSMatrix.cxx root-6.24.02/math/mathcore/test/stress/testSMatrix.cxx
|
|
--- root-6.24.02.orig/math/mathcore/test/stress/testSMatrix.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathcore/test/stress/testSMatrix.cxx 2021-08-06 09:31:38.796835286 +0200
|
|
@@ -7,6 +7,16 @@
|
|
#include "TestHelper.h"
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE_P
|
|
+#define TYPED_TEST_SUITE_P TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef REGISTER_TYPED_TEST_SUITE_P
|
|
+#define REGISTER_TYPED_TEST_SUITE_P REGISTER_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef INSTANTIATE_TYPED_TEST_SUITE_P
|
|
+#define INSTANTIATE_TYPED_TEST_SUITE_P INSTANTIATE_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include "VectorTest.h"
|
|
#include "TROOT.h"
|
|
#include "TSystem.h"
|
|
diff -ur root-6.24.02.orig/math/mathcore/test/stress/testVector34.cxx root-6.24.02/math/mathcore/test/stress/testVector34.cxx
|
|
--- root-6.24.02.orig/math/mathcore/test/stress/testVector34.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathcore/test/stress/testVector34.cxx 2021-08-06 09:31:38.796835286 +0200
|
|
@@ -4,6 +4,16 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE_P
|
|
+#define TYPED_TEST_SUITE_P TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef REGISTER_TYPED_TEST_SUITE_P
|
|
+#define REGISTER_TYPED_TEST_SUITE_P REGISTER_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef INSTANTIATE_TYPED_TEST_SUITE_P
|
|
+#define INSTANTIATE_TYPED_TEST_SUITE_P INSTANTIATE_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include "StatFunction.h"
|
|
#include "VectorTest.h"
|
|
|
|
diff -ur root-6.24.02.orig/math/mathcore/test/stress/testVector.cxx root-6.24.02/math/mathcore/test/stress/testVector.cxx
|
|
--- root-6.24.02.orig/math/mathcore/test/stress/testVector.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathcore/test/stress/testVector.cxx 2021-08-06 09:31:38.796835286 +0200
|
|
@@ -4,6 +4,16 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE_P
|
|
+#define TYPED_TEST_SUITE_P TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef REGISTER_TYPED_TEST_SUITE_P
|
|
+#define REGISTER_TYPED_TEST_SUITE_P REGISTER_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef INSTANTIATE_TYPED_TEST_SUITE_P
|
|
+#define INSTANTIATE_TYPED_TEST_SUITE_P INSTANTIATE_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include "StatFunction.h"
|
|
#include "TestHelper.h"
|
|
#include "VectorTest.h"
|
|
diff -ur root-6.24.02.orig/math/mathcore/test/testGradient.cxx root-6.24.02/math/mathcore/test/testGradient.cxx
|
|
--- root-6.24.02.orig/math/mathcore/test/testGradient.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathcore/test/testGradient.cxx 2021-08-06 09:31:38.796835286 +0200
|
|
@@ -22,6 +22,10 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE
|
|
+#define TYPED_TEST_SUITE TYPED_TEST_CASE
|
|
+#endif
|
|
+
|
|
#include <chrono>
|
|
#include <iostream>
|
|
#include <string>
|
|
diff -ur root-6.24.02.orig/math/mathcore/test/testGradientFitting.cxx root-6.24.02/math/mathcore/test/testGradientFitting.cxx
|
|
--- root-6.24.02.orig/math/mathcore/test/testGradientFitting.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathcore/test/testGradientFitting.cxx 2021-08-06 09:31:38.797835288 +0200
|
|
@@ -12,6 +12,16 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE_P
|
|
+#define TYPED_TEST_SUITE_P TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef REGISTER_TYPED_TEST_SUITE_P
|
|
+#define REGISTER_TYPED_TEST_SUITE_P REGISTER_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef INSTANTIATE_TYPED_TEST_SUITE_P
|
|
+#define INSTANTIATE_TYPED_TEST_SUITE_P INSTANTIATE_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
diff -ur root-6.24.02.orig/math/mathmore/test/testStress.cxx root-6.24.02/math/mathmore/test/testStress.cxx
|
|
--- root-6.24.02.orig/math/mathmore/test/testStress.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/math/mathmore/test/testStress.cxx 2021-08-06 09:31:38.797835288 +0200
|
|
@@ -26,6 +26,16 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef TYPED_TEST_SUITE_P
|
|
+#define TYPED_TEST_SUITE_P TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef REGISTER_TYPED_TEST_SUITE_P
|
|
+#define REGISTER_TYPED_TEST_SUITE_P REGISTER_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+#ifndef INSTANTIATE_TYPED_TEST_SUITE_P
|
|
+#define INSTANTIATE_TYPED_TEST_SUITE_P INSTANTIATE_TYPED_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
using ::testing::TestWithParam;
|
|
using ::testing::Values;
|
|
|
|
diff -ur root-6.24.02.orig/roofit/roofitcore/test/testProxiesAndCategories.cxx root-6.24.02/roofit/roofitcore/test/testProxiesAndCategories.cxx
|
|
--- root-6.24.02.orig/roofit/roofitcore/test/testProxiesAndCategories.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/roofit/roofitcore/test/testProxiesAndCategories.cxx 2021-08-06 09:31:38.798835290 +0200
|
|
@@ -16,6 +16,9 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef INSTANTIATE_TEST_SUITE_P
|
|
+#define INSTANTIATE_TEST_SUITE_P INSTANTIATE_TEST_CASE_P
|
|
+#endif
|
|
|
|
TEST(RooCategory, CategoryDefineMultiState) {
|
|
RooCategory myCat("myCat", "A category", { {"0Lep", 0}, {"1Lep", 1}, {"2Lep", 2}, {"3Lep", 3} });
|
|
diff -ur root-6.24.02.orig/tree/dataframe/test/dataframe_datablockcallback.cxx root-6.24.02/tree/dataframe/test/dataframe_datablockcallback.cxx
|
|
--- root-6.24.02.orig/tree/dataframe/test/dataframe_datablockcallback.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/tree/dataframe/test/dataframe_datablockcallback.cxx 2021-08-06 09:31:38.801835298 +0200
|
|
@@ -11,6 +11,10 @@
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
+#ifndef INSTANTIATE_TEST_SUITE_P
|
|
+#define INSTANTIATE_TEST_SUITE_P INSTANTIATE_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include <algorithm> // std::min
|
|
#include <thread> // std::hardware_concurrency
|
|
|
|
diff -ur root-6.24.02.orig/tree/dataframe/test/dataframe_merge_results.cxx root-6.24.02/tree/dataframe/test/dataframe_merge_results.cxx
|
|
--- root-6.24.02.orig/tree/dataframe/test/dataframe_merge_results.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/tree/dataframe/test/dataframe_merge_results.cxx 2021-08-06 09:31:38.802835300 +0200
|
|
@@ -308,7 +308,7 @@
|
|
EXPECT_FALSE(mh3);
|
|
EXPECT_FALSE(mh4);
|
|
EXPECT_FALSE(mh5);
|
|
- EXPECT_TRUE(mergedptr);
|
|
+ EXPECT_TRUE(!!mergedptr);
|
|
|
|
const auto &mh = mergedptr->GetValue();
|
|
|
|
diff -ur root-6.24.02.orig/tree/dataframe/test/dataframe_regression.cxx root-6.24.02/tree/dataframe/test/dataframe_regression.cxx
|
|
--- root-6.24.02.orig/tree/dataframe/test/dataframe_regression.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/tree/dataframe/test/dataframe_regression.cxx 2021-08-06 09:31:38.802835300 +0200
|
|
@@ -9,6 +9,10 @@
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
+#ifndef INSTANTIATE_TEST_SUITE_P
|
|
+#define INSTANTIATE_TEST_SUITE_P INSTANTIATE_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
// Fixture for all tests in this file. If parameter is true, run with implicit MT, else run sequentially
|
|
class RDFRegressionTests : public ::testing::TestWithParam<bool> {
|
|
protected:
|
|
diff -ur root-6.24.02.orig/tree/dataframe/test/dataframe_simple.cxx root-6.24.02/tree/dataframe/test/dataframe_simple.cxx
|
|
--- root-6.24.02.orig/tree/dataframe/test/dataframe_simple.cxx 2021-06-28 11:17:14.000000000 +0200
|
|
+++ root-6.24.02/tree/dataframe/test/dataframe_simple.cxx 2021-08-06 09:31:38.803835303 +0200
|
|
@@ -1,5 +1,10 @@
|
|
/****** Run RDataFrame tests both with and without IMT enabled *******/
|
|
#include <gtest/gtest.h>
|
|
+
|
|
+#ifndef INSTANTIATE_TEST_SUITE_P
|
|
+#define INSTANTIATE_TEST_SUITE_P INSTANTIATE_TEST_CASE_P
|
|
+#endif
|
|
+
|
|
#include <ROOTUnitTestSupport.h>
|
|
#include <ROOT/RDataFrame.hxx>
|
|
#include <ROOT/TSeq.hxx>
|