]> git.cworth.org Git - fips/blobdiff - test/Makefile.local
test: Add 4 tests using EGL and OpenGLESv2
[fips] / test / Makefile.local
index 6274e4f0be288a70513fed39797b79e3d5a2eb8a..c1314155d804bbb97cd9f0dfbe84f490d9960087 100644 (file)
@@ -17,6 +17,10 @@ test_programs += $(dir)/egl-opengl-link-call
 test_programs += $(dir)/egl-opengl-link-gpa
 test_programs += $(dir)/egl-opengl-dlopen-dlsym
 test_programs += $(dir)/egl-opengl-dlopen-gpa
+test_programs += $(dir)/egl-glesv2-link-call
+test_programs += $(dir)/egl-glesv2-link-gpa
+test_programs += $(dir)/egl-glesv2-dlopen-dlsym
+test_programs += $(dir)/egl-glesv2-dlopen-gpa
 endif
 
 glx_link_call_srcs = \
@@ -109,6 +113,42 @@ egl_opengl_dlopen_gpa_modules = $(egl_opengl_dlopen_gpa_srcs:.c=.o)
 $(dir)/egl-opengl-dlopen-gpa: $(egl_opengl_dlopen_gpa_modules)
        $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
 
+egl_glesv2_link_call_srcs = \
+       $(dir)/egl-glesv2-link-call.c \
+       $(dir)/util-x11.c
+
+egl_glesv2_link_call_modules = $(egl_glesv2_link_call_srcs:.c=.o)
+
+$(dir)/egl-glesv2-link-call: $(egl_glesv2_link_call_modules)
+       $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GLESV2_LDFLAGS) $(X11_LDFLAGS) -o $@
+
+egl_glesv2_link_gpa_srcs = \
+       $(dir)/egl-glesv2-link-gpa.c \
+       $(dir)/util-x11.c
+
+egl_glesv2_link_gpa_modules = $(egl_glesv2_link_gpa_srcs:.c=.o)
+
+$(dir)/egl-glesv2-link-gpa: $(egl_glesv2_link_gpa_modules)
+       $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ $(EGL_LDFLAGS) $(GLESV2_LDFLAGS) $(X11_LDFLAGS) -o $@
+
+egl_glesv2_dlopen_dlsym_srcs = \
+       $(dir)/egl-glesv2-dlopen-dlsym.c \
+       $(dir)/util-x11.c
+
+egl_glesv2_dlopen_dlsym_modules = $(egl_glesv2_dlopen_dlsym_srcs:.c=.o)
+
+$(dir)/egl-glesv2-dlopen-dlsym: $(egl_glesv2_dlopen_dlsym_modules)
+       $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
+
+egl_glesv2_dlopen_gpa_srcs = \
+       $(dir)/egl-glesv2-dlopen-gpa.c \
+       $(dir)/util-x11.c
+
+egl_glesv2_dlopen_gpa_modules = $(egl_glesv2_dlopen_gpa_srcs:.c=.o)
+
+$(dir)/egl-glesv2-dlopen-gpa: $(egl_glesv2_dlopen_gpa_modules)
+       $(call quiet,$(FIPS_LINKER) $(CFLAGS)) $^ -ldl $(X11_LDFLAGS) -o $@
+
 test: all $(test_programs)
        @${dir}/fips-test
 
@@ -123,7 +163,11 @@ SRCS := $(SRCS) \
        $(egl_opengl_link_call_srcs) \
        $(egl_opengl_link_gpa_srcs) \
        $(egl_opengl_dlopen_dlsym_srcs) \
-       $(egl_opengl_dlopen_gpa_srcs)
+       $(egl_opengl_dlopen_gpa_srcs) \
+       $(egl_glesv2_link_call_srcs) \
+       $(egl_glesv2_link_gpa_srcs) \
+       $(egl_glesv2_dlopen_dlsym_srcs) \
+       $(egl_glesv2_dlopen_gpa_srcs)
 
 CLEAN += $(test_programs) \
        $(glx_link_call_modules) \
@@ -134,4 +178,8 @@ CLEAN += $(test_programs) \
        $(egl_opengl_link_call_modules) \
        $(egl_opengl_link_gpa_modules) \
        $(egl_opengl_dlopen_dlsym_modules) \
-       $(egl_opengl_dlopen_dlsym_modules)
+       $(egl_opengl_dlopen_dlsym_modules) \
+       $(egl_glesv2_link_call_modules) \
+       $(egl_glesv2_link_gpa_modules) \
+       $(egl_glesv2_dlopen_dlsym_modules) \
+       $(egl_glesv2_dlopen_dlsym_modules)