5d014dfcde
Related: #1961047
18 lines
487 B
Bash
Executable File
18 lines
487 B
Bash
Executable File
#!/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}' thermald)
|
|
version=$(thermald --version)
|
|
if [ "$version" != "$rpmversion" ]; then
|
|
echo "reported thermald version (${version}) does not match rpm version (${rpmversion})"
|
|
exit 1
|
|
fi
|
|
|
|
# if we get here, it's OK
|
|
|