Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cf2f3e1e41110f885c02464e98fc623f6f60a5bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
plugins {
	id 'c'
}

apply from: etUnitConverter

model {
	components {
		etrice_runtime_c_tests(NativeExecutableSpec) {
			sources.c {
				source {
					srcDirs = ['src']
					include '**/*.c'
				}
				exportedHeaders {
					srcDirs = ['src']
				}
				lib project: ':runtime:org.eclipse.etrice.runtime.c', library: 'etrice_runtime_c', linkage: 'static'
			}
		}
	}
}

def exeFile = "$buildDir/exe/etrice_runtime_c_tests/etrice_runtime_c_tests"
def etuFileRuntimeTest = 'log/testlog/TestCRuntime.etu'
def etuFileEtUnitTest = 'log/testlog/TestEtUnitSpecial.etu'

clean.delete 'log'

task run(type: Exec, dependsOn: assemble, group: 'verification') {
	commandLine exeFile
	inputs.file exeFile
	outputs.files etuFileRuntimeTest, etuFileEtUnitTest
	
	doFirst { file('log/testlog').mkdirs() }
}

createEtUnitConverterTask('convert', run)

check.dependsOn convert

Back to the top