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

  1. Install the systemd test environment (PUT GOOD INSTRUCTIONS HERE)
  2. Install the package to be tested

How to test

  1. 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
  2. Run the command ls -al /etc/systemd/system/*wants/*super*
  3. Reboot the system and repeat the above two tests

Expected Results

  1. The application should not be running after package installation or reboot, and in both cases the ls command should return no results