Skip to content

Commit

Permalink
adds gradle tast to execute interpreter from command line #1144
Browse files Browse the repository at this point in the history
  • Loading branch information
mgronover committed Jan 20, 2025
1 parent c222ca0 commit 14c542d
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 76 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,21 @@ task buildLanguages(type: BuildLanguages, dependsOn: prebuild) {
script "$buildDir/scripts/build-languages.xml"
}

task execTestsByInterpreter(type: TestLanguages, dependsOn: buildLanguages) {
script "$buildDir/scripts/build-testInterpreter.xml"
targets "generate","build"
doLast {
ant.taskdef(name: 'junitInterpreterReport',
classname: 'org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator',
classpath: configurations.junitAnt.asPath)
ant.junitInterpreterReport(toDir: "$buildDir", toFile: "TEST-InterpreterTestSuites.xml") {
fileset(dir: "$buildDir", includes: '**/TEST-InterpreterTestSuites.xml')
report(format: 'frames', todir: "$buildDir/junitInterpreterReport")
}
ant.echo("JUnit Interpreter report placed into $buildDir/junitInterpreterReport/index.html")
}
}


task buildAndRunTests(type: TestLanguages, dependsOn: buildLanguages) {
script "$buildDir/scripts/build-tests.xml"
Expand Down
2 changes: 1 addition & 1 deletion code/languages/org.iets3.opensource/.mps/modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.core.expr.typetags.units.si/org.iets3.core.expr.typetags.units.si.msd" folder="expr.lang-advanced" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.core.expr.util.interpreter/org.iets3.core.expr.util.interpreter.msd" folder="expr.lang-advanced" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.core.junit.interpreter.run.configuration/org.iets3.core.junit.interpreter.run.configuration.msd" folder="core" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.opensource.TestExecutorByInterpreter/org.iets3.opensource.TestExecutorByInterpreter.msd" folder="_build" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.opensource.allScripts.build/org.iets3.opensource.allScripts.build.msd" folder="_build" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.opensource.build.gentests.rt/org.iets3.opensource.build.gentests.rt.msd" folder="_build" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.opensource.build/org.iets3.opensource.build.msd" folder="_build" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.opensource.interpreterExecutor/org.iets3.opensource.interpreterExecutor.msd" folder="_build" />
<modulePath path="$PROJECT_DIR$/solutions/org.iets3.opensource.linters/org.iets3.opensource.linters.msd" folder="linters" />
<modulePath path="$PROJECT_DIR$/solutions/playground/playground.msd" folder="expr.tests" />
<modulePath path="$PROJECT_DIR$/solutions/test.ex.core.expr.genjava/test.ex.core.expr.genjava.msd" folder="expr.genjava" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<child id="1068498886297" name="rValue" index="37vLTx" />
<child id="1068498886295" name="lValue" index="37vLTJ" />
</concept>
<concept id="2323553266850475941" name="jetbrains.mps.baseLanguage.structure.IHasModifiers" flags="ngI" index="2frcj7">
<concept id="2323553266850475941" name="jetbrains.mps.baseLanguage.structure.IHasModifiers" flags="ng" index="2frcj7">
<child id="2323553266850475953" name="modifiers" index="2frcjj" />
</concept>
<concept id="4836112446988635817" name="jetbrains.mps.baseLanguage.structure.UndefinedType" flags="in" index="2jxLKc" />
Expand All @@ -138,7 +138,7 @@
<reference id="1188208074048" name="annotation" index="2AI5Lk" />
<child id="1188214630783" name="value" index="2B76xF" />
</concept>
<concept id="1188208481402" name="jetbrains.mps.baseLanguage.structure.HasAnnotation" flags="ngI" index="2AJDlI">
<concept id="1188208481402" name="jetbrains.mps.baseLanguage.structure.HasAnnotation" flags="ng" index="2AJDlI">
<child id="1188208488637" name="annotation" index="2AJF6D" />
</concept>
<concept id="1188214545140" name="jetbrains.mps.baseLanguage.structure.AnnotationInstanceValue" flags="ng" index="2B6LJw">
Expand Down Expand Up @@ -224,7 +224,7 @@
<property id="1176718929932" name="isFinal" index="3TUv4t" />
<child id="1068431790190" name="initializer" index="33vP2m" />
</concept>
<concept id="1513279640923991009" name="jetbrains.mps.baseLanguage.structure.IGenericClassCreator" flags="ngI" index="366HgL">
<concept id="1513279640923991009" name="jetbrains.mps.baseLanguage.structure.IGenericClassCreator" flags="ng" index="366HgL">
<property id="1513279640906337053" name="inferTypeParams" index="373rjd" />
</concept>
<concept id="1068498886296" name="jetbrains.mps.baseLanguage.structure.VariableReference" flags="nn" index="37vLTw">
Expand Down Expand Up @@ -297,7 +297,7 @@
<concept id="1160998861373" name="jetbrains.mps.baseLanguage.structure.AssertStatement" flags="nn" index="1gVbGN">
<child id="1160998896846" name="condition" index="1gVkn0" />
</concept>
<concept id="1204053956946" name="jetbrains.mps.baseLanguage.structure.IMethodCall" flags="ngI" index="1ndlxa">
<concept id="1204053956946" name="jetbrains.mps.baseLanguage.structure.IMethodCall" flags="ng" index="1ndlxa">
<reference id="1068499141037" name="baseMethodDeclaration" index="37wK5l" />
<child id="1068499141038" name="actualArgument" index="37wK5m" />
</concept>
Expand Down Expand Up @@ -331,7 +331,7 @@
<child id="8276990574909234106" name="finallyBody" index="1wplMD" />
</concept>
<concept id="1073239437375" name="jetbrains.mps.baseLanguage.structure.NotEqualsExpression" flags="nn" index="3y3z36" />
<concept id="1178549954367" name="jetbrains.mps.baseLanguage.structure.IVisible" flags="ngI" index="1B3ioH">
<concept id="1178549954367" name="jetbrains.mps.baseLanguage.structure.IVisible" flags="ng" index="1B3ioH">
<child id="1178549979242" name="visibility" index="1B3o_S" />
</concept>
<concept id="1144226303539" name="jetbrains.mps.baseLanguage.structure.ForeachStatement" flags="nn" index="1DcWWT">
Expand Down Expand Up @@ -467,7 +467,7 @@
</language>
<language id="443f4c36-fcf5-4eb6-9500-8d06ed259e3e" name="jetbrains.mps.baseLanguage.classifiers">
<concept id="1205752633985" name="jetbrains.mps.baseLanguage.classifiers.structure.ThisClassifierExpression" flags="nn" index="2WthIp" />
<concept id="1205756064662" name="jetbrains.mps.baseLanguage.classifiers.structure.IMemberOperation" flags="ngI" index="2WEnae">
<concept id="1205756064662" name="jetbrains.mps.baseLanguage.classifiers.structure.IMemberOperation" flags="ng" index="2WEnae">
<reference id="1205756909548" name="member" index="2WH_rO" />
</concept>
<concept id="1205769149993" name="jetbrains.mps.baseLanguage.classifiers.structure.DefaultClassifierMethodCallOperation" flags="nn" index="2XshWL">
Expand All @@ -486,7 +486,7 @@
<child id="946964771156066623" name="applyTo" index="yHkDe" />
<child id="946964771156066622" name="createEditor" index="yHkDf" />
</concept>
<concept id="946964771156066594" name="jetbrains.mps.execution.settings.structure.IPersistentPropertyHolder" flags="ngI" index="yHkDj">
<concept id="946964771156066594" name="jetbrains.mps.execution.settings.structure.IPersistentPropertyHolder" flags="ng" index="yHkDj">
<child id="946964771156066595" name="persistentProperty" index="yHkDi" />
</concept>
<concept id="946964771156066597" name="jetbrains.mps.execution.settings.structure.CheckProperties_Function" flags="ig" index="yHkDk" />
Expand Down Expand Up @@ -527,7 +527,7 @@
<reference id="946964771156066333" name="persistentConfiguration" index="yHkHG" />
</concept>
<concept id="946964771156066557" name="jetbrains.mps.execution.settings.structure.TemplatePersistentConfigurationType" flags="in" index="yHkIc" />
<concept id="946964771156905617" name="jetbrains.mps.execution.settings.structure.PersistentConfigurationAssistent" flags="ngI" index="yIonw">
<concept id="946964771156905617" name="jetbrains.mps.execution.settings.structure.PersistentConfigurationAssistent" flags="ng" index="yIonw">
<reference id="946964771156905618" name="configuration" index="yIonz" />
</concept>
<concept id="2722628536111969416" name="jetbrains.mps.execution.settings.structure.GridBagConstraints" flags="nn" index="1rwKMM">
Expand Down Expand Up @@ -594,7 +594,7 @@
<property id="1193676396447" name="virtualPackage" index="3GE5qa" />
<child id="5169995583184591170" name="smodelAttribute" index="lGtFl" />
</concept>
<concept id="1169194658468" name="jetbrains.mps.lang.core.structure.INamedConcept" flags="ngI" index="TrEIO">
<concept id="1169194658468" name="jetbrains.mps.lang.core.structure.INamedConcept" flags="ng" index="TrEIO">
<property id="1169194664001" name="name" index="TrG5h" />
</concept>
<concept id="4222318806802425298" name="jetbrains.mps.lang.core.structure.SuppressErrorsAnnotation" flags="ng" index="15s5l7">
Expand Down Expand Up @@ -3750,9 +3750,6 @@
</node>
<node concept="3Tm1VV" id="3ZOWdXPxqjz" role="1B3o_S" />
<node concept="3cqZAl" id="3ZOWdXPxqNX" role="3clF45" />
<node concept="2AHcQZ" id="6UkhXJgKwug" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="3ZOWdXP$ylz" role="jymVt" />
<node concept="3clFb_" id="3ZOWdXPxuGE" role="jymVt">
Expand Down Expand Up @@ -4333,9 +4330,6 @@
</node>
<node concept="2tJIrI" id="4UL3Yhl8Erl" role="jymVt" />
<node concept="3Tm1VV" id="2XSAFHY1998" role="1B3o_S" />
<node concept="3uibUv" id="6UkhXJgK1cW" role="EKbjA">
<ref role="3uigEE" to="34h4:5Ti9jVZ8rCq" resolve="TestExecutor" />
</node>
<node concept="3clFb_" id="6UkhXJgKy3g" role="jymVt">
<property role="TrG5h" value="init" />
<property role="DiZV1" value="false" />
Expand Down Expand Up @@ -4442,9 +4436,6 @@
</node>
</node>
</node>
<node concept="2AHcQZ" id="6UkhXJgKy3o" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="4UL3Yhl8C1x" role="jymVt" />
<node concept="3clFb_" id="6UkhXJgK_MH" role="jymVt">
Expand Down Expand Up @@ -4505,9 +4496,6 @@
</node>
</node>
</node>
<node concept="2AHcQZ" id="6UkhXJgK_MP" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
</node>
<node concept="2DaZZR" id="68oKK$hzCZQ" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<solution name="org.iets3.core.junit.interpreter.run.configuration" uuid="bacb5ddc-bd96-4d54-a76e-63aeb598f7fb" moduleVersion="0">
<models>
<modelRoot contentPath="${module}" type="default">
<modelRoot type="default" contentPath="${module}">
<sourceRoot location="models" />
</modelRoot>
</models>
Expand All @@ -12,7 +12,7 @@
</facets>
<dependencies>
<dependency reexport="false">8865b7a8-5271-43d3-884c-6fd1d9cfdd34(MPS.OpenAPI)</dependency>
<dependency reexport="true">f618e99a-2641-465c-bb54-31fe76f9e285(jetbrains.mps.baseLanguage.unitTest.execution)</dependency>
<dependency reexport="false">f618e99a-2641-465c-bb54-31fe76f9e285(jetbrains.mps.baseLanguage.unitTest.execution)</dependency>
<dependency reexport="false">019b622b-0aef-4dd3-86d0-4eef01f3f6bb(jetbrains.mps.ide)</dependency>
<dependency reexport="true">bf659d6c-5638-4ea1-972b-4d492b5a91f2(jetbrains.mps.execution.configurations.implementation.plugin)</dependency>
<dependency reexport="false">04b376d5-fc16-403b-a344-c68b30193c6a(jetbrains.mps.execution.library)</dependency>
Expand Down
Loading

0 comments on commit 14c542d

Please sign in to comment.