mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Add non-auto tests
This commit is contained in:
parent
8eb0dcdd48
commit
9c2aa86182
6 changed files with 28 additions and 0 deletions
|
|
@ -355,3 +355,4 @@ test('Scan-build (static analysis)', find_program('test/scan-build'), env : [ ''
|
|||
test('Arguments', find_program('test/arguments'), args : [ meson.project_version() ], env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'basic')
|
||||
test('Environment Variables', find_program('test/environment-variables'), env : [ ''.join('MESONCURRENTCONFIGDIR=', meson.current_source_dir()) ], suite: 'basic')
|
||||
test('Semantic versioning', find_program('test/versions'), 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')
|
||||
|
|
|
|||
0
release-non-auto-checks/Bugs.md
Normal file
0
release-non-auto-checks/Bugs.md
Normal file
0
release-non-auto-checks/WLR_XDG_VERSION
Normal file
0
release-non-auto-checks/WLR_XDG_VERSION
Normal file
0
release-non-auto-checks/coverity
Normal file
0
release-non-auto-checks/coverity
Normal file
2
release-non-auto-checks/release-note
Normal file
2
release-non-auto-checks/release-note
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
2.1.0
|
||||
2023-04-06
|
||||
25
test/non-auto-tests
Normal file
25
test/non-auto-tests
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
# Copyright 2023, project-repo and the cagebreak contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
VERSION=$1
|
||||
RESULT=0
|
||||
|
||||
# shellcheck disable=2164
|
||||
cd "${MESONCURRENTCONFIGDIR}/release-non-auto-checks"
|
||||
|
||||
filevar="$VERSION
|
||||
$(date +%Y-%m-%d)"
|
||||
|
||||
for check in ./*
|
||||
do
|
||||
if [[ $(cat "$check") = "${filevar}" ]]
|
||||
then
|
||||
echo "[x] ${check}"
|
||||
else
|
||||
RESULT=1
|
||||
echo "[ ] ${check}"
|
||||
fi
|
||||
done
|
||||
|
||||
exit "${RESULT}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue