From 3491e7c5eaa3bd3e85a081766a0d05b53cc44bc9 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 9 Mar 2022 15:35:24 +0300 Subject: [PATCH] Makefile: add target for testing generic implementation Signed-off-by: Evgenii Stratonikov --- .github/workflows/run_tests.yml | 3 +++ Makefile | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 9925f38..77063ea 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -90,3 +90,6 @@ jobs: - name: Run tests run: go test -v ./... + + - name: Run generic tests + run: go test -v -count=1 ./... --tags=generic diff --git a/Makefile b/Makefile index 49acee5..96cabdf 100644 --- a/Makefile +++ b/Makefile @@ -47,3 +47,10 @@ up: down deps attach: @echo "\n${B}${G} attach to hash-container ${R}\n" @time docker exec -it --name hash-demo /bin/sh + +# Test code with all backends +test: + go test ./... + +test.generic: + go test ./... --tags=generic