llvm.org GIT mirror llvm / 1139063
Remove mention of old deleted test scripts from testing guide git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198771 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Rieck 6 years ago
1 changed file(s) with 5 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
403403 Other Features
404404 --------------
405405
406 To make RUN line writing easier, there are several helper scripts and programs
407 in the ``llvm/test/Scripts`` directory. This directory is in the PATH
408 when running tests, so you can just call these scripts using their name.
409 For example:
410
411 ``ignore``
412 This script runs its arguments and then always returns 0. This is useful
413 in cases where the test needs to cause a tool to generate an error (e.g.
414 to check the error output). However, any program in a pipeline that
415 returns a non-zero result will cause the test to fail. This script
416 overcomes that issue and nicely documents that the test case is
417 purposefully ignoring the result code of the tool
406 To make RUN line writing easier, there are several helper programs. These
407 helpers are in the PATH when running tests, so you can just call them using
408 their name. For example:
409
418410 ``not``
419 This script runs its arguments and then inverts the result code from it.
411 This program runs its arguments and then inverts the result code from it.
420412 Zero result codes become 1. Non-zero result codes become 0.
421413
422414 Sometimes it is necessary to mark a test case as "expected fail" or