llvm.org GIT mirror llvm / 0a27f40
Document standard substitutions defined by lit. Patch by Guilherme Bufolo! Differential Revision: http://reviews.llvm.org/D18752 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265314 91177308-0d34-0410-b5e6-96231b3b80d8 Paul Robinson 3 years ago
1 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
354354 configuration parameters --- for example, to change the test format, or the
355355 suffixes which identify test files.
356356
357 PRE-DEFINED SUBSTITUTIONS
358 ~~~~~~~~~~~~~~~~~~~~~~~~~~
359
360 :program:`lit` provides various patterns that can be used with the RUN command.
361 These are defined in TestRunner.py.
362
363 ========== ==============
364 Macro Substitution
365 ========== ==============
366 %s source path (path to the file currently being run)
367 %S source dir (directory of the file currently being run)
368 %p same as %S
369 %{pathsep} path separator
370 %t temporary file name unique to the test
371 %T temporary directory unique to the test
372 %% %
373 %/s same as %s but replace all / with \\
374 %/S same as %S but replace all / with \\
375 %/p same as %p but replace all / with \\
376 %/t same as %t but replace all / with \\
377 %/T same as %T but replace all / with \\
378 ========== ==============
379
380 Further substitution patterns might be defined by each test module.
381 See the modules :ref:`local-configuration-files`.
382
383 More information on the testing infrastucture can be found in the
384 :doc:`../TestingGuide`.
385
357386 TEST RUN OUTPUT FORMAT
358387 ~~~~~~~~~~~~~~~~~~~~~~
359388