From 5548cde22e9970c69797bd25650ff338c8793910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Thu, 7 Apr 2022 16:39:21 +0200 Subject: [PATCH] Add integration test workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/workflows/test-integration.yml | 17 ++++++++++++++++- .github/workflows/test-unittest.yml | 2 +- state/test/integration_test.go | 3 ++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 57cb10963..3b256890b 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -19,5 +19,20 @@ jobs: with: 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/ + + - 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 diff --git a/.github/workflows/test-unittest.yml b/.github/workflows/test-unittest.yml index c4a4c9100..4221fd5fe 100644 --- a/.github/workflows/test-unittest.yml +++ b/.github/workflows/test-unittest.yml @@ -21,7 +21,7 @@ jobs: go-version: 1.18 - 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 run: go test -race -count=3 ./... diff --git a/state/test/integration_test.go b/state/test/integration_test.go index fb5d2e968..5887c57e1 100644 --- a/state/test/integration_test.go +++ b/state/test/integration_test.go @@ -1,4 +1,5 @@ -// go:build integration +//go:build integration + package integration import (