Home | History | Annotate | Download | only in lit

Lines Matching refs:script

508     script = tmpBase + '.script'
510 script += '.bat'
512 # Write script file
516 f = open(script, mode)
527 command = ['cmd','/c', script]
530 command = [bashPath, script]
532 command = ['/bin/sh', script]
550 Parse the commands in an integrated test script file into a list of
560 # Once we find a match, we do require each script line to be decodable to
658 def applySubstitutions(script, substitutions):
659 """Apply substitutions to the script. Allow full regular expression syntax.
673 return list(map(processLine, script))
781 script and extract the lines to 'RUN' as well as 'XFAIL' and 'REQUIRES'
787 If 'require_script' is False an empty script
788 may be returned. This can be used for test formats where the actual script
791 # Collect the test lines from the script.
793 script = []
799 initial_value=script),
828 # Verify the script contains a run line.
829 if require_script and not script:
833 if script and script[-1][-1] == '\\':
877 return script
880 def _runShTest(test, litConfig, useExternalSh, script, tmpBase):
886 res = executeScript(test, litConfig, tmpBase, script, execdir)
888 res = executeScriptInternal(test, litConfig, tmpBase, script, execdir)
902 output = """Script:\n--\n%s\n--\nExit Code: %d\n""" % (
903 '\n'.join(script), exitCode)
923 script = parseIntegratedTestScript(test)
924 if isinstance(script, lit.Test.Result):
925 return script
933 script = applySubstitutions(script, substitutions)
940 res = _runShTest(test, litConfig, useExternalSh, script, tmpBase)