42589ec4c5
This adds build infrastructure for unit testing the API library using the serial test harness. TODO: this should be replaced with the parallel test harness, as the automake documentation says the serial harness is deprecated. The first and last tests to be run are scripts to initialize the test environment (an X session with a special -modulepath argument and xorg.conf file to pick up x11glvnd) and tear it down after all unit tests are run. This also adds a placeholder directory for a fake vendor library called "GLX_dummy", to be implemented later.
17 lines
203 B
Bash
Executable file
17 lines
203 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -n "$SKIP_ENV_INIT" ]; then
|
|
echo "Test environment cleanup skipped"
|
|
exit 77
|
|
fi
|
|
|
|
echo "Cleaning up test environment"
|
|
|
|
XORG_PID=$(cat xorg.pid)
|
|
|
|
kill $XORG_PID
|
|
|
|
rm xorg.pid
|
|
|
|
exit 0
|