From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
#:<pre>$ rpm -q pm-test-day</pre> | #:<pre>$ rpm -q pm-test-day</pre> | ||
# Install the test script that will react to the AC / battery transitions: | # Install the test script that will react to the AC / battery transitions: | ||
#:<pre># ln -s /usr/bin/pmtd /etc/pm/power.d/</pre> | #:<pre># ln -s /usr/bin/pmtd-pm /etc/pm/power.d/</pre> | ||
|actions= | |actions= | ||
# Run on AC. | # Run on AC. | ||
# In terminal run: | # In terminal run: | ||
#:<pre># tail -f /tmp/pmtd.log</pre> | #:<pre># tail -f /tmp/pmtd-pm.log</pre> | ||
# Disconnect AC and run only on battery. | # Disconnect AC and run only on battery. | ||
# Wait several seconds. | # Wait several seconds. | ||
Line 19: | Line 19: | ||
|results= | |results= | ||
# System properly reacts to AC / battery change. | # System properly reacts to AC / battery change. | ||
# "BATTERY" is written to /tmp/pmtd.log (and displayed in terminal, if you run the tail -f /tmp/pmtd.log) when switched to battery. | # "BATTERY" is written to /tmp/pmtd-pm.log (and displayed in terminal, if you run the tail -f /tmp/pmtd-pm.log) when switched to battery. | ||
# "AC LINE" is written to /tmp/pmtd.log (and displayed in terminal, if you run the tail -f /tmp/pmtd.log) when switched to AC. | # "AC LINE" is written to /tmp/pmtd-pm.log (and displayed in terminal, if you run the tail -f /tmp/pmtd-pm.log) when switched to AC. | ||
}} | }} | ||
[[Category:Power_Management_Test_Cases]] | [[Category:Power_Management_Test_Cases]] |
Revision as of 17:01, 3 April 2012
Description
This test case tests the pm-powersave command (pm-utils package) and the AC / battery detection (upower package).
Setup
- Check that you have pm-test-day package installed:
$ rpm -q pm-test-day
- Install the test script that will react to the AC / battery transitions:
# ln -s /usr/bin/pmtd-pm /etc/pm/power.d/
How to test
- Run on AC.
- In terminal run:
# tail -f /tmp/pmtd-pm.log
- Disconnect AC and run only on battery.
- Wait several seconds.
- Re-connect AC.
Expected Results
- System properly reacts to AC / battery change.
- "BATTERY" is written to /tmp/pmtd-pm.log (and displayed in terminal, if you run the tail -f /tmp/pmtd-pm.log) when switched to battery.
- "AC LINE" is written to /tmp/pmtd-pm.log (and displayed in terminal, if you run the tail -f /tmp/pmtd-pm.log) when switched to AC.