aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/svnversion/test/main.cpp
blob: 3c8209047ffb91ef72839fc940027355801e5dc8 (plain) (blame)
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
#include <build/scripts/c_templates/svnversion.h>
#include <util/stream/str.h>
#include <util/system/compiler.h>
#include <util/stream/output.h>

// ya make -DFORCE_VCS_INFO_UPDATE --vcs-file=<vcs.json> library/cpp/svnversion/test/
// ./library/svnversion/test/test[.exe]
int main() {
    Cout << "GetProgramSvnVersion(): " << GetProgramSvnVersion() << Endl;
    Cout << "PrintProgramSvnVersion(): " << Endl; PrintProgramSvnVersion();
    Cout << "GetArcadiaSourcePath(): " << GetArcadiaSourcePath() << Endl;
    Cout << "GetArcadiaSourceUrl(): " << GetArcadiaSourceUrl() << Endl;
    Cout << "GetArcadiaLastChange(): " << GetArcadiaLastChange() << Endl;
    Cout << "GetArcadiaLastChangeNum(): " << GetArcadiaLastChangeNum() << Endl;
    Cout << "GetArcadiaLastAuthor(): " << GetArcadiaLastAuthor() << Endl;
    Cout << "GetProgramSvnRevision(): " << GetProgramSvnRevision() << Endl;
    Cout << "GetProgramHash(): " << GetProgramHash() << Endl;
    Cout << "GetProgramCommitId(): " << GetProgramCommitId() << Endl;
    Cout << "GetProgramScmData(): " << GetProgramScmData() << Endl;
    Cout << "GetProgramBuildUser(): " << GetProgramBuildUser() << Endl;
    Cout << "GetProgramBuildHost(): " << GetProgramBuildHost() << Endl;
    Cout << "GetProgramBuildDate(): " << GetProgramBuildDate() << Endl;
    Cout << "GetVCS(): " << GetVCS() << Endl;
    Cout << "GetBranch(): " << GetBranch() << Endl;
    Cout << "GetTag(): " << GetTag() << Endl;
    Cout << "GetArcadiaPatchNumber(): " << GetArcadiaPatchNumber() << Endl;
    Cout << "GetVCSDirty(): " << GetVCSDirty() << Endl;
    return 0;
}