Skip to content

Commit

Permalink
Enable runtime info tests for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Oct 31, 2018
1 parent e3ebc8a commit 0f44c38
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ jobs:
- stage: Test
os: windows
script:
- make
- make windows
- powershell -c "Set-ExecutionPolicy Bypass -Scope CURRENTUSER -Force"
- powershell hack/install-kubelet.ps1
# Skip hack/run-critest.sh temporarily.
- powershell hack/run-critest.ps1

stages:
- Static check
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ clean:
find . -name \*~ -delete
find . -name \#\* -delete

cross: check-gopath
windows: check-gopath
GOOS=windows $(GO) test -c -o $(CURDIR)/_output/critest.exe \
-ldflags '$(GO_LDFLAGS)' \
$(PROJECT)/cmd/critest
Expand Down
26 changes: 26 additions & 0 deletions hack/run-critest.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Stop on any error.
$ErrorActionPreference = "Stop"
$VerbosePreference = "Continue"

# Install kubelet
$gopath = [System.Environment]::GetEnvironmentVariable("GOPATH")
$critestpath = $gopath + "/src/github.com/kubernetes-sigs/cri-tools/_outpub/critest.exe"

# Run e2e test cases
# Only run basic runtime info now because Windows images are not yet pushed.
$critestpath -"ginkgo.focus" "Runtime info"

0 comments on commit 0f44c38

Please sign in to comment.