summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-29 00:41:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-29 00:41:15 +0000
commit6f25e872e46ca9ae8b84c0ad411f98e4868b1c87 (patch)
treedb907c62776559e835507601b2169a231de17d9d /utils
parent501cba385cf2ae5db1d646ec75e1d4d57e015d80 (diff)
downloadllvm-6f25e872e46ca9ae8b84c0ad411f98e4868b1c87.tar.gz
llvm-6f25e872e46ca9ae8b84c0ad411f98e4868b1c87.tar.bz2
llvm-6f25e872e46ca9ae8b84c0ad411f98e4868b1c87.tar.xz
[lit] Add a TODO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/TODO29
1 files changed, 29 insertions, 0 deletions
diff --git a/utils/lit/TODO b/utils/lit/TODO
index 419056a78f..e6aeb3d933 100644
--- a/utils/lit/TODO
+++ b/utils/lit/TODO
@@ -121,6 +121,35 @@ Infrastructure
tests, or add additional features to the internal shell handling to allow
them to pass.
+5. Consider changing core to support setup vs. execute distinction.
+
+ Many of the existing test formats are cleanly divided into two phases, once
+ parses the test format and extracts XFAIL and REQUIRES information, etc., and
+ the other code actually executes the test.
+
+ We could make this distinction part of the core infrastructure and that would
+ enable a couple things:
+
+ * The REQUIREs handling could be lifted to the core, which is nice.
+
+ * This would provide a clear place to insert subtest support, because the
+ setup phase could be responsible for providing subtests back to the
+ core. That would provide part of the infrastructure to parallelize them, for
+ example, and would probably interact well with other possible features like
+ parameterized tests.
+
+ * This affords a clean implementation of --no-execute.
+
+ * One possible downside could be for test formats that cannot determine their
+ subtests without having executed the test. Supporting such formats would
+ either force the test to actually be executed in the setup stage (which
+ might be ok, as long as the API was explicitly phrased to support that), or
+ would mean we are forced into supporting subtests as return values from the
+ execute phase.
+
+ Any format can just keep all of its code in execute, presumably, so the only
+ cost of implementing this is its impact on the API and futures changes.
+
Miscellaneous
=============