From Fedora Project Wiki

Description

The Apache Portable Runtime (apr) is a supporting library for the Apache HTTP server and provides a set of APIs that map to underlying operating system calls. This test case ensures that the apr library correctly provides its core functionalities and maps appropriately to underlying system calls.

Setup

  1. Ensure you have a Fedora system.
  2. Install the apr and its utilities using the package manager: sudo dnf install apr apr-util.
  3. Optionally, install the Apache HTTP server: sudo dnf install httpd for additional verification.

How to test

  1. Open a terminal.
  2. Run the command apr-1-config --version to check the version of the installed apr.
  3. Observe the returned version number.
  4. Run the command apr-1-config --libs to check the libraries linked with apr.
  5. Observe the returned libraries.
  6. If the Apache HTTP server is installed, start it with: sudo systemctl start httpd.
  7. Check the status to ensure it's running without errors: sudo systemctl status httpd.
  8. If any custom applications or scripts utilize the apr library, execute or run them to ensure proper operation.

Expected Results

  1. The apr-1-config --version command should return the installed version of apr without errors.
  2. The apr-1-config --libs command should display the libraries linked with apr.
  3. If the Apache HTTP server is installed and started, it should run without errors indicating issues with the apr.
  4. Custom applications or scripts utilizing apr should execute without issues related to the library.

Optional

For additional testing depth:

  1. Check for the availability of development tools and headers using: apr-1-config --includes.
  2. Use Apache's benchmarking tool (ab) to stress-test an Apache server and observe its behavior, checking for stability and performance issues.
  3. Monitor system logs (/var/log/httpd/ or system journal) for any errors related to apr while performing intensive operations on the Apache server.