3 FIPS_TEST_DIR=/home/cworth/src/fips/test
5 if [ ! -d ${FIPS_TEST_DIR} ] ; then
6 echo "Failed to find fips test suite at: ${FIPS_TEST_DIR}"
7 echo "Please download fips and update this script to point to its test directory."
20 if ${FIPS_TEST_DIR}/${script} | grep -q "^glfps"; then
24 errors=$((errors + 1))
28 echo "Testing glfps with programs using different window-system interfaces to"
29 echo "OpenGL, different linking mechanisms, and different symbol-lookup."
32 export LD_PRELOAD=./libglfps.so
34 printf " Window sys. Link-mode Lookup\n"
35 printf " ----------- ------------- -----------------\n"
37 printf "Testing GLX link to libGL direct calls ... "
40 printf "Testing GLX link to libGL glXGetProcAddress ... "
43 printf "Testing GLX link to libGL glXGetProcAddressARB ... "
46 printf "Testing GLX dlopen(libGL) dlsym ... "
49 printf "Testing GLX dlopen(libGL) glXGetProcAddress ... "
52 printf "Testing GLX dlopen(libGL) glXGetProcAddressARB ... "
57 if [ $errors -gt 0 ]; then
58 echo "Error: $errors/$tests tests failed."
61 echo "All $tests tests passed."