# Those tests are supposed to pass verification.
c_tests = [
'c-test-1',
'c-test-2',
'c-test-3',
# TODO_REENABLE_VERIFY
#'c-test-4'
]
# Those tests are supposed to fail verification.
c_fail_tests = [
'c-fail-test-1',
'c-fail-test-2',
# TODO_REENABLE_VERIFY
#'c-fail-test-3',
'c-fail-test-4',
'c-fail-test-5',
'c-fail-test-6'
]
testrunner_fail = find_program( 'test_runner_fail.sh' )
testrunner = find_program( 'test_runner.sh' )
foreach t : c_tests
file = configure_file( copy: true,
input: t + '.g0', output: t + '.g0'
)
test( 'g-g0-verification-ghostfuncs-' + t, testrunner,
args: [ goose, 'tests/g0/verification/ghostfuncs/' + t ]
)
endforeach
foreach t : c_fail_tests
file = configure_file( copy: true,
input: t + '.g0', output: t + '.g0'
)
test( 'g-g0-verification-ghostfuncs-' + t, testrunner_fail,
args: [ goose, 'tests/g0/verification/ghostfuncs/' + t + '.g0',
files( t + '.txt' ) ]
)
endforeach