diff --git a/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..a9b73c1789ef51f6407b1b1cdb46511a7143b15e --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0001TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0001TS::startTime; + time_t ActsUbo0001TS::endTime; + FuncRunResult ActsUbo0001TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..fb79f798d2e0e9ef589870c494b28290396ca066 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.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 UBO0001_TESTCASE_H +#define UBO0001_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" +#include "testsuitehead.h" +SHRINK_SUITETEST_HEAD(ActsUbo0001TS) + +#endif // UBO0001_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0002TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0002TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..d8012712537ac783b6e8847b05a1930b2da4df7b --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0002TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0002TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0002TS::startTime; + time_t ActsUbo0002TS::endTime; + FuncRunResult ActsUbo0002TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0002TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0002TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..1fcb156ee64b3886a1aa472201bc6b1384b77b20 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0002TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0002TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0003TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0003TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..134d12fd4f7a2cbd6ee117fd45211aa79aea4ddc --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0003TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0003TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0003TS::startTime; + time_t ActsUbo0003TS::endTime; + FuncRunResult ActsUbo0003TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0003TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0003TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..cf54c9494e76a9cfc3c9b01734cec2b3987d11b0 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0003TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0003TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0004TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0004TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..476cba896da13fc562256af930a85c0551b3b0b2 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0004TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0004TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0004TS::startTime; + time_t ActsUbo0004TS::endTime; + FuncRunResult ActsUbo0004TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0004TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0004TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..63bc78e6cd2b8f26c000ad162c0ac6240968e0af --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0004TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0004TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0005TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0005TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fe0ca3399ad2d6c9cb8d226ebbf55c905b74477a --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0005TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0005TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0005TS::startTime; + time_t ActsUbo0005TS::endTime; + FuncRunResult ActsUbo0005TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0005TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0005TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..1bbc4b6e475a30b0d5f5eea267b5d2629da5b88d --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0005TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0005TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0006TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0006TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4f4136943914a5e3e982145d3af9effd11dc684f --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0006TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0006TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0006TS::startTime; + time_t ActsUbo0006TS::endTime; + FuncRunResult ActsUbo0006TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0006TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0006TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..73281991d23c2b9e4c061c23edc8876c4ea73d99 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0006TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0006TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0007TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0007TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2288e3c4bfc6cd468eec20ba4265b51bb7ba0451 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0007TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0007TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0007TS::startTime; + time_t ActsUbo0007TS::endTime; + FuncRunResult ActsUbo0007TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0007TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0007TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..29154f3e8ac4dea6c015d9bc2c82db403682defe --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0007TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0007TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0008TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0008TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f9e600f3d9cc52199f311de9207024523c0badac --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0008TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0008TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0008TS::startTime; + time_t ActsUbo0008TS::endTime; + FuncRunResult ActsUbo0008TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0008TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0008TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..52919b8962726dee3ad6befee25b731b3e401563 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0008TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0008TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0009TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0009TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..2eb3b59610941fbbbda3062f502705d5df2fd47d --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0009TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0009TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0009TS::startTime; + time_t ActsUbo0009TS::endTime; + FuncRunResult ActsUbo0009TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0009TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0009TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..654b2bf68c741e9dfe88c626693e3b7c3327e5f1 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0009TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0009TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0010TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0010TestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..8182c7e7b3c93a7f8089c314219f8a0e4750c5d8 --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0010TestSuite.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 "UboBaseFunc.h" +#include "ActsUbo0010TestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUbo0010TS::startTime; + time_t ActsUbo0010TS::endTime; + FuncRunResult ActsUbo0010TS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUbo0010TestSuite.h b/graphic/vulkan/src/ubo/ActsUbo0010TestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..d359fbf0066a2f21a42883681a73cb2c042727ca --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUbo0010TestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUbo0010TS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUboTestSuite.cpp b/graphic/vulkan/src/ubo/ActsUboTestSuite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..7df133dc4437f41c5208ffe58c8464d33f8ab84b --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUboTestSuite.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 "UboBaseFunc.h" +#include "ActsUboTestSuite.h" + +namespace OHOS { + using namespace std; + using namespace testing::ext; + + time_t ActsUboTS::startTime; + time_t ActsUboTS::endTime; + FuncRunResult ActsUboTS::runResult; + +} \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/ActsUboTestSuite.h b/graphic/vulkan/src/ubo/ActsUboTestSuite.h new file mode 100644 index 0000000000000000000000000000000000000000..ede90a753ae1913b82aa1f3c99e29b6a314ea47a --- /dev/null +++ b/graphic/vulkan/src/ubo/ActsUboTestSuite.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 UBO_TESTCASE_H +#define UBO_TESTCASE_H + +#include "UboBaseFunc.h" +#include "testsuitehead.h" + +SHRINK_SUITETEST_HEAD(ActsUboTS) + +#endif // UBO_TESTCASE_H \ No newline at end of file diff --git a/graphic/vulkan/src/ubo/UboBaseFunc.cpp b/graphic/vulkan/src/ubo/UboBaseFunc.cpp new file mode 100644 index 0000000000000000000000000000000000000000..55ee5f641d6e6968561f0b2c3ffb5b4f46de9382 --- /dev/null +++ b/graphic/vulkan/src/ubo/UboBaseFunc.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 "UboBaseFunc.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/ubo/UboBaseFunc.h b/graphic/vulkan/src/ubo/UboBaseFunc.h new file mode 100644 index 0000000000000000000000000000000000000000..82b27c9465f09be20f6b42ca8b65de4839406d60 --- /dev/null +++ b/graphic/vulkan/src/ubo/UboBaseFunc.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 UBO_FUNC_H +#define UBO_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 // UBO_FUNC_H \ No newline at end of file