Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do env.Test()/BuildTest() pass data to the test program? #34

Open
feedhandler opened this issue Oct 24, 2017 · 0 comments
Open

how do env.Test()/BuildTest() pass data to the test program? #34

feedhandler opened this issue Oct 24, 2017 · 0 comments

Comments

@feedhandler
Copy link

I'm trying to pass some data to my test, like this

env.BuildTest('my_test', 'my_test.cpp', data = 'testData.txt')

I was expecting the test program to be executed with the testData.txt passed on the command line

But the test program is just executed with no command line argument.

Is that supposed to happen? If so, what is the purpose of the data argument in env.Test()/BuildTest() ?

This is the output

Progress( SconstructBegin )
Progress( Begin sconscript: [./src/SConscript] )
Progress( Starting variant: [_build/src/gcc62/dbg/x86_64/c++1z] )
RunProcessTest(["_build/src/gcc62/dbg/x86_64/c++1z/final/my_test.stdout.log", "_build/src/gcc62/dbg/x86_64/c++1z/final/my_test.stderr.log", "_build/src/gcc62/dbg/x86_64/c++1z/final/my_test.report.json", "_build/src/gcc62/dbg/x86_64/c++1z/final/my_test.success"], ["_build/src/gcc62/dbg/x86_64/c++1z/final/my_test", "src/testData.txt"])

Starting Test Suite [_build/src/gcc62/dbg/x86_64/c++1z/working]

Test [my_test]...
cuppa: ProcessTest: Test returned with error code:  1
 = FAILED =  Time: Wall [ 00:00:00.006,220,032 ] CPU [ 00:00:00.010,000,000 ] CPU/Wall [ 160.77% ]

Progress( Finished variant: [_build/src/gcc62/dbg/x86_64/c++1z] )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant