/* * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include "../Khrgles3BaseFunc.h" #include "../ActsKhrgles30001TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000948, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000948 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.comm" "ents.multiline_comment_define_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000948 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000948 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000949, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000949 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.comme" "nts.multiline_comment_define_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000949 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000949 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000950, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000950 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor" ".comments.nested_comment_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000950 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000950 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000951, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000951 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor." "comments.nested_comment_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000951 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000951 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000952, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000952 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor." "comments.invalid_comment_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000952 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000952 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000953, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000953 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.c" "omments.invalid_comment_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000953 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000953 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000954, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000954 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.com" "ments.unterminated_comment_1_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000954 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000954 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000955, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000955 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.comm" "ents.unterminated_comment_1_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000955 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000955 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000956, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000956 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.com" "ments.unterminated_comment_2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000956 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000956 end"; } static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000957, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000957 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "KHR-GLES3.shaders.preprocessor.comm" "ents.unterminated_comment_2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed; ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed; ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings; ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000957 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000957 end"; }