File: version.cc

package info (click to toggle)
testsweeper 2024.05.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: cpp: 2,091; python: 1,290; makefile: 5
file content (35 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2017-2023, University of Tennessee. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// This program is free software: you can redistribute it and/or modify it under
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.

#include "testsweeper.hh"

namespace testsweeper {

//------------------------------------------------------------------------------
/// @return TestSweeper version.
/// Version is integer of form yyyymmrr, where yyyy is year, mm is month,
/// and rr is release counter within month, starting at 00.
///
int version()
{
    return TESTSWEEPER_VERSION;
}

// TESTSWEEPER_ID is the Mercurial or git commit hash ID, either
// defined by `hg id` or `git rev-parse --short HEAD` in Makefile,
// or defined here by make_release.py for release tar files. DO NOT EDIT.
#ifndef TESTSWEEPER_ID
#define TESTSWEEPER_ID "unknown"
#endif

//------------------------------------------------------------------------------
/// @return TestSweeper Mercurial or git commit hash ID.
///
const char* id()
{
    return TESTSWEEPER_ID;
}

}  // namespace testsweeper