[PATCH] D154594: Add version comparison in BooleanExpression for lit testing

David Stuttard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 04:08:26 PDT 2023


dstuttard created this revision.
Herald added a subscriber: delcypher.
Herald added a project: All.
dstuttard requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This change updates BooleanExpression (used in REQUIRES or UNSUPPORTED) to have
an additional ability for comparison. For example you can have

REQUIRES: something > <integer>

Where the comparison can be any of the usual ones (<,>,<=,>=,==,!=)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154594

Files:
  llvm/utils/lit/lit/BooleanExpression.py
  llvm/utils/lit/lit/Test.py
  llvm/utils/lit/lit/TestingConfig.py
  llvm/utils/lit/tests/Inputs/show-used-features/mixed.txt
  llvm/utils/lit/tests/Inputs/shtest-format/lit.cfg
  llvm/utils/lit/tests/Inputs/shtest-format/version-missing.txt
  llvm/utils/lit/tests/Inputs/shtest-format/version-present.txt
  llvm/utils/lit/tests/Inputs/shtest-format/version-unfulfilled.txt
  llvm/utils/lit/tests/Inputs/shtest-format/version-unsupported-false.txt
  llvm/utils/lit/tests/Inputs/shtest-format/version-unsupported-true.txt
  llvm/utils/lit/tests/shtest-format.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154594.537658.patch
Type: text/x-patch
Size: 14477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230706/c553544b/attachment.bin>


More information about the llvm-commits mailing list