no message
This commit is contained in:
6
.idea/workspace.xml
generated
6
.idea/workspace.xml
generated
@@ -8,7 +8,13 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Test/Test.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Test/Test.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Test/TestDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Test/TestDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Test/UI/TestFields.form" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Test/UI/TestFields.form" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Test/UI/TestFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Test/UI/TestFields.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ConvertCorrectnessTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ConvertCorrectnessTests.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishTest.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishTest.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/StartTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/StartTests.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ import java.io.File;
|
|||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
public class Test extends riDBObject {
|
public class Test extends riDBObject {
|
||||||
@Description("DEFAULT 1")
|
@Description("DEFAULT 1")
|
||||||
public int dim = 1; //размерность теста. для удобства пусть будет и внешним полем.
|
public int min_dim = 1; //мин размерность теста.
|
||||||
|
@Description("DEFAULT 1")
|
||||||
|
public int max_dim = 1; //макс размерность теста.
|
||||||
@Description("DEFAULT ''")
|
@Description("DEFAULT ''")
|
||||||
public String args = ""; //аргументы командной строки. на всякий случай поле зарезервирую. пусть будут.
|
public String args = ""; //аргументы командной строки. на всякий случай поле зарезервирую. пусть будут.
|
||||||
@Description("DEFAULT -1")
|
@Description("DEFAULT -1")
|
||||||
@@ -27,7 +29,8 @@ public class Test extends riDBObject {
|
|||||||
public void SynchronizeFields(DBObject src) {
|
public void SynchronizeFields(DBObject src) {
|
||||||
super.SynchronizeFields(src);
|
super.SynchronizeFields(src);
|
||||||
Test t = (Test) src;
|
Test t = (Test) src;
|
||||||
dim = t.dim;
|
min_dim = t.min_dim;
|
||||||
|
max_dim = t.max_dim;
|
||||||
args = t.args;
|
args = t.args;
|
||||||
group_id = t.group_id;
|
group_id = t.group_id;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,8 +35,10 @@ public class TestDBTable extends iDBTable<Test> {
|
|||||||
case 2:
|
case 2:
|
||||||
return object.description;
|
return object.description;
|
||||||
case 3:
|
case 3:
|
||||||
return object.dim;
|
return object.min_dim;
|
||||||
case 4:
|
case 4:
|
||||||
|
return object.max_dim;
|
||||||
|
case 5:
|
||||||
return object.files;
|
return object.files;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
@@ -45,7 +47,11 @@ public class TestDBTable extends iDBTable<Test> {
|
|||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"имя", "размерность", "файлы"};
|
"имя",
|
||||||
|
"min_dim",
|
||||||
|
"max_dim",
|
||||||
|
"файлы"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
public Current CurrentName() {
|
||||||
@@ -72,12 +78,14 @@ public class TestDBTable extends iDBTable<Test> {
|
|||||||
@Override
|
@Override
|
||||||
public void fillFields() {
|
public void fillFields() {
|
||||||
fields.tfName.setText(Result.description);
|
fields.tfName.setText(Result.description);
|
||||||
fields.sDim.setValue(Result.dim);
|
fields.sMinDim.setValue(Result.min_dim);
|
||||||
|
fields.sMaxDim.setValue(Result.max_dim);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.description = fields.tfName.getText();
|
Result.description = fields.tfName.getText();
|
||||||
Result.dim = (int) fields.sDim.getValue();
|
Result.min_dim = (int) fields.sMinDim.getValue();
|
||||||
|
Result.max_dim = (int) fields.sMaxDim.getValue();
|
||||||
if (!edit) {
|
if (!edit) {
|
||||||
Result.sender_name = Current.getAccount().name;
|
Result.sender_name = Current.getAccount().name;
|
||||||
Result.sender_address = Current.getAccount().email;
|
Result.sender_address = Current.getAccount().email;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="TestingSystem.Common.Test.UI.TestFields">
|
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="TestingSystem.Common.Test.UI.TestFields">
|
||||||
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
<grid id="27dc6" binding="content" layout-manager="GridLayoutManager" row-count="4" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||||
<margin top="0" left="0" bottom="0" right="0"/>
|
<margin top="0" left="0" bottom="0" right="0"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<xy x="20" y="20" width="500" height="400"/>
|
<xy x="20" y="20" width="500" height="400"/>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
</component>
|
</component>
|
||||||
<vspacer id="9a439">
|
<vspacer id="9a439">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</vspacer>
|
</vspacer>
|
||||||
<component id="ddf02" class="javax.swing.JTextField" binding="tfName" custom-create="true">
|
<component id="ddf02" class="javax.swing.JTextField" binding="tfName" custom-create="true">
|
||||||
@@ -33,15 +33,33 @@
|
|||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="fbef6" class="javax.swing.JLabel">
|
<component id="fbef6" class="javax.swing.JLabel">
|
||||||
|
<constraints>
|
||||||
|
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
|
||||||
|
</constraints>
|
||||||
|
<properties>
|
||||||
|
<font name="Times New Roman" size="16" style="2"/>
|
||||||
|
<text value="максимальная размерность"/>
|
||||||
|
</properties>
|
||||||
|
</component>
|
||||||
|
<component id="2b54" class="javax.swing.JSpinner" binding="sMaxDim">
|
||||||
|
<constraints>
|
||||||
|
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
||||||
|
<preferred-size width="50" height="-1"/>
|
||||||
|
<maximum-size width="50" height="-1"/>
|
||||||
|
</grid>
|
||||||
|
</constraints>
|
||||||
|
<properties/>
|
||||||
|
</component>
|
||||||
|
<component id="82807" class="javax.swing.JLabel">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
|
<grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<properties>
|
<properties>
|
||||||
<font name="Times New Roman" size="16" style="2"/>
|
<font name="Times New Roman" size="16" style="2"/>
|
||||||
<text value="размерность"/>
|
<text value="минимальная размерность"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
<component id="2b54" class="javax.swing.JSpinner" binding="sDim">
|
<component id="c59e6" class="javax.swing.JSpinner" binding="sMinDim">
|
||||||
<constraints>
|
<constraints>
|
||||||
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
<grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false">
|
||||||
<preferred-size width="50" height="-1"/>
|
<preferred-size width="50" height="-1"/>
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import java.awt.*;
|
|||||||
public class TestFields implements DialogFields {
|
public class TestFields implements DialogFields {
|
||||||
public JTextField tfName;
|
public JTextField tfName;
|
||||||
private JPanel content;
|
private JPanel content;
|
||||||
public JSpinner sDim;
|
public JSpinner sMinDim;
|
||||||
|
public JSpinner sMaxDim;
|
||||||
@Override
|
@Override
|
||||||
public Component getContent() {
|
public Component getContent() {
|
||||||
return content;
|
return content;
|
||||||
@@ -17,6 +18,7 @@ public class TestFields implements DialogFields {
|
|||||||
tfName = new StyledTextField();
|
tfName = new StyledTextField();
|
||||||
}
|
}
|
||||||
public TestFields(){
|
public TestFields(){
|
||||||
sDim.setModel(new SpinnerNumberModel(1, 0, 16,1));
|
sMinDim.setModel(new SpinnerNumberModel(1, 0, 16,1));
|
||||||
|
sMaxDim.setModel(new SpinnerNumberModel(1, 0, 16,1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,12 +67,12 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
|
|||||||
db_project_info vizTestProject = new db_project_info(testProject, "", false);
|
db_project_info vizTestProject = new db_project_info(testProject, "", false);
|
||||||
switch (group.language) {
|
switch (group.language) {
|
||||||
case fortran:
|
case fortran:
|
||||||
test.dim = Current.getSapfor().getTextMaxDim(files[0], vizTestProject);
|
test.max_dim = Current.getSapfor().getTextMaxDim(files[0], vizTestProject);
|
||||||
System.out.println(test.dim);
|
System.out.println(test.max_dim);
|
||||||
break;
|
break;
|
||||||
case c:
|
case c:
|
||||||
test.dim = Utils.getCTestMaxDim(files[0]);
|
test.max_dim = Utils.getCTestMaxDim(files[0]);
|
||||||
System.out.println(test.dim);
|
System.out.println(test.max_dim);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import Common.Current;
|
|||||||
import Common.Global;
|
import Common.Global;
|
||||||
import Common.UI.UI;
|
import Common.UI.UI;
|
||||||
import Common.Utils.Utils;
|
import Common.Utils.Utils;
|
||||||
import ProjectData.Files.DBProjectFile;
|
|
||||||
import ProjectData.Project.db_project_info;
|
import ProjectData.Project.db_project_info;
|
||||||
import TestingSystem.Common.Test.Test;
|
import TestingSystem.Common.Test.Test;
|
||||||
import TestingSystem.Common.TestingServer;
|
import TestingSystem.Common.TestingServer;
|
||||||
@@ -33,15 +32,15 @@ public class PublishTest extends PublishServerObject<TestingServer, Test> {
|
|||||||
target.files = String.join(";", filesNames);
|
target.files = String.join(";", filesNames);
|
||||||
//--
|
//--
|
||||||
if (from_current_project) {
|
if (from_current_project) {
|
||||||
target.dim = project.testMaxDim;
|
// target.max_dim = project.testMaxDim;
|
||||||
return super.fillObjectFields();
|
return super.fillObjectFields();
|
||||||
} else {
|
} else {
|
||||||
switch (project.languageName) {
|
switch (project.languageName) {
|
||||||
case fortran:
|
case fortran:
|
||||||
target.dim = Current.getSapfor().getTextMaxDim(null, project);
|
target.max_dim = Current.getSapfor().getTextMaxDim(null, project);
|
||||||
break;
|
break;
|
||||||
case c:
|
case c:
|
||||||
target.dim = Utils.getCProjectMaxDim(project);
|
target.max_dim = Utils.getCProjectMaxDim(project);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public class StartTests extends PublishServerAccountObject<TasksPackage> {
|
|||||||
flags
|
flags
|
||||||
);
|
);
|
||||||
testCompilationTask.runTasks = new Vector<>();
|
testCompilationTask.runTasks = new Vector<>();
|
||||||
Vector<String> matrixes = configuration.getMatrixes(test.dim);
|
Vector<String> matrixes = configuration.getMatrixes(test.max_dim);
|
||||||
Vector<String> environments = configuration.getEnvironments();
|
Vector<String> environments = configuration.getEnvironments();
|
||||||
for (String environmentSet : environments) {
|
for (String environmentSet : environments) {
|
||||||
if (flags.trim().equalsIgnoreCase("-s")) {
|
if (flags.trim().equalsIgnoreCase("-s")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user