14 if ./fips -v "${dir}/${script}" | grep -q "fips: terminating"; then
18 errors=$((errors + 1))
22 echo "Testing fips with programs using different window-system interfaces to"
23 echo "OpenGL, different linking mechanisms, and different symbol-lookup."
26 printf " Window sys. Link-mode Lookup\n"
27 printf " ----------- ------------- -----------------\n"
29 printf "Testing GLX link to libGL direct calls ... "
32 printf "Testing GLX link to libGL glXGetProcAddress ... "
35 printf "Testing GLX link to libGL glXGetProcAddressARB ... "
38 printf "Testing GLX dlopen(libGL) dlsym ... "
41 printf "Testing GLX dlopen(libGL) glXGetProcAddress ... "
44 printf "Testing GLX dlopen(libGL) glXGetProcAddressARB ... "
47 printf "Testing EGL/OpenGL link to libGL direct calls ... "
48 test egl-opengl-link-call
50 printf "Testing EGL/OpenGL link to libGL eglGetProcAddress ... "
51 test egl-opengl-link-gpa
53 printf "Testing EGL/OpenGL dlopen(libGL) dlsym ... "
54 test egl-opengl-dlopen-dlsym
56 printf "Testing EGL/OpenGL dlopen(libGL) eglGetProcAddress ... "
57 test egl-opengl-dlopen-gpa
59 printf "Testing EGL/GLESv2 link libGLESv2 direct calls ... "
60 test egl-glesv2-link-call
62 printf "Testing EGL/GLESv2 link libGLESv2 eglGetProcAddress ... "
63 test egl-glesv2-link-gpa
65 printf "Testing EGL/GLESv2 dlopen(GLESv2) dlsym ... "
66 test egl-glesv2-dlopen-dlsym
68 printf "Testing EGL/GLESv2 dlopen(GLESv2) eglGetProcAddress ... "
69 test egl-glesv2-dlopen-gpa
73 if [ $errors -gt 0 ]; then
74 echo "Error: $errors/$tests tests failed."
77 echo "All $tests tests passed."