Commit 78f2e4b8 by Ancheng Qiao Committed by Commit Bot

Add gles1 covegl test compile

Covegl test is hard to suit gtest, so just compile it without gtest (angle_gles1_covegl_no_gtest), we can get the test result by exit code. Bug: angleproject:2303 Change-Id: I67a930c91f23c02e72022329c712a0749e4a903c Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2126587 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent fa03eb9d
...@@ -400,7 +400,10 @@ if (build_angle_gles1_conform_tests) { ...@@ -400,7 +400,10 @@ if (build_angle_gles1_conform_tests) {
defines = [ defines = [
"COMMON", "COMMON",
"CONFORM_ALTERNATE_MAIN", "CONFORM_ALTERNATE_MAIN",
"NULLWS",
# NULLWS defines is only used in covegl/native.h, remove here.
# if needed please add it in angle_test("angle_gles1_covegl_no_gtest") defines.
#"NULLWS",
] ]
# This is used by the tests to typedef uint32_t. For some reason only needed on mac. # This is used by the tests to typedef uint32_t. For some reason only needed on mac.
...@@ -757,6 +760,80 @@ if (build_angle_gles1_conform_tests) { ...@@ -757,6 +760,80 @@ if (build_angle_gles1_conform_tests) {
"${angle_root}:angle_backend_config", "${angle_root}:angle_backend_config",
] ]
} }
source_set("angle_gles1_covegl_no_gtest_source") {
configs += [
":angle_gles1_conform_support",
"$angle_root:internal_config",
]
public_configs = [
"$angle_root/util:angle_util_config",
"$angle_root:angle_static",
"$angle_root:gl_prototypes",
]
testonly = true
public_deps = [
"$angle_root:angle_common",
"$angle_root:libEGL_static",
"$angle_root:libGLESv1_CM_static",
"$angle_root:libGLESv2_static",
"$angle_root:preprocessor",
"$angle_root:translator",
"$angle_root/util:angle_util_static",
]
sources = [
"$gles1_conform_root/conform/covegl/enum.c",
"$gles1_conform_root/conform/covegl/native.h",
"$gles1_conform_root/conform/covegl/test.c",
]
sources += angle_gles1_conform_common_source
if (!is_win && !is_linux) {
defines = [ "NULLWS" ]
}
}
angle_test("angle_gles1_covegl_no_gtest") {
deps = [ ":angle_gles1_covegl_no_gtest_source" ]
include_dirs = [ "$gles1_conform_root" ]
sources = [ "$gles1_conform_root/conform/covegl/shell.c" ]
if (is_win) {
sources += [ "$gles1_conform_root/conform/covegl/native_w32.c" ]
} else if (is_linux) {
sources += [ "$gles1_conform_root/conform/covegl/native.c" ]
} else {
sources += [ "$gles1_conform_root/conform/covegl/native_nws.c" ]
defines += [ "NULLWS" ]
}
configs += [
"${angle_root}:libANGLE_config",
"${angle_root}:angle_backend_config",
]
defines += [ "COMMON" ]
if (is_win) {
if (is_clang) {
cflags = [ "-Wno-incompatible-pointer-types" ]
} else {
cflags = [ "/wd4133" ] # 'function': incompatible types
}
suppressed_configs += [
"//build/config/win:lean_and_mean",
"//build/config/win:nominmax",
"//build/config/win:unicode",
]
}
}
} }
###----------------------------------------------------- ###-----------------------------------------------------
...@@ -1274,6 +1351,7 @@ group("angle_tests") { ...@@ -1274,6 +1351,7 @@ group("angle_tests") {
if (build_angle_gles1_conform_tests) { if (build_angle_gles1_conform_tests) {
deps += [ deps += [
":angle_gles1_conformance_tests", ":angle_gles1_conformance_tests",
":angle_gles1_covegl_no_gtest",
":angle_gles1_primtest_tests", ":angle_gles1_primtest_tests",
] ]
if (!is_win && !is_mac) { if (!is_win && !is_mac) {
......
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#include "common/angleutils.h" #include "common/angleutils.h"
#include "util/Timer.h" #include "util/Timer.h"
// DeleteFile is defined in the Windows headers to either DeleteFileA or DeleteFileW. Make sure
// there are no conflicts.
#undef DeleteFile
namespace angle namespace angle
{ {
// Cross platform equivalent of the Windows Sleep function // Cross platform equivalent of the Windows Sleep function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment