Add git tag check

This commit is contained in:
project-repo 2023-04-07 09:00:41 +02:00
commit b2e8bc7f5a
2 changed files with 17 additions and 0 deletions

View file

@ -359,3 +359,4 @@ test('Semantic versioning', find_program('test/versions'), args : [ meson.projec
test('Signature validity', find_program('test/gpg-signatures'), suite: 'release')
test('Hashes.md', find_program('test/hashes-md'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
test('Non-auto tests', find_program('test/non-auto-tests'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'release')
test('Git tag', find_program('test/git-tag'), args : [ meson.project_version() ], suite: 'release')

16
test/git-tag Normal file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Copyright 2023, project-repo and the cagebreak contributors
# SPDX-License-Identifier: MIT
VERSION=$1
RESULT=0
if git tag -v "${VERSION}"
then
echo "[x] git tag"
else
RESULT=1
echo "[ ] git tag"
fi
exit "${RESULT}"