diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2023-02-04 15:03:03 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2023-04-29 19:54:52 -0400 |
| commit | 5e05dc9fb9ad3ada91466da64d20ffbf063ca93d (patch) | |
| tree | 15edfc95169365b7c540bb68f978f56ed1e1da73 /Makefile | |
| parent | 496bac6da308507760a70ccbce8da6fddee4c3ba (diff) | |
replace afero module
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -166,12 +166,14 @@ $(shell go list -f '{{ if not (eq "" (join .TestGoFiles "")) }}testbin/{{.Import # available. Git must also be configured with a username and email address. See # the GitHub workflow config in .github/workflows/build.yml for hints. # A recent PowerShell is also required, such as version 7.3 or later. +# +# An F: drive is expected to be available, with a tmp directory. .SECONDEXPANSION: $(shell go list -f '{{ if not (eq "" (join .TestGoFiles "")) }}testbin/{{.ImportPath}}.test.exe.remote{{end}}' ./...): $$(shell go list -f '{{.Dir}}' $$(subst testbin/,,$$(subst .test.exe.remote,,$$@))) @echo $< @GOOS=windows GOARCH=amd64 $(GO) test -tags timetzdata -c -o $(PREFIX)/testbin/remote-test.exe $< @scp -q $(PREFIX)/testbin/remote-test.exe $(GO_REMOTE_WINDOWS):/$(shell ssh $(GO_REMOTE_WINDOWS) 'echo %TEMP%' | cut -f2 -d= | sed -e 's#\\#/#g')/ - @ssh $(GO_REMOTE_WINDOWS) '%TEMP%\remote-test.exe' + @ssh -o 'SetEnv TMP=F:\tmp' $(GO_REMOTE_WINDOWS) '%TEMP%\remote-test.exe' # test-remote-windows runs the above target for all packages that have tests test-remote-windows: $(shell go list -f '{{ if not (eq "" (join .TestGoFiles "")) }}testbin/{{.ImportPath}}.test.exe.remote{{end}}' ./...) |
