|
||||
File indexing completed on 2025-01-18 09:13:04
0001 // This file is part of the ACTS project. 0002 // 0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project 0004 // 0005 // This Source Code Form is subject to the terms of the Mozilla Public 0006 // License, v. 2.0. If a copy of the MPL was not distributed with this 0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/. 0008 0009 // the purpose of these tests is to ensure that the version header is valid and 0010 // the exported parameters are accessible. otherwise, there would is no code 0011 // that actually includes the version header. 0012 0013 #include <boost/test/unit_test.hpp> 0014 0015 #include "Acts/ActsVersion.hpp" 0016 0017 #include <string_view> 0018 0019 BOOST_AUTO_TEST_CASE(Version) { 0020 // the only way to get a zero version would be zero for all components 0021 BOOST_CHECK_LT(0u, Acts::Version); 0022 // these tests are not really useful as the version components can be any 0023 // value. they are there so we touch all variables and ensure that they are 0024 // accessible. 0025 BOOST_CHECK_LE(0u, Acts::VersionMajor); 0026 BOOST_CHECK_LE(0u, Acts::VersionMinor); 0027 BOOST_CHECK_LE(0u, Acts::VersionPatch); 0028 } 0029 0030 BOOST_AUTO_TEST_CASE(CommitHash) { 0031 BOOST_CHECK(!std::string_view(Acts::CommitHash).empty()); 0032 BOOST_CHECK(!std::string_view(Acts::CommitHashShort).empty()); 0033 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |