Merge pull request #1 from twitchy-jsonp/master

Make a Go module, use build tags to mask tests that need special system setup.
This commit is contained in:
Tom D 2019-04-01 12:51:52 -07:00 committed by GitHub
commit 028c06c785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 0 deletions

View File

@ -10,3 +10,8 @@ Go-Attestation is under active development and **is not** ready for production u
API changes at any time.
Please note that this is not an official Google product.
## Build tags on tests
* `localtest` - Runs tests against TPM hardware of the local system.
* `tpm12` - Runs TPM 1.2 specific tests against the local system.

View File

@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
// +build !localtest !tpm12
package attest
import (

View File

@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
// +build localtest
package attest
import (

View File

@ -12,6 +12,8 @@
// License for the specific language governing permissions and limitations under
// the License.
// +build tpm12
package attest
import (

11
go.mod Normal file
View File

@ -0,0 +1,11 @@
module github.com/google/go-attestation
go 1.12
require (
github.com/google/certificate-transparency-go v1.0.21
github.com/google/go-tpm v0.1.1
github.com/google/go-tpm-tools v0.0.0-20190328013357-5d2fd7f4b3e5
github.com/google/go-tspi v0.2.0
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
)

12
go.sum Normal file
View File

@ -0,0 +1,12 @@
github.com/google/certificate-transparency-go v1.0.21 h1:Yf1aXowfZ2nuboBsg7iYGLmwsOARdV86pfH3g95wXmE=
github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg=
github.com/google/go-tpm v0.1.1 h1:Qwvy1ZQsQElHIb/7PCqE4OpiBwDRMMHpu2a2q16S2hI=
github.com/google/go-tpm v0.1.1/go.mod h1:OGEdc1XfzTyNEQyahgeXVq+E0lMq3Vu/Y3bT9EfpRnE=
github.com/google/go-tpm-tools v0.0.0-20190328013357-5d2fd7f4b3e5 h1:/moKuMi+BJ+OEva3jTms88ruyRkxaZn+f9EIZoGpQeY=
github.com/google/go-tpm-tools v0.0.0-20190328013357-5d2fd7f4b3e5/go.mod h1:ApmLTU8fd5JJJ4J67y9sV16nOTR00GW2OabMwk7kSnE=
github.com/google/go-tspi v0.2.0 h1:PMrHThARFgHtsCF6B8YNjLlnnGMDdFjVHZnxaqkcbzQ=
github.com/google/go-tspi v0.2.0/go.mod h1:xfMGI3G0PhxCdNVcYr1C4C+EizojDg/TXuX5by8CiHI=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a h1:1BGLXjeY4akVXGgbC9HugT3Jv3hCI0z56oJR5vAMgBU=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=