Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 5fe852151174dc9d9bf0392d73ffa21b4e173a1f (plain) (tree)
1
2
3
4
5
6
7
8
9
                         
 
                                           
 
                                                                                                  
 


                                                                                                                                           
 







                                                                                                            
 


                                                                                                                        
                                                                                                                                                           

                                                                                                     






                                                              
apply plugin: 'java-base'

apply from: "$rootDir/gradle/etTest.gradle"

def genericPhysical = '../org.eclipse.etrice.generator.common.tests/models/GenericPhysical.etphys'

createTest('java', 'sendingDataTest', ['models/SendingDataTest.room', genericPhysical])
createTest('java', 'staticConfigTest', ['models/StaticConfigTest.etmap', 'models/StaticConfigTest.room', 'models/StaticConfigTest.config'])
sourceSets.staticConfigTest.java.srcDir 'src/staticConfigTest'

createTest('java', 'dynamicActorTest1', ['models/DynamicActorTest1.etmap', 'models/DynamicActorTest1.room'])
createTest('java', 'dynamicActorTest2', ['models/DynamicActorTest2.etmap', 'models/DynamicActorTest2.room'])
createTest('java', 'dynamicActorTest3', ['models/DynamicActorTest3.room', genericPhysical])
createTest('java', 'dynamicActorTest4', ['models/DynamicActorTest4.room', genericPhysical])
createTest('java', 'dynamicActorTest5', ['models/DynamicActorTest5.room', genericPhysical])
createTest('java', 'dynamicActorTest6', ['models/DynamicActorTest6.room', genericPhysical])

createTest('java', 'tCPTest', ['models/TCPTest.room', genericPhysical])

def genOptions = ['-persistable', '-storeDataObj']
createTest('java', 'dynamicActorTest7', ['models/DynamicActorTest7.etmap', 'models/DynamicActorTest7.room'], genOptions)
sourceSets.dynamicActorTest7.java.srcDir 'src/dynamicActorTest7'
createTest('java', 'dynamicConfigTest', ['models/DynamicConfigTest.etmap', 'models/DynamicConfigTest.room', 'models/DynamicConfigTest.config'], genOptions)
sourceSets.dynamicConfigTest.java.srcDir 'src/dynamicConfigTest'
createTest('java', 'storeRestoreTest', ['models/StoreRestoreTest.room', genericPhysical], genOptions)
sourceSets.storeRestoreTest.java.srcDir 'src/storeRestoreTest'

task copyRTConfig(type: Copy) {
	from 'models/DynamicConfigTest.rt-config'
	into 'log/dynamicConfigTestJava'
}
runDynamicConfigTestJava.dependsOn copyRTConfig

Back to the top