11testSuite = [ ' examples' , ' local' , ' conditionVariable' ]
22
3- threading_conditionVariableWait = executable (' threading_conditionVariableWait' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWait' ] )
4- threading_conditionVariableWaitFor = executable (' threading_conditionVariableWaitFor' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitFor' ] )
5- threading_conditionVariableWaitCondition = executable (' threading_conditionVariableWaitCondition' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitCondition' ] )
6- threading_conditionVariableWaitForCondition = executable (' threading_conditionVariableWaitForCondition' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitForCondition' ] )
3+ if ' boost' in get_option (' executionStateType' ) and ' pthreads' in get_option (' processingUnitType' )
4+ threading_conditionVariableWait = executable (' threading_conditionVariableWait' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWait' ] )
5+ threading_conditionVariableWaitFor = executable (' threading_conditionVariableWaitFor' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitFor' ] )
6+ threading_conditionVariableWaitCondition = executable (' threading_conditionVariableWaitCondition' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitCondition' ] )
7+ threading_conditionVariableWaitForCondition = executable (' threading_conditionVariableWaitForCondition' , [ ' source/pthreads.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitForCondition' ] )
78
8- if get_option (' buildTests' )
9- test (' threading_conditionVariableWait' , threading_conditionVariableWait, args : [ ], suite : testSuite, workdir : threading_conditionVariableWait.path() + ' .p' )
10- test (' threading_conditionVariableWaitFor' , threading_conditionVariableWaitFor, args : [ ], suite : testSuite, workdir : threading_conditionVariableWaitFor.path() + ' .p' )
11- test (' threading_conditionVariableWaitCondition' , threading_conditionVariableWaitCondition, args : [ ], suite : testSuite, workdir : threading_conditionVariableWaitCondition.path() + ' .p' )
12- test (' threading_conditionVariableWaitForCondition' , threading_conditionVariableWaitForCondition, args : [ ], suite : testSuite, workdir : threading_conditionVariableWaitForCondition.path() + ' .p' )
9+ if get_option (' buildTests' )
10+ test (' threading_conditionVariableWait' , threading_conditionVariableWait, args : [ ], suite : testSuite, workdir : threading_conditionVariableWait.path() + ' .p' )
11+ test (' threading_conditionVariableWaitFor' , threading_conditionVariableWaitFor, args : [ ], suite : testSuite, workdir : threading_conditionVariableWaitFor.path() + ' .p' )
12+ test (' threading_conditionVariableWaitCondition' , threading_conditionVariableWaitCondition, args : [ ], suite : testSuite, workdir : threading_conditionVariableWaitCondition.path() + ' .p' )
13+ test (' threading_conditionVariableWaitForCondition' , threading_conditionVariableWaitForCondition, args : [ ], suite : testSuite, workdir : threading_conditionVariableWaitForCondition.path() + ' .p' )
14+ endif
1315endif
1416
15- nosv_conditionVariableWait = executable (' nosv_conditionVariableWait' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWait' ] )
16- nosv_conditionVariableWaitFor = executable (' nosv_conditionVariableWaitFor' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitFor' ] )
17- nosv_conditionVariableWaitCondition = executable (' nosv_conditionVariableWaitCondition' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitCondition' ] )
18- nosv_conditionVariableWaitForCondition = executable (' nosv_conditionVariableWaitForCondition' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitForCondition' ] )
17+ if ' nosv' in get_option (' executionStateType' ) and ' nosv' in get_option (' processingUnitType' )
18+ nosv_conditionVariableWait = executable (' nosv_conditionVariableWait' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWait' ] )
19+ nosv_conditionVariableWaitFor = executable (' nosv_conditionVariableWaitFor' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitFor' ] )
20+ nosv_conditionVariableWaitCondition = executable (' nosv_conditionVariableWaitCondition' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitCondition' ] )
21+ nosv_conditionVariableWaitForCondition = executable (' nosv_conditionVariableWaitForCondition' , [ ' source/nosv.cpp' ], dependencies : [ TaskRBuildDep ], cpp_args : [ ' -D__TEST_FUNCTION_=conditionVariableWaitForCondition' ] )
1922
20- if get_option (' buildTests' )
21- test (' nosv_conditionVariableWait' , nosv_conditionVariableWait, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWait.path() + ' .p' )
22- test (' nosv_conditionVariableWaitFor' , nosv_conditionVariableWaitFor, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWaitFor.path() + ' .p' )
23- test (' nosv_conditionVariableWaitCondition' , nosv_conditionVariableWaitCondition, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWaitCondition.path() + ' .p' )
24- test (' nosv_conditionVariableWaitForCondition' , nosv_conditionVariableWaitForCondition, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWaitForCondition.path() + ' .p' )
25- endif
23+ if get_option (' buildTests' )
24+ test (' nosv_conditionVariableWait' , nosv_conditionVariableWait, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWait.path() + ' .p' )
25+ test (' nosv_conditionVariableWaitFor' , nosv_conditionVariableWaitFor, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWaitFor.path() + ' .p' )
26+ test (' nosv_conditionVariableWaitCondition' , nosv_conditionVariableWaitCondition, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWaitCondition.path() + ' .p' )
27+ test (' nosv_conditionVariableWaitForCondition' , nosv_conditionVariableWaitForCondition, args : [ ], is_parallel : false , suite : testSuite, workdir : nosv_conditionVariableWaitForCondition.path() + ' .p' )
28+ endif
29+ endif
0 commit comments