EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
VersionTests.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file VersionTests.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
// the purpose of these tests is to ensure that the version header is valid and
10
// the exported parameters are accessible. otherwise, there would is no code
11
// that actually includes the version header.
12
13
#include <boost/test/unit_test.hpp>
14
15
#include "Acts/ActsVersion.hpp"
16
17
#include <string_view>
18
19
BOOST_AUTO_TEST_CASE
(Version) {
20
// the only way to get a zero version would be zero for all components
21
BOOST_CHECK_LT(0
u
, Acts::Version);
22
// these tests are not really useful as the version components can be any
23
// value. they are there so we touch all variables and ensure that they are
24
// accessible.
25
BOOST_CHECK_LE(0
u
, Acts::VersionMajor);
26
BOOST_CHECK_LE(0
u
, Acts::VersionMinor);
27
BOOST_CHECK_LE(0
u
, Acts::VersionPatch);
28
}
29
30
BOOST_AUTO_TEST_CASE
(CommitHash) {
31
BOOST_CHECK(not std::string_view(Acts::CommitHash).empty());
32
BOOST_CHECK(not std::string_view(Acts::CommitHashShort).empty());
33
}
acts
blob
sPHENIX
Tests
UnitTests
Core
VersionTests.cpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:27
using
1.8.2 with
EIC GitHub integration