mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Not all the tests are possible to run on Windows since they expect a Unix-like shell environment. However, the rest of the tests can be accommodated. This actually found an issue in the implementation. Since the implementation assumes the target is POSIX/Unix-y, we should use posixpath rather than os.path which uses the host's path style.
18 lines
619 B
Plaintext
18 lines
619 B
Plaintext
REQUIRES: shell
|
|
|
|
RUN: %debug-remote-run sh -c "echo hello; echo goodbye >&2" > %t.stdout.txt 2> %t.stderr.txt
|
|
RUN: %FileCheck -check-prefix CHECK-STDOUT %s < %t.stdout.txt
|
|
RUN: %FileCheck -check-prefix CHECK-STDERR %s < %t.stderr.txt
|
|
|
|
RUN: not %debug-remote-run sh -c "echo hello; echo goodbye >&2; false" > %t.stdout.txt 2> %t.stderr.txt
|
|
RUN: %FileCheck -check-prefix CHECK-STDOUT %s < %t.stdout.txt
|
|
RUN: %FileCheck -check-prefix CHECK-STDERR %s < %t.stderr.txt
|
|
|
|
CHECK-STDOUT-NOT: goodbye
|
|
CHECK-STDOUT: {{^hello$}}
|
|
CHECK-STDOUT-NOT: goodbye
|
|
|
|
CHECK-STDERR-NOT: hello
|
|
CHECK-STDERR: {{^goodbye$}}
|
|
CHECK-STDERR-NOT: hello
|