no message
This commit is contained in:
@@ -243,6 +243,10 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
Print("Загрузить пакет SAPFOR");
|
||||
DownloadSapforPackage();
|
||||
break;
|
||||
case InstallServerSapfor:
|
||||
Print("Установить текущую версию SAPFOR для тестирования");
|
||||
InstallServerSapfor();
|
||||
break;
|
||||
default:
|
||||
throw new RepositoryRefuseException("Неподдерживаемый код: " + code);
|
||||
}
|
||||
@@ -485,4 +489,30 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
else
|
||||
throw new RepositoryRefuseException("Не удалось заархивировать пакет тестирования SAPFOR с ключом " + sapforPackage_id);
|
||||
}
|
||||
private void InstallServerSapfor() throws Exception {
|
||||
File testingSystemHome = new File(Global.Home);
|
||||
File repo = new File(testingSystemHome, "Repo");
|
||||
File repoSapforHome = Paths.get(repo.getAbsolutePath(), Constants.SAPFOR_REPOSITORY_BIN ).toFile();
|
||||
File repo_bin = new File(repoSapforHome, "Sapfor_F");
|
||||
//--
|
||||
Utils.startScript(repo, repo, "dvm_checkout",
|
||||
"svn checkout " +
|
||||
Constants.REPOSITORY_AUTHENTICATION +
|
||||
" " + Constants.DVM_REPOSITORY + " 1>dvm_out.txt 2>dvm_err.txt\n").waitFor();
|
||||
|
||||
Utils.startScript(repo, repo, "spf_checkout",
|
||||
"svn checkout " +
|
||||
Constants.REPOSITORY_AUTHENTICATION +
|
||||
" " + Constants.SAPFOR_REPOSITORY + " 1>spf_out.txt 2>spf_err.txt\n").waitFor();
|
||||
//--
|
||||
|
||||
if (repo_bin.exists()){
|
||||
FileUtils.forceDelete(repo_bin);
|
||||
}
|
||||
//--
|
||||
Utils.startScript(repoSapforHome, repoSapforHome, "build_sapfor",
|
||||
"cmake ../ 1>out.txt 2>err.txt\nmake -j 14 1>>out.txt 2>>err.txt\n").waitFor();
|
||||
//--
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user