From b2e8bc7f5ad0c220d2198490453599f67f57bb01 Mon Sep 17 00:00:00 2001 From: project-repo Date: Fri, 7 Apr 2023 09:00:41 +0200 Subject: [PATCH] Add git tag check --- meson.build | 1 + test/git-tag | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/git-tag diff --git a/meson.build b/meson.build index cbd1307..734e772 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/test/git-tag b/test/git-tag new file mode 100644 index 0000000..f080060 --- /dev/null +++ b/test/git-tag @@ -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}"