re-import sources as agreed with the maintainer
This commit is contained in:
parent
f0e4dba30a
commit
f39cfd870a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/pcm-202211.tar.gz
|
||||
/pcm-202107.tar.gz
|
||||
/pcm-202211.tar.gz
|
||||
|
12
tests/run_tests.sh
Executable file
12
tests/run_tests.sh
Executable 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
9
tests/tests.yml
Normal 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
16
tests/version.sh
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user