[PATCH] D38010: lit.py: Allow configs and local configs to have a setup_script entry

Jordan Rose via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 17:01:30 PDT 2017


jordan_rose created this revision.
Herald added a reviewer: modocache.

If set, the contents of this field are run before any tests within that directory are executed. This happens once per execution directory, so tests in subdirectories should take care. The execution of the setup script takes place in a new directory `%shared_output`, which is located alongside the `%t` paths within the Output/ directories.

This is useful for families of tests that have some expensive setup, which would be bad to duplicate across tests.

Either this or https://reviews.llvm.org/D35396 will need to be rebased on top of the other.


Repository:
  rL LLVM

https://reviews.llvm.org/D38010

Files:
  docs/CommandGuide/lit.rst
  docs/TestingGuide.rst
  utils/lit/lit/TestRunner.py
  utils/lit/lit/TestingConfig.py
  utils/lit/lit/run.py
  utils/lit/tests/Inputs/setup-script/Inputs/base.sh
  utils/lit/tests/Inputs/setup-script/lit.cfg
  utils/lit/tests/Inputs/setup-script/subdir-custom/Inputs/custom.sh
  utils/lit/tests/Inputs/setup-script/subdir-custom/lit.local.cfg
  utils/lit/tests/Inputs/setup-script/subdir-custom/test.txt
  utils/lit/tests/Inputs/setup-script/subdir-inherited/lit.local.cfg
  utils/lit/tests/Inputs/setup-script/subdir-inherited/test.txt
  utils/lit/tests/Inputs/setup-script/subdir-no-local/test.txt
  utils/lit/tests/Inputs/setup-script/subdir-no-setup/lit.local.cfg
  utils/lit/tests/Inputs/setup-script/subdir-no-setup/test.txt
  utils/lit/tests/Inputs/setup-script/test.txt
  utils/lit/tests/setup-script.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38010.115755.patch
Type: text/x-patch
Size: 14474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170919/a600a21d/attachment.bin>


More information about the llvm-commits mailing list