From d50a408d2d879756f271143fbc062ea6d5875b17 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 1 Apr 2014 15:10:03 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@7118 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppbox/AutoTest/AutoTest.cpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/uppbox/AutoTest/AutoTest.cpp b/uppbox/AutoTest/AutoTest.cpp index b4ff83a8c..e8d965cf3 100644 --- a/uppbox/AutoTest/AutoTest.cpp +++ b/uppbox/AutoTest/AutoTest.cpp @@ -29,7 +29,7 @@ void Do(const char *nest, const char *bm, bool release, bool test) txt << "-R "; txt << ' ' << h << ' '; String c; - c << GetHomeDirFile("/bin/umk") << " " << nest << ' ' << name << ' ' << bm << " -" << flags; + c << GetHomeDirFile("bin/umk") << " " << nest << ' ' << name << ' ' << bm << " -" << flags; if(first) c << 'a'; #ifdef PLATFORM_POSIX @@ -110,20 +110,21 @@ CONSOLE_APP_MAIN Vector bm = Split((String)ini["build_method"], ';'); exclude = Split((String)ini["exclude"], ';'); + Vector release; + for(int i = 0; i < bm.GetCount(); i++) { + bool r = bm[i].EndsWith("-R"); + if(r) + bm[i].Trim(bm[i].GetCount() - 3); + release.Add(r); + } + infolog << "Started " << GetSysTime() << "\n"; - bm.Add("GCC"); - bm.Add("GCC11"); - for(int i = 0; i < bm.GetCount(); i++) { - for(int j = 0; j < test.GetCount(); j++) { - Do(test[j], bm[i], false, true); - Do(test[j], bm[i], true, false); - } - for(int j = 0; j < build.GetCount(); j++) { - Do(build[j], bm[i], false, false); - Do(build[j], bm[i], true, false); - } + for(int j = 0; j < test.GetCount(); j++) + Do(test[j], bm[i], release[i], true); + for(int j = 0; j < build.GetCount(); j++) + Do(build[j], bm[i], release[i], false); }