aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/svnversion/test/main.cpp
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /library/cpp/svnversion/test/main.cpp
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'library/cpp/svnversion/test/main.cpp')
-rw-r--r--library/cpp/svnversion/test/main.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/library/cpp/svnversion/test/main.cpp b/library/cpp/svnversion/test/main.cpp
new file mode 100644
index 0000000000..3c8209047f
--- /dev/null
+++ b/library/cpp/svnversion/test/main.cpp
@@ -0,0 +1,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;
+}
+