re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-06-29 14:47:12 +02:00
parent f0e4dba30a
commit f39cfd870a
4 changed files with 38 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/pcm-202211.tar.gz
/pcm-202107.tar.gz
/pcm-202211.tar.gz

12
tests/run_tests.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# fail the whole test set if any of the command pipelines fail
set -ex
# when running this in 1minutetip the PATH must be specified to execute
# in the local directory.
echo "Setting path to local directory"
PATH=$PATH:$(pwd)
# simple version test
version.sh

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test

16
tests/version.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
#
# Thermald is a systemd unit file that requires specific hardware and
# firmware. As such it is difficult to test in an automated fashion.
# fail the whole test if any of the command pipelines below fails
set -ex
rpmversion=$(rpm -q --queryformat '%{VERSION}' pcm)
if [ "$rpmversion" == "package pcm is not installed" ]; then
echo "pcm package not installed"
exit 1
fi
# if we get here, it's OK