[PATCH] D99651: [Dexter] Implement DexDeclareFile, a new Dexter command

Tom Weaver via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 31 04:37:09 PDT 2021


TWeaver created this revision.
TWeaver added reviewers: chrisjackson, jmorse, Orlando, StephenTozer, n-omer.
TWeaver added a project: debug-info.
TWeaver requested review of this revision.

DexDeclareFile allows test producers to write test files with .dex extensions that
contain pure dexter commands.

.dex file commands do not need to be commented out like they do when written
inline within test source files.

DexDeclareFile commands are declarative in behaviour, they state that any Dexter
command seen from this point on will have its path attribute set to the path
declared in the DexDeclareFile command.

Provided in this patch is in the implementation of DexDeclareFile and 4 tests.


https://reviews.llvm.org/D99651

Files:
  debuginfo-tests/dexter/Commands.md
  debuginfo-tests/dexter/dex/command/ParseCommand.py
  debuginfo-tests/dexter/dex/command/commands/DexDeclareFile.py
  debuginfo-tests/dexter/dex/tools/TestToolBase.py
  debuginfo-tests/dexter/dex/tools/test/Tool.py
  debuginfo-tests/dexter/feature_tests/commands/penalty/dex_declare_file.cpp
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/commands.dex
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/lit.local.cfg.py
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/test.cfg
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/test.cpp
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/commands.dex
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/lit.local.cfg.py
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/test.cpp
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/dex_commands/commands.dex
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/lit.local.cfg.py
  debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/source/test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99651.334408.patch
Type: text/x-patch
Size: 15466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210331/adc1621f/attachment.bin>


More information about the llvm-commits mailing list