blob: 9b786f7eda85fa530f485f7e53ad27ae03599dd2 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
|
defineTest(testVariable) {
varname=$$1
value=$$eval($$varname)
RESULT=$$value
export(RESULT)
}
defineTest(callTest) {
myvar=$$1
testVariable(myvar)
}
defineTest(callTestExport) {
myvar=$$1
export(myvar)
testVariable(myvar)
}
defineTest(callTestExportChange) {
myvar=foo
export(myvar)
myvar=$$1
testVariable(myvar)
}
value=direct
myvar=$$value
testVariable(myvar)
!isEqual(RESULT,$$value) {
message( "FAILED: result [$$RESULT] != $$value" )
}
value=export
callTestExport($$value)
!isEqual(RESULT,$$value) {
message( "FAILED: result [$$RESULT] != $$value" )
}
value=export_and_change
callTestExportChange($$value)
!isEqual(RESULT,$$value) {
message( "FAILED: result [$$RESULT] != $$value" )
}
value=local
callTest($$value)
!isEqual(RESULT,$$value) {
message( "FAILED: result [$$RESULT] != $$value" )
}
|