-
Notifications
You must be signed in to change notification settings - Fork 75
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
Using stoke testcase with multiple arguments #210
Comments
I think that args is a string of as many args as you want. So --bin ./a.out --args "--a1 --a2 --a3" will end up calling ./a.out --a1 On Fri, Nov 14, 2014 at 1:15 AM, Berkeley Churchill <
|
I tried this, but it actually just passed one argument that had spaces in it, instead of arguments separated by spaces. |
I don't think I understand the difference. |
It's the difference between rm -rf tmp files and rm -rf "tmp files" The first one removes the 'tmp' folder and the 'files' folder; the On 11/15/2014 08:35 PM, eric schkufza wrote:
|
Right. Duh! On Sat, Nov 15, 2014 at 9:02 PM, Berkeley Churchill <
|
This has to do with x64asm parsing string arguments that contain spaces. |
I take that back. The behavior we're seeing is exactly what we're asking for. The solution here is to provide the --args argument with a parser that reads everything between quotes. We want the generic string reader to stop reading on whitespace. This is done now. Looks to be working. |
(Also fixed a regression in stoke testcase.) |
I'm still experiencing problems with this. This is my
and the error I'm getting from
am I doing something wrong? When you say "provide the --args argument with a parser that reads everything between quotes" is that something I need to do? Would you guys @eschkufz or @bchurchill know what to do here? edit: I managed to get this working by hardcoding in the default value and rebuilding stoke. But hopefully there's a better solution |
Can you open a new ticket for this? It's likely a regression, and I don't
think this is something we test for much (ever?)
…On Sat, Apr 22, 2017 at 2:09 AM, James Albert ***@***.***> wrote:
I'm still experiencing problems with this. This is my testcase.conf
##### stoke testcase config file
--bin ./sana
--args "-g1 yeast -g2 human" # I've tried with and without quotes
--functions bins
-o simpleRun.tc
--fxn _ZN10TabuSearch9simpleRunERK9AlignmentdRy
--max_testcases 1024
and the error I'm getting from stoke testcase --config testcase.conf is:
Errors:
--args <arg1 arg2 ... argn>
Error reading value: No argument provided!
-g1 yeast -g2 human
Ignoring unrecognized argument!
am I doing something wrong?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#210 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnG6YSzJuOWt7zci4IOQaAF5Vr5zs_Iks5rycPBgaJpZM4C7Jr7>
.
--
Berkeley
|
No worries, added issue #955 |
Thanks
…On Sun, Apr 23, 2017 at 4:30 PM, James Albert ***@***.***> wrote:
No worries, added issue #955
<#955>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#210 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnG6XGuwjGx0BS_Xtj-05ktSMLsdPMKks5ry98zgaJpZM4C7Jr7>
.
--
Berkeley
|
I'm sure this will eventually boil down to something in cpputil, but it would be nice if we could make stoke testcase --args take a list of arguments, rather than only one.
The text was updated successfully, but these errors were encountered: