diff --git a/Framework/ArrowTests/CMakeLists.txt b/Framework/ArrowTests/CMakeLists.txt deleted file mode 100644 index d813543bafd69..0000000000000 --- a/Framework/ArrowTests/CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright CERN and copyright holders of ALICE O2. This software is distributed -# under the terms of the GNU General Public License v3 (GPL Version 3), copied -# verbatim in the file "COPYING". -# -# See http://alice-o2.web.cern.ch/license for full licensing information. -# -# In applying this license CERN does not waive the privileges and immunities -# granted to it by virtue of its status as an Intergovernmental Organization or -# submit itself to any jurisdiction. - -o2_add_test(01 - SOURCES test/test_Arrow01.cxx - COMPONENT_NAME arrow - PUBLIC_LINK_LIBRARIES arrow::arrow_shared - LABELS arrow) diff --git a/Framework/ArrowTests/src/dummy.cxx b/Framework/ArrowTests/src/dummy.cxx deleted file mode 100644 index ab2179b8eb11c..0000000000000 --- a/Framework/ArrowTests/src/dummy.cxx +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright CERN and copyright holders of ALICE O2. This software is -// distributed under the terms of the GNU General Public License v3 (GPL -// Version 3), copied verbatim in the file "COPYING". -// -// See http://alice-o2.web.cern.ch/license for full licensing information. -// -// In applying this license CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. diff --git a/Framework/ArrowTests/test/test_Arrow01.cxx b/Framework/ArrowTests/test/test_Arrow01.cxx deleted file mode 100644 index 24e59e5a4c451..0000000000000 --- a/Framework/ArrowTests/test/test_Arrow01.cxx +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright CERN and copyright holders of ALICE O2. This software is -// distributed under the terms of the GNU General Public License v3 (GPL -// Version 3), copied verbatim in the file "COPYING". -// -// See http://alice-o2.web.cern.ch/license for full licensing information. -// -// In applying this license CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. -#define BOOST_TEST_MODULE Test Framework WorkflowHelpers -#define BOOST_TEST_MAIN -#define BOOST_TEST_DYN_LINK - -#include - -#include -#include -#include -#include -#include -#include - -class ARROW_EXPORT PrintingKernel : public arrow::compute::UnaryKernel -{ - public: - arrow::Status Call(arrow::compute::FunctionContext* ctx, const arrow::compute::Datum& input, - arrow::compute::Datum* output) override - { - return arrow::Status::OK(); - } - -#pragma GCC diagnostic push -#ifdef __clang__ -#pragma GCC diagnostic ignored "-Winconsistent-missing-override" -#endif // __clang__ - std::shared_ptr out_type() const override - { - return mType; - } -#pragma GCC diagnostic pop - - std::shared_ptr mType; -}; - -BOOST_AUTO_TEST_CASE(TestArrow01) -{ - arrow::Int64Builder builder; - BOOST_REQUIRE(builder.Append(1).ok()); - BOOST_REQUIRE(builder.Append(2).ok()); - BOOST_REQUIRE(builder.Append(3).ok()); - BOOST_REQUIRE(builder.AppendNull().ok()); - BOOST_REQUIRE(builder.Append(5).ok()); - BOOST_REQUIRE(builder.Append(6).ok()); - BOOST_REQUIRE(builder.Append(7).ok()); - BOOST_REQUIRE(builder.Append(8).ok()); - - std::shared_ptr input; - BOOST_REQUIRE(builder.Finish(&input).ok()); - - std::shared_ptr output; - PrintingKernel kernel; - arrow::compute::FunctionContext ctx(arrow::default_memory_pool()); - auto status = kernel.Call(&ctx, arrow::compute::Datum(input), nullptr); - assert(status.ok() == true); -} diff --git a/Framework/CMakeLists.txt b/Framework/CMakeLists.txt index e4b604b4ab440..909110b1d8a6c 100644 --- a/Framework/CMakeLists.txt +++ b/Framework/CMakeLists.txt @@ -19,7 +19,3 @@ add_subdirectory(Utils) add_subdirectory(TestWorkflows) add_subdirectory(AnalysisTutorial) - -if(arrow_FOUND) - add_subdirectory(ArrowTests) -endif()