From 06ca9aa3ed5c707eec1637c8be5c4a2671b7d8be Mon Sep 17 00:00:00 2001 From: wangshi Date: Wed, 30 Aug 2023 19:08:18 +0800 Subject: [PATCH] "add vulkan cases commit texture and ubo testcases for vulkan" Signed-off-by: wangshi --- .../src/texture/ActsTexture0001TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0001TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0002TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0002TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0003TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0003TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0004TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0004TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0005TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0005TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0006TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0006TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0007TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0007TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0008TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0008TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0009TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0009TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0010TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0010TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0011TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0011TestSuite.h | 24 ++++++ .../src/texture/ActsTexture0012TestSuite.cpp | 30 +++++++ .../src/texture/ActsTexture0012TestSuite.h | 24 ++++++ .../src/texture/ActsTextureTestSuite.cpp | 30 +++++++ .../vulkan/src/texture/ActsTextureTestSuite.h | 24 ++++++ .../vulkan/src/texture/TextureBaseFunc.cpp | 85 +++++++++++++++++++ graphic/vulkan/src/texture/TextureBaseFunc.h | 32 +++++++ 28 files changed, 819 insertions(+) create mode 100644 graphic/vulkan/src/texture/ActsTexture0001TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0001TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0002TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0002TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0003TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0003TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0004TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0004TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0005TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0005TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0006TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0006TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0007TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0007TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0008TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0008TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0009TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0009TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0010TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0010TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0011TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0011TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTexture0012TestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTexture0012TestSuite.h create mode 100644 graphic/vulkan/src/texture/ActsTextureTestSuite.cpp create mode 100644 graphic/vulkan/src/texture/ActsTextureTestSuite.h create mode 100644 graphic/vulkan/src/texture/TextureBaseFunc.cpp create mode 100644 graphic/vulkan/src/texture/TextureBaseFunc.h diff --git a/graphic/vulkan/src/texture/ActsTexture0001TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0001TestSuite.cpp new file mode 100644 index 000000000..997554459 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0001TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0001TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0001TS::startTime; + time_t ActsTexture0001TS::endTime; + FuncRunResult ActsTexture0001TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0001TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0001TestSuite.h new file mode 100644 index 000000000..65fd0648c --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0001TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE0001_TESTCASE_H +#define TEXTURE0001_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0001TS) + +#endif // TEXTURE0001_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0002TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0002TestSuite.cpp new file mode 100644 index 000000000..2a62e56f6 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0002TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0002TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0002TS::startTime; + time_t ActsTexture0002TS::endTime; + FuncRunResult ActsTexture0002TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0002TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0002TestSuite.h new file mode 100644 index 000000000..acc8357c0 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0002TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0002TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0003TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0003TestSuite.cpp new file mode 100644 index 000000000..771d09b2f --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0003TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0003TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0003TS::startTime; + time_t ActsTexture0003TS::endTime; + FuncRunResult ActsTexture0003TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0003TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0003TestSuite.h new file mode 100644 index 000000000..dab7fc6a5 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0003TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0003TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0004TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0004TestSuite.cpp new file mode 100644 index 000000000..d28318730 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0004TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0004TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0004TS::startTime; + time_t ActsTexture0004TS::endTime; + FuncRunResult ActsTexture0004TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0004TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0004TestSuite.h new file mode 100644 index 000000000..b9c637bb5 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0004TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0004TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0005TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0005TestSuite.cpp new file mode 100644 index 000000000..bbb3b99a1 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0005TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0005TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0005TS::startTime; + time_t ActsTexture0005TS::endTime; + FuncRunResult ActsTexture0005TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0005TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0005TestSuite.h new file mode 100644 index 000000000..709a27052 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0005TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0005TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0006TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0006TestSuite.cpp new file mode 100644 index 000000000..5c474facf --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0006TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0006TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0006TS::startTime; + time_t ActsTexture0006TS::endTime; + FuncRunResult ActsTexture0006TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0006TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0006TestSuite.h new file mode 100644 index 000000000..b334b920c --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0006TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0006TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0007TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0007TestSuite.cpp new file mode 100644 index 000000000..f6f967fa9 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0007TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0007TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0007TS::startTime; + time_t ActsTexture0007TS::endTime; + FuncRunResult ActsTexture0007TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0007TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0007TestSuite.h new file mode 100644 index 000000000..ba41873bf --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0007TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0007TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0008TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0008TestSuite.cpp new file mode 100644 index 000000000..a1041e27d --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0008TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0008TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0008TS::startTime; + time_t ActsTexture0008TS::endTime; + FuncRunResult ActsTexture0008TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0008TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0008TestSuite.h new file mode 100644 index 000000000..5050508cb --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0008TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0008TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0009TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0009TestSuite.cpp new file mode 100644 index 000000000..a4f84ec2d --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0009TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0009TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0009TS::startTime; + time_t ActsTexture0009TS::endTime; + FuncRunResult ActsTexture0009TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0009TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0009TestSuite.h new file mode 100644 index 000000000..9c1437899 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0009TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0009TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0010TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0010TestSuite.cpp new file mode 100644 index 000000000..189de57ac --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0010TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0010TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0010TS::startTime; + time_t ActsTexture0010TS::endTime; + FuncRunResult ActsTexture0010TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0010TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0010TestSuite.h new file mode 100644 index 000000000..7e54e2f2e --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0010TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0010TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0011TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0011TestSuite.cpp new file mode 100644 index 000000000..61f18732c --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0011TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0011TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0011TS::startTime; + time_t ActsTexture0011TS::endTime; + FuncRunResult ActsTexture0011TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0011TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0011TestSuite.h new file mode 100644 index 000000000..897774e7f --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0011TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0011TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0012TestSuite.cpp b/graphic/vulkan/src/texture/ActsTexture0012TestSuite.cpp new file mode 100644 index 000000000..28c8a24f8 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0012TestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTexture0012TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTexture0012TS::startTime; + time_t ActsTexture0012TS::endTime; + FuncRunResult ActsTexture0012TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTexture0012TestSuite.h b/graphic/vulkan/src/texture/ActsTexture0012TestSuite.h new file mode 100644 index 000000000..3390ac14f --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTexture0012TestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTexture0012TS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTextureTestSuite.cpp b/graphic/vulkan/src/texture/ActsTextureTestSuite.cpp new file mode 100644 index 000000000..aedbe3031 --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTextureTestSuite.cpp @@ -0,0 +1,30 @@ +/* + * 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 +#include +#include "TextureBaseFunc.h" +#include "ActsTextureTestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsTextureTS::startTime; + time_t ActsTextureTS::endTime; + FuncRunResult ActsTextureTS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/ActsTextureTestSuite.h b/graphic/vulkan/src/texture/ActsTextureTestSuite.h new file mode 100644 index 000000000..dae7f207a --- /dev/null +++ b/graphic/vulkan/src/texture/ActsTextureTestSuite.h @@ -0,0 +1,24 @@ +/* + * 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. + */ + +#ifndef TEXTURE_TESTCASE_H +#define TEXTURE_TESTCASE_H + +#include "TextureBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsTextureTS) + +#endif // TEXTURE_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/texture/TextureBaseFunc.cpp b/graphic/vulkan/src/texture/TextureBaseFunc.cpp new file mode 100644 index 000000000..4e737d421 --- /dev/null +++ b/graphic/vulkan/src/texture/TextureBaseFunc.cpp @@ -0,0 +1,85 @@ +/* + * 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 + +#include "tcuDefs.hpp" +#include "tcuCommandLine.hpp" +#include "tcuPlatform.hpp" +// #include "ActsApp.h" +#include "tcuApp.hpp" +#include "tcuResource.hpp" +#include "tcuTestLog.hpp" +#include "tcuTestSessionExecutor.hpp" +#include "deUniquePtr.hpp" +#include "tcuOhosPlatform.hpp" + +#include "external/vulkancts/modules/vulkan/vktTestPackage.hpp" + +#include "logdefine.h" +#include "TextureBaseFunc.h" + + +static tcu::TestPackage* createTestPackage (tcu::TestContext& testCtx) +{ + return new vkt::TestPackage(testCtx); +} + +static tcu::TestPackage* createExperimentalTestPackage (tcu::TestContext& testCtx) +{ + return new vkt::ExperimentalTestPackage(testCtx); +} + +// tcu::TestPackageDescriptor g_vktPackageDescriptor("dEQP-VK", createTestPackage); +// tcu::TestPackageDescriptor g_vktExperimentalPackageDescriptor("dEQP-VK-experimental", createExperimentalTestPackage); + +void RegistPackage(void) +{ + tcu::TestPackageRegistry *registry = tcu::TestPackageRegistry::getSingleton(); + registry->registerPackage("dEQP-VK", createTestPackage); + registry->registerPackage("dEQP-VK-experimental", createExperimentalTestPackage); +} + + +// extern tcu::TestLog tcutestlog; +FuncRunResult RunTestKHRGLES(int argc, const char** argv) +{ + FuncRunResult runResult; + try { + tcu::CommandLine cmdLine(argc, argv); + std::cout << "testmain end argc"<< argc << ";" << argv[0] << ";" << argv[1] << ";" << argv[2] << std::endl; + tcu::DirArchive archive(cmdLine.getArchiveDir()); + + de::UniquePtr platform(createOhosPlatform()); + de::UniquePtr app(new tcu::App(*platform, archive, OHOS::Logdefine::tcutestlog, cmdLine)); + + for (;;) { + if (!app->iterate()) { + break; + }; + }; + runResult.isComplete = app->getResult().isComplete; + runResult.numPassed = app->getResult().numPassed; + runResult.numExecuted = app->getResult().numExecuted; + runResult.numFailed = app->getResult().numFailed; + runResult.numNotSupported = app->getResult().numNotSupported; + runResult.numWarnings = app->getResult().numWarnings; + runResult.numWaived = app->getResult().numWaived; + } catch (const std::exception &e) { + tcu::die("%s", e.what()); + }; + return runResult; +} \ No newline at end of file diff --git a/graphic/vulkan/src/texture/TextureBaseFunc.h b/graphic/vulkan/src/texture/TextureBaseFunc.h new file mode 100644 index 000000000..18596984c --- /dev/null +++ b/graphic/vulkan/src/texture/TextureBaseFunc.h @@ -0,0 +1,32 @@ +/* + * 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. + */ + +#ifndef TEXTURE_FUNC_H +#define TEXTURE_FUNC_H + +struct FuncRunResult { + int numExecuted; // !< Total number of cases executed. + int numPassed; // !< Number of cases passed. + int numFailed; // !< Number of cases failed. + int numNotSupported; // !< Number of cases not supported. + int numWarnings; // !< Number of QualityWarning / CompatibilityWarning results. + int numWaived; // !< Number of waived tests. + bool isComplete; // !< Is run complete. +}; + +void RegistPackage(void); +FuncRunResult RunTestKHRGLES(int argc, const char** argv); + +#endif // TEXTURE_FUNC_H \ No newline at end of file -- GitLab