File: testscript_explicit_exec.txt

package info (click to toggle)
golang-github-rogpeppe-go-internal 1.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: makefile: 6
file content (32 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Check that RequireExplicitExec works;
# it should reject `fprintargs` in favor of `exec fprintargs`,
# but it shouldn't complain about `some-param-cmd`,
# as that Params.Cmds entry won't work via `exec some-param-cmd`.

unquote scripts-implicit/testscript.txt
unquote scripts-explicit/testscript.txt

testscript scripts-implicit
testscript scripts-explicit

! testscript -explicit-exec scripts-implicit
testscript -explicit-exec scripts-explicit

-- scripts-implicit/testscript.txt --
>fprintargs stdout right
>cmp stdout expect
>
>some-param-cmd
>! exec some-param-cmd
>
>-- expect --
>right
-- scripts-explicit/testscript.txt --
>exec fprintargs stdout right
>cmp stdout expect
>
>some-param-cmd
>! exec some-param-cmd
>
>-- expect --
>right