Skip to content

Commit

Permalink
Run harness tests against 3 previous versions and HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
priyawadhwa committed Sep 6, 2022
1 parent a6e58f7 commit 90615f4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/rekor-harness.sh
Expand Up @@ -87,10 +87,17 @@ function run_tests () {
fi
}

# Get last 3 server versions
# Get last 2 server versions
git fetch origin
NUM_VERSIONS_TO_TEST=3
NUM_VERSIONS_TO_TEST=2
VERSIONS=$(git tag --sort=-version:refname | head -n $NUM_VERSIONS_TO_TEST | tac)

# Also add the commit @ HEAD
HEAD=$(git log --pretty="%H" -n 1 )
echo "Also testing at HEAD at commit $HEAD"

VERSIONS="$VERSIONS $HEAD"

echo $VERSIONS

export REKOR_HARNESS_TMPDIR="$(mktemp -d -t rekor_test_harness.XXXXXX)"
Expand Down

0 comments on commit 90615f4

Please sign in to comment.