[Dexter] Add DexDeclareFile command to Dexter
authorTom Weaver <Tom.Weaver@Sony.com>
Tue, 25 May 2021 11:47:16 +0000 (12:47 +0100)
committerTom Weaver <Tom.Weaver@Sony.com>
Tue, 25 May 2021 11:47:16 +0000 (12:47 +0100)
commitc2c2be44ed644199a5a9832bf9ac34fc3ef6b486
treeb8fad6d968048a23d915369daeb8737d66025c36
parentae58cf5f45a9c159afbf86e93c0c257a22c4ee02
[Dexter] Add DexDeclareFile command to Dexter

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.

Differential Revision: https://reviews.llvm.org/D99651
22 files changed:
debuginfo-tests/dexter/Commands.md
debuginfo-tests/dexter/d.diff [new file with mode: 0644]
debuginfo-tests/dexter/dex/command/ParseCommand.py
debuginfo-tests/dexter/dex/command/commands/DexDeclareFile.py [new file with mode: 0644]
debuginfo-tests/dexter/dex/tools/TestToolBase.py
debuginfo-tests/dexter/dex/tools/clang_opt_bisect/Tool.py
debuginfo-tests/dexter/dex/tools/test/Tool.py
debuginfo-tests/dexter/feature_tests/commands/penalty/dex_declare_file.cpp [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/commands.dex [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/lit.local.cfg.py [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/test.cfg [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/dex_and_source/test.cpp [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/commands.dex [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/lit.local.cfg.py [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary/test.cpp [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/dex_commands/commands.dex [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/lit.local.cfg.py [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/precompiled_binary_different_dir/source/test.cpp [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/windows_noncanonical_path/lit.local.cfg.py [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/windows_noncanonical_path/source/test file.cpp [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/windows_noncanonical_path/test.cfg [new file with mode: 0644]
debuginfo-tests/dexter/feature_tests/commands/perfect/dex_declare_file/windows_noncanonical_path/test.dex [new file with mode: 0644]