main.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. #include <build/scripts/c_templates/svnversion.h>
  2. #include <util/stream/str.h>
  3. #include <util/system/compiler.h>
  4. #include <util/stream/output.h>
  5. // ya make -DFORCE_VCS_INFO_UPDATE --vcs-file=<vcs.json> library/cpp/svnversion/test/
  6. // ./library/svnversion/test/test[.exe]
  7. int main() {
  8. Cout << "GetProgramSvnVersion(): " << GetProgramSvnVersion() << Endl;
  9. Cout << "GetCustomVersion(): " << GetCustomVersion() << Endl;
  10. Cout << "PrintProgramSvnVersion(): " << Endl; PrintProgramSvnVersion();
  11. Cout << "GetArcadiaSourcePath(): " << GetArcadiaSourcePath() << Endl;
  12. Cout << "GetArcadiaSourceUrl(): " << GetArcadiaSourceUrl() << Endl;
  13. Cout << "GetArcadiaLastChange(): " << GetArcadiaLastChange() << Endl;
  14. Cout << "GetArcadiaLastChangeNum(): " << GetArcadiaLastChangeNum() << Endl;
  15. Cout << "GetArcadiaLastAuthor(): " << GetArcadiaLastAuthor() << Endl;
  16. Cout << "GetProgramSvnRevision(): " << GetProgramSvnRevision() << Endl;
  17. Cout << "GetProgramHash(): " << GetProgramHash() << Endl;
  18. Cout << "GetProgramCommitId(): " << GetProgramCommitId() << Endl;
  19. Cout << "GetProgramScmData(): " << GetProgramScmData() << Endl;
  20. Cout << "GetProgramBuildUser(): " << GetProgramBuildUser() << Endl;
  21. Cout << "GetProgramBuildHost(): " << GetProgramBuildHost() << Endl;
  22. Cout << "GetProgramBuildDate(): " << GetProgramBuildDate() << Endl;
  23. Cout << "GetVCS(): " << GetVCS() << Endl;
  24. Cout << "GetBranch(): " << GetBranch() << Endl;
  25. Cout << "GetTag(): " << GetTag() << Endl;
  26. Cout << "GetArcadiaPatchNumber(): " << GetArcadiaPatchNumber() << Endl;
  27. Cout << "GetVCSDirty(): " << GetVCSDirty() << Endl;
  28. return 0;
  29. }