.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@10566 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-12-22 13:33:50 +00:00
parent 4300ef2a9a
commit 3dc4d2fcc4
3 changed files with 9 additions and 7 deletions

View file

@ -8,16 +8,14 @@ void GetRepoInfo(String repo, Date& d, int& rev)
LOG("SVN info:");
LOG(s);
String key = "Revision: ";
int q = s.Find(key);
int q = s.FindAfter("Last Changed Rev: ");
ASSERT(q >= 0);
rev = atoi(s.Mid(q + key.GetCount()));
rev = atoi(~s + q);
ASSERT(rev > 0);
key = "Last Changed Date: ";
q = s.Find(key);
q = s.FindAfter("Last Changed Date: ");
ASSERT(q >= 0);
s = s.Mid(q + key.GetCount());
s = s.Mid(q);
ASSERT(s.GetCount() > 18);
// 2014-10-30 01:01:56
@ -46,7 +44,7 @@ CONSOLE_APP_MAIN
ASSERT(d == d1 && rev == rev1);
GetRepoInfo("svn://www.ultimatepp.org/upp/trunk", d, rev);
GetRepoInfo("svn://www.ultimatepp.org/upp/trunk/uppsrc", d, rev);
LOG("upp.src revision: " << rev);
String h = HttpRequest("https://github.com/ultimatepp/mirror/commits/master").Execute();

View file

@ -5,6 +5,8 @@ using namespace Upp;
CONSOLE_APP_MAIN {
StdLogSetup(LOG_COUT|LOG_FILE);
TimeStop tm;
Vector<int> x;
for(int i = 0; i < 100000000; i++)

View file

@ -1,3 +1,5 @@
description "#WAIT: 10\377";
uses
Core;