Add integration test workflows

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-04-07 16:39:21 +02:00 committed by Daniel Weiße
parent 0e2025b67c
commit 5548cde22e
3 changed files with 19 additions and 3 deletions

View File

@ -19,5 +19,20 @@ jobs:
with: with:
go-version: "1.18" go-version: "1.18"
- name: Run Integration Test - name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y pkg-config libcryptsetup12 libcryptsetup-dev
- name: Integration Test Coordinator
run: DEBUG=true go test -v -tags integration ./test/ run: DEBUG=true go test -v -tags integration ./test/
- name: Integration Test mount
run: |
go test -tags integration -c ./test/
sudo ./test.test -test.v -v 9
working-directory: mount
- name: Integration Test disk-mapper
run: |
go test -tags integration -c ./test/
sudo ./test.test -test.v
working-directory: state

View File

@ -21,7 +21,7 @@ jobs:
go-version: 1.18 go-version: 1.18
- name: Install Dependencies - name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y libcryptsetup-dev run: sudo apt-get update && sudo apt-get install -y pkg-config libcryptsetup12 libcryptsetup-dev
- name: Test - name: Test
run: go test -race -count=3 ./... run: go test -race -count=3 ./...

View File

@ -1,4 +1,5 @@
// go:build integration //go:build integration
package integration package integration
import ( import (