File tree Expand file tree Collapse file tree 11 files changed +26
-13
lines changed Expand file tree Collapse file tree 11 files changed +26
-13
lines changed Original file line number Diff line number Diff line change 1
- RUN: %utils/ remote-run -n --remote-dir /xyz-REMOTE -o FIRST_OPT -o SECOND_OPT --output-prefix %t some_user@some_host:12345 cp %t/nested/input %t/nested/output 2>&1 >/dev/null | %FileCheck %s
1
+ RUN: %remote-run -n --remote-dir /xyz-REMOTE -o FIRST_OPT -o SECOND_OPT --output-prefix %/ t some_user@some_host:12345 cp %/ t/nested/input %/ t/nested/output 2>&1 >/dev/null | %FileCheck %s
2
2
3
3
CHECK: /usr/bin/ssh -n
4
4
CHECK-DAG: -p 12345
Original file line number Diff line number Diff line change 1
- RUN: %utils/ remote-run -n --remote-dir /xyz-REMOTE --input-prefix %S/Inputs/ some_user@some_host ls %S/Inputs/upload/1.txt %S/Inputs/upload/2.txt 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-INPUT %s
1
+ RUN: %remote-run -n --remote-dir /xyz-REMOTE --input-prefix %S/Inputs/ some_user@some_host ls %S/Inputs/upload/1.txt %S/Inputs/upload/2.txt 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-INPUT %s
2
2
3
3
CHECK-INPUT: /usr/bin/ssh -n some_user@some_host -- '/usr/bin/env' '/bin/mkdir' '-p' '{{.+}}-REMOTE/input/upload'
4
4
CHECK-INPUT-NEXT: /usr/bin/sftp
@@ -10,7 +10,7 @@ CHECK-INPUT: /usr/bin/ssh -n some_user@some_host -- '/usr/bin/env' 'ls'
10
10
RUN: %empty-directory(%t)
11
11
RUN: %empty-directory(%t/nested)
12
12
RUN: touch %t/nested/input %t/nested/BAD
13
- RUN: %utils/ remote-run -n --remote-dir /xyz-REMOTE --output-prefix %t some_user@some_host cp %t/nested/input %t/nested/output 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-OUTPUT %s
13
+ RUN: %remote-run -n --remote-dir /xyz-REMOTE --output-prefix %/ t some_user@some_host cp %/ t/nested/input %/ t/nested/output 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-OUTPUT %s
14
14
15
15
CHECK-OUTPUT: /usr/bin/ssh -n some_user@some_host -- '/usr/bin/env' '/bin/mkdir' '-p' '{{.+}}-REMOTE/output/nested'
16
16
CHECK-OUTPUT-NEXT: /usr/bin/sftp
Original file line number Diff line number Diff line change
1
+ REQUIRES: shell
2
+
1
3
RUN: %empty-directory(%t)
2
4
RUN: %debug-remote-run -n --input-prefix %S/Inputs/ ls %S/Inputs/upload/1.txt %S/Inputs/upload/2.txt 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-INPUT %s
3
5
RUN: test -z "`ls %t`"
Original file line number Diff line number Diff line change
1
+ REQUIRES: shell
2
+
1
3
RUN: env REMOTE_RUN_CHILD_FOO=foo REMOTE_RUN_CHILD_BAR=bar %debug-remote-run sh -c 'echo ":${FOO}:" ":${BAR}:"' | %FileCheck %s
2
4
RUN: env REMOTE_RUN_CHILD_FOO=foo REMOTE_RUN_CHILD_BAR=bar %debug-remote-run -v sh -c 'echo ":${FOO}:" ":${BAR}:"' 2>&1 >/dev/null | %FileCheck -check-prefix VERBOSE %s
3
5
Original file line number Diff line number Diff line change
1
+ REQUIRES: shell
2
+
1
3
RUN: not %debug-remote-run false >%t.txt 2>%t.errs.txt
2
4
RUN: test -f %t.txt -a ! -s %t.txt
3
5
RUN: test -f %t.errs.txt -a ! -s %t.errs.txt
Original file line number Diff line number Diff line change 1
- RUN: %utils/ remote-run -n --remote-dir /xyz-REMOTE -i spiderman --output-prefix %t some_user@some_host:12345 cp %t/nested/input %t/nested/output 2>&1 >/dev/null | %FileCheck %s
1
+ RUN: %remote-run -n --remote-dir /xyz-REMOTE -i spiderman --output-prefix %/ t some_user@some_host:12345 cp %/ t/nested/input %/ t/nested/output 2>&1 >/dev/null | %FileCheck %s
2
2
3
3
CHECK: /usr/bin/ssh -n
4
4
CHECK-DAG: -p 12345
@@ -32,7 +32,7 @@ CHECK-DAG: -get '/xyz-REMOTE/output/nested/output' '{{.+}}/nested/output'
32
32
CHECK-DAG: -get '/xyz-REMOTE/output/nested/input' '{{.+}}/nested/input'
33
33
34
34
# Make sure things work without a port.
35
- RUN: %utils/ remote-run -n --remote-dir /xyz-REMOTE -i spiderman --output-prefix %t some_user@some_host cp %t/nested/input %t/nested/output 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-PORTLESS %s
35
+ RUN: %remote-run -n --remote-dir /xyz-REMOTE -i spiderman --output-prefix %/ t some_user@some_host cp %/ t/nested/input %/ t/nested/output 2>&1 >/dev/null | %FileCheck -check-prefix CHECK-PORTLESS %s
36
36
37
37
CHECK-PORTLESS: /usr/bin/sftp
38
38
CHECK-PORTLESS-SAME: -i spiderman
Original file line number Diff line number Diff line change 2
2
config.substitutions = list(config.substitutions)
3
3
4
4
config.substitutions.insert(0, (' %debug-remote-run' ,
5
- ' %utils/remote-run --debug-as-local %sftp-server --remote-dir %t-REMOTE' ) )
5
+ r' %r %%utils/remote-run --debug-as-local %%sftp-server --remote-dir %%t-REMOTE' % (sys.executable,)))
6
+ config.substitutions.insert(0, (' %remote-run' ,
7
+ r' %r %%utils/remote-run' % (sys.executable,)))
Original file line number Diff line number Diff line change 1
- RUN: %utils/ remote-run -n --remote-dir /xyz-REMOTE --output-prefix %t some_user@some_host:12345 cp %t/nested/input %t/nested/output 2>&1 >/dev/null | %FileCheck %s
1
+ RUN: %remote-run -n --remote-dir /xyz-REMOTE --output-prefix %/ t some_user@some_host:12345 cp %/ t/nested/input %/ t/nested/output 2>&1 >/dev/null | %FileCheck %s
2
2
3
3
CHECK: /usr/bin/ssh -n -p 12345 some_user@some_host -- '/usr/bin/env' '/bin/mkdir' '-p' '{{.+}}-REMOTE/output/nested'
4
4
CHECK-NEXT: /usr/bin/sftp
Original file line number Diff line number Diff line change
1
+ REQUIRES: shell
2
+
1
3
RUN: %debug-remote-run echo hello | %FileCheck %s
2
4
RUN: %debug-remote-run -v echo hello 2>&1 >/dev/null | %FileCheck -check-prefix VERBOSE %s
3
5
Original file line number Diff line number Diff line change
1
+ REQUIRES: shell
2
+
1
3
RUN: %debug-remote-run sh -c "echo hello; echo goodbye >&2" > %t.stdout.txt 2> %t.stderr.txt
2
4
RUN: %FileCheck -check-prefix CHECK-STDOUT %s < %t.stdout.txt
3
5
RUN: %FileCheck -check-prefix CHECK-STDERR %s < %t.stderr.txt
You can’t perform that action at this time.
0 commit comments