-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore changes accidentally reverted during reconciliation (#256)
- Loading branch information
1 parent
f1f1b84
commit 2f8dbfc
Showing
13 changed files
with
120 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
on: [push, pull_request] | ||
name: Test | ||
jobs: | ||
test-linux: | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x, 1.17.x] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Test | ||
run: go test ./... | ||
test-linux-tpm12: | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x, 1.17.x] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install libtspi | ||
run: sudo apt-get install -y libtspi-dev | ||
- name: Test | ||
run: go test -tags tspi ./... | ||
test-macos: | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x, 1.17.x] | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
# See https://github.com/google/go-tpm-tools#macos-dev | ||
- name: Install openssl | ||
run: brew install [email protected] | ||
- name: Link openssl | ||
run: sudo ln -s $(brew --prefix [email protected])/include/openssl /usr/local/include | ||
- name: Test | ||
run: C_INCLUDE_PATH="$(brew --prefix [email protected])/include" LIBRARY_PATH="$(brew --prefix [email protected])/lib" go test ./... | ||
test-windows: | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x, 1.17.x] | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Test | ||
run: go build ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash -e | ||
|
||
1>&2 echo "----- | ||
WARNING: The TPM 1.2 simulator no longer builds with newer versions of openssl. | ||
These scripts are kept for posterity, but likely won't build on new OS | ||
versions. | ||
----" | ||
|
||
export PROJECT_ROOT="$( pwd )" | ||
TMPDIR="$( mktemp -d )" | ||
SIM_DIR="${TMPDIR}/tpm12_sim" | ||
|
||
TEST_ROOT="${TMPDIR}/tests_base" | ||
|
||
mkdir -pv "${SIM_DIR}" | ||
./ci/setup_tpm12_simulator.sh "${SIM_DIR}" | ||
./ci/setup_tests_fs.sh "${TEST_ROOT}" | ||
|
||
go test -v ./... -- --testTPM12 | ||
|
||
./ci/shutdown_tpm12_simulator.sh "${SIM_DIR}" |