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
- Ensure you have a Fedora system.
- Install the
apr
and its utilities using the package manager:sudo dnf install apr apr-util
. - Optionally, install the Apache HTTP server:
sudo dnf install httpd
for additional verification.
How to test
- Open a terminal.
- Run the command
apr-1-config --version
to check the version of the installedapr
. - Observe the returned version number.
- Run the command
apr-1-config --libs
to check the libraries linked withapr
. - Observe the returned libraries.
- If the Apache HTTP server is installed, start it with:
sudo systemctl start httpd
. - Check the status to ensure it's running without errors:
sudo systemctl status httpd
. - If any custom applications or scripts utilize the
apr
library, execute or run them to ensure proper operation.
Expected Results
- The
apr-1-config --version
command should return the installed version ofapr
without errors. - The
apr-1-config --libs
command should display the libraries linked withapr
. - If the Apache HTTP server is installed and started, it should run without errors indicating issues with the
apr
. - Custom applications or scripts utilizing
apr
should execute without issues related to the library.
Optional
For additional testing depth:
- Check for the availability of development tools and headers using:
apr-1-config --includes
. - Use Apache's benchmarking tool (
ab
) to stress-test an Apache server and observe its behavior, checking for stability and performance issues. - Monitor system logs (
/var/log/httpd/
or system journal) for any errors related toapr
while performing intensive operations on the Apache server.