Project
Loading...
Searching...
No Matches
testCATrackerPublicationDecision.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12// The MFT workflow exposes the shared publication policy. The session suite
13// exercises loading, recovery, completion and cleanup for both detector layouts;
14// these checks retain the public MFT publish/skip decision contract.
15
16#define BOOST_TEST_MODULE MFT CA tracker publication decision
17#define BOOST_TEST_MAIN
18#define BOOST_TEST_DYN_LINK
19#include <boost/test/unit_test.hpp>
20
23
24using namespace o2::mft;
25
26BOOST_AUTO_TEST_CASE(InactiveTrackerAlwaysPublishesEmptyRegardlessOfResultValue)
27{
28 BOOST_CHECK(decideCATrackerPublicationAction(false, true) == CATrackerPublicationAction::PublishInactiveEmpty);
29 BOOST_CHECK(decideCATrackerPublicationAction(false, false) == CATrackerPublicationAction::PublishInactiveEmpty);
30}
31
32BOOST_AUTO_TEST_CASE(ActiveTrackerWithRecoverableDropSkipsPublication)
33{
34 BOOST_CHECK(decideCATrackerPublicationAction(true, false) == CATrackerPublicationAction::SkipDroppedTimeFrame);
35}
36
37BOOST_AUTO_TEST_CASE(ActiveTrackerWithNonDroppedResultPublishes)
38{
39 BOOST_CHECK(decideCATrackerPublicationAction(true, true) == CATrackerPublicationAction::PublishActiveResult);
40}
Tracker orchestrator.
BOOST_AUTO_TEST_CASE(asynch_schedule_test)
CATrackerPublicationAction decideCATrackerPublicationAction(bool active, bool success) noexcept
BOOST_CHECK(tree)