From Fedora Project Wiki
(create example test case) |
(fix a pipe) |
||
Line 5: | Line 5: | ||
# Install the package to be tested | # Install the package to be tested | ||
|actions= | |actions= | ||
# Check whether the application is running: for example, {{command|ps aux | grep httpd}} would check if Apache was running. Refer to the service file to find the executable name | # Check whether the application is running: for example, {{command|ps aux <nowiki>|</nowiki> grep httpd}} would check if Apache was running. Refer to the service file to find the executable name | ||
# Run the command {{command|ls -al /etc/systemd/system/*wants/*super*}} | # Run the command {{command|ls -al /etc/systemd/system/*wants/*super*}} | ||
# Reboot the system and repeat the above two tests | # Reboot the system and repeat the above two tests |
Latest revision as of 20:03, 23 March 2011
Description
This test case tests whether a package with a systemd service definition installs with it disabled by default.
Setup
- Install the systemd test environment (PUT GOOD INSTRUCTIONS HERE)
- Install the package to be tested
How to test
- Check whether the application is running: for example,
ps aux | grep httpd
would check if Apache was running. Refer to the service file to find the executable name - Run the command
ls -al /etc/systemd/system/*wants/*super*
- Reboot the system and repeat the above two tests
Expected Results
- The application should not be running after package installation or reboot, and in both cases the ls command should return no results