mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-15 04:55:24 +00:00
initial commit
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
commit
c39114f1a9
64 changed files with 8704 additions and 0 deletions
28
testdata/exec_path_change.txt
vendored
Normal file
28
testdata/exec_path_change.txt
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# If the PATH environment variable is set in the testscript.Params.Setup phase
|
||||
# or set directly within a script, exec should honour that PATH
|
||||
|
||||
[!exec:go] skip
|
||||
|
||||
env HOME=$WORK${/}home
|
||||
[windows] env USERPROFILE=$WORK\home
|
||||
[windows] env LOCALAPPDATA=$WORK\appdata
|
||||
|
||||
cd go
|
||||
exec go$exe version
|
||||
stdout 'go version'
|
||||
exec go$exe build
|
||||
env PATH=$WORK${/}go${:}$PATH
|
||||
exec go$exe version
|
||||
stdout 'This is not go'
|
||||
|
||||
-- go/go.mod --
|
||||
module example.com/go
|
||||
|
||||
-- go/main.go --
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("This is not go")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue