Mario Limonciello
462b91de55
tests: Split immutable control into a test helper
2024-01-15 06:17:42 +00:00
Mario Limonciello
1669b29661
Update whitespace in integration tests to be consistent
2024-01-06 10:07:48 -06:00
Prajna Sariputra
ea0e2be53c
tests: Add tests for the AMD P-state driver
2023-04-26 14:23:18 +02:00
Bastien Nocera
1116e54128
platform-profile: "cool" should be balanced
...
The "cool" profile isn't a low-power mode, but a mode where the fans are
always running to reduce the temperature, presumably to allow it to run
faster.
At the same time, we need to handle the lack of low-power profile on HP
machines as they only had a cool mode and no low-power mode.
Closes : #89
2023-02-08 16:06:48 +01:00
Bastien Nocera
cbdac3da5b
tests: Add tests for checking for profile existence
2022-09-08 11:44:19 +02:00
Bastien Nocera
58d556e85b
tests: Add test for energy_perf_bias support
2022-06-28 15:50:27 +02:00
Bastien Nocera
4aa9922e2a
tests: Fix typo
2022-06-28 14:17:47 +02:00
Bastien Nocera
53d9f55edd
tests: Fix error running tests with Python 3.11
...
In 664448d81f
the "errors" attribute was removed from the _Outcome object. Adapt the
code to print the daemon log after a failed run().
2022-06-24 13:21:03 +02:00
Bastien Nocera
d72a30cff6
tests: Indent a hunk of code correctly
2022-06-24 10:24:36 +02:00
Bastien Nocera
afed35451d
tests: Add test case for Intel P-State in passive mode
2022-05-02 14:47:22 +02:00
Bastien Nocera
23103bca59
intel-pstate: Don't change scaling_governor if P-State isn't active
...
On systems without HWP support, or when the Intel P-State driver runs in
"passive" mode, the CPU is effectively controlled by cpufreq governors.
Only modify the cpufreq scaling_governor if the Intel P-State driver is in
active mode.
See https://www.kernel.org/doc/html/v5.17/admin-guide/pm/intel_pstate.html#operation-modes
Closes : #91
2022-05-02 14:42:37 +02:00
Bastien Nocera
5260fae7cf
tests: Test with a non-default scaling_governor
...
Check that the daemon is resetting the value on startup, and add
scaling_governor sysfs files for all the intel-pstate tests.
2022-04-28 15:25:52 +02:00
Bastien Nocera
588fe2cc08
tests: Add tests for error reporting when profile can't be set
2022-04-28 14:42:35 +02:00
Bastien Nocera
4bf9871b6f
ci: Skip tests when dependencies are missing
2022-04-28 13:54:14 +02:00
Bastien Nocera
1be33091a4
tests: Add tests for both trickle-charge changes
2022-02-12 23:13:06 +01:00
Bastien Nocera
ca79f80635
intel-pstate: Don't show degraded perf with CPUs with no turbo
...
Don't show a degraded performance, caused by "no_turbo" being set,
when the CPU doesn't support TurboBoost at all.
Closes : #75
2022-01-31 10:50:47 +01:00
Bastien Nocera
c63503be97
tests: Add test to detect CPUs without Turbo support
...
Reproduces the hardware mentioned in
https://gitlab.freedesktop.org/hadess/power-profiles-daemon/-/issues/75
2022-01-31 10:50:47 +01:00
Bastien Nocera
ae8e90892b
tests: Write tests for traceback avoidance on D-Bus errors
2021-11-08 16:27:56 +01:00
Bastien Nocera
393cb81aa8
tests: Add test for HoldProfile when not authorised
2021-10-28 11:19:11 +02:00
Bastien Nocera
141d2ee64f
tests: Rename test_not_allowed()
...
It only tests for the ActiveProfile authorisation.
2021-10-28 11:19:11 +02:00
Bastien Nocera
2a25f7d4cd
tests: Test when switch-profile permission isn't granted
2021-09-28 17:19:40 +02:00
Bastien Nocera
bb92c628b4
tests: Start mock polkitd in the tests
...
And allow all us to perform all the actions.
2021-09-28 12:57:44 +02:00
Bastien Nocera
e9f5b04258
tests: Rename integration test script
...
Add the python suffix.
2021-09-07 23:00:12 +02:00