This is an archive of the discontinued LLVM Phabricator instance.

[Dexter] Allow tests to specify their command line options
ClosedPublic

Authored by jmorse on Dec 8 2021, 4:19 AM.

Details

Summary

This patch adds a "DexCommandLine" command, allowing dexter tests to specify what command line options the test should be started with. I've also plumbed it through into the debuggers.

Diff Detail

Event Timeline

jmorse requested review of this revision.Dec 8 2021, 4:19 AM
jmorse created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 4:19 AM
Orlando accepted this revision.Dec 8 2021, 5:44 AM

Looks good, LGTM with two questions inline.

cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/DebuggerControllerBase.py
33

Probably a better user experience if this is caught in the parsing stage and prettily reported as an error. wdyt?

cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/command_line.c
10–13

Is this part of the test (and the #include) necessary?

This revision is now accepted and ready to land.Dec 8 2021, 5:44 AM
jmorse updated this revision to Diff 393175.Dec 9 2021, 8:20 AM

Produce a parsing error if DexCommandLine is specified more than once; refresh a test.

jmorse added inline comments.Dec 9 2021, 8:21 AM
cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/DebuggerControllerBase.py
33

I've added a filter to ParseCommand.py, which I think is the correct place for validating these things?

cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/perfect/command_line.c
10–13

Yup, that was due to some testing, now removed.

(Still LGTM)

cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/DebuggerControllerBase.py
33

Thanks, and yeah that's the right place.

This revision was landed with ongoing or failed builds.Jan 10 2022, 3:30 AM
This revision was automatically updated to reflect the committed changes.