Imported Upstream version 5.18.0.234

Former-commit-id: 8071ec1a8c5eaa9be24b41745add19297608001f
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-08 08:22:36 +00:00
parent f32dbaf0b2
commit 212f6bafcb
28494 changed files with 359 additions and 3867025 deletions

View File

@@ -1,28 +0,0 @@
#!/usr/bin/env python
import os
import sys
def check_path(argv):
if len(argv) < 3:
print("Wrong number of args")
return 1
type = argv[1]
paths = argv[2:]
exit_code = 0
if type == 'dir':
for idx, dir in enumerate(paths):
print(os.path.isdir(dir))
elif type == 'file':
for idx, file in enumerate(paths):
print(os.path.isfile(file))
else:
print("Unrecognised type {}".format(type))
exit_code = 1
return exit_code
if __name__ == '__main__':
sys.exit (check_path (sys.argv))

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported diff (cannot be part of a pipeline).
#
# RUN: diff diff-error-0.txt diff-error-0.txt | echo Output

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported diff (not support the -B option).
#
# RUN: diff -B temp1.txt temp2.txt

View File

@@ -1,3 +0,0 @@
# Check error on an internal shell error (missing tofile)
#
# RUN: diff temp.txt

View File

@@ -1,3 +0,0 @@
# Check error on an internal shell error (unable to find compared files)
#
# RUN: diff temp.txt temp1.txt

View File

@@ -1,5 +0,0 @@
# Check exit code error (file's contents are different)
#
# RUN: echo "hello-first" > %t
# RUN: echo "hello-second" > %t1
# RUN: diff %t %t1

View File

@@ -1,3 +0,0 @@
# Check error on an internal shell error (missing operand)
#
# RUN: diff -u

View File

@@ -1,3 +0,0 @@
# Check error on an internal shell error (extra operand)
#
# RUN: diff -u a.txt b.txt c.txt

View File

@@ -1,3 +0,0 @@
# Check error on an internal shell error (unable to find command).
#
# RUN: not-a-real-command

View File

@@ -1,3 +0,0 @@
# Check error on a shell parsing failure.
#
# RUN: echo "missing quote

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported redirect.
#
# RUN: echo "hello" 3>&1

View File

@@ -1,7 +0,0 @@
import lit.formats
config.name = 'shtest-shell'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
config.test_source_root = None
config.test_exec_root = None
config.substitutions.append(('%{python}', sys.executable))

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported mkdir (cannot be part of a pipeline).
#
# RUN: mkdir -p temp | rm -rf temp

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported mkdir (only does not support -m option).
#
# RUN: mkdir -p -m 777 temp

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported mkdir (missing operand).
#
# RUN: mkdir -p

View File

@@ -1,41 +0,0 @@
# Check stdout redirect (> and >>).
#
# RUN: echo "not-present" > %t.stdout-write
# RUN: echo "is-present" > %t.stdout-write
# RUN: FileCheck --check-prefix=STDOUT-WRITE < %t.stdout-write %s
#
# STDOUT-WRITE-NOT: not-present
# STDOUT-WRITE: is-present
#
# RUN: echo "appended-line" >> %t.stdout-write
# RUN: FileCheck --check-prefix=STDOUT-APPEND < %t.stdout-write %s
#
# STDOUT-APPEND: is-present
# STDOUT-APPEND: appended-line
# Check stderr redirect (2> and 2>>).
#
# RUN: echo "not-present" > %t.stderr-write
# RUN: "%{python}" %S/write-to-stderr.py 2> %t.stderr-write
# RUN: FileCheck --check-prefix=STDERR-WRITE < %t.stderr-write %s
#
# STDERR-WRITE-NOT: not-present
# STDERR-WRITE: a line on stderr
#
# RUN: "%{python}" %S/write-to-stderr.py 2>> %t.stderr-write
# RUN: FileCheck --check-prefix=STDERR-APPEND < %t.stderr-write %s
#
# STDERR-APPEND: a line on stderr
# STDERR-APPEND: a line on stderr
# Check combined redirect (&>).
#
# RUN: echo "not-present" > %t.combined
# RUN: "%{python}" %S/write-to-stdout-and-stderr.py &> %t.combined
# RUN: FileCheck --check-prefix=COMBINED-WRITE < %t.combined %s
#
# COMBINED-WRITE-NOT: not-present
# COMBINED-WRITE: a line on stdout
# COMBINED-WRITE: a line on stderr

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported rm. (cannot be part of a pipeline)
#
# RUN: rm -rf temp | echo "hello"

View File

@@ -1,3 +0,0 @@
# Check error on a unsupported rm (only does not support -v option).
#
# RUN: rm -f -v temp

View File

@@ -1,4 +0,0 @@
# Check error on a unsupported rm (only supports -f option and in combination with -r).
#
#### RUN: rm -r hello
# RUN: rm hello

View File

@@ -1,4 +0,0 @@
# Check error on a unsupported rm (can't remove test since it is a directory).
#
# RUN: mkdir -p test
# RUN: rm -f test

Some files were not shown because too many files have changed in this diff Show More