From b297893dd6f7443d8685108a503e2de7cd7fc66d Mon Sep 17 00:00:00 2001 From: wangshi Date: Wed, 30 Aug 2023 18:54:21 +0800 Subject: [PATCH] "add vulkan cases commit texture and ubo testcases for vulkan" Signed-off-by: wangshi --- .../vulkan/src/ubo/ActsUbo0001TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0001TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0002TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0002TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0003TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0003TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0004TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0004TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0005TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0005TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0006TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0006TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0007TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0007TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0008TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0008TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0009TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0009TestSuite.h | 24 ++++++ .../vulkan/src/ubo/ActsUbo0010TestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUbo0010TestSuite.h | 24 ++++++ graphic/vulkan/src/ubo/ActsUboTestSuite.cpp | 30 +++++++ graphic/vulkan/src/ubo/ActsUboTestSuite.h | 24 ++++++ graphic/vulkan/src/ubo/UboBaseFunc.cpp | 85 +++++++++++++++++++ graphic/vulkan/src/ubo/UboBaseFunc.h | 32 +++++++ 24 files changed, 711 insertions(+) create mode 100644 graphic/vulkan/src/ubo/ActsUbo0001TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0001TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0002TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0002TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0003TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0003TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0004TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0004TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0005TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0005TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0006TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0006TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0007TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0007TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0008TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0008TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0009TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0009TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUbo0010TestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUbo0010TestSuite.h create mode 100644 graphic/vulkan/src/ubo/ActsUboTestSuite.cpp create mode 100644 graphic/vulkan/src/ubo/ActsUboTestSuite.h create mode 100644 graphic/vulkan/src/ubo/UboBaseFunc.cpp create mode 100644 graphic/vulkan/src/ubo/UboBaseFunc.h diff --git a/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.cpp b/graphic/vulkan/src/ubo/ActsUbo0001TestSuite.cpp new file mode 100644 index 000000000..a9b73c178 --- /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 000000000..fb79f798d --- /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 000000000..d80127125 --- /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 000000000..1fcb156ee --- /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 000000000..134d12fd4 --- /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 000000000..cf54c9494 --- /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 000000000..476cba896 --- /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 000000000..63bc78e6c --- /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 000000000..fe0ca3399 --- /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 000000000..1bbc4b6e4 --- /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 000000000..4f4136943 --- /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 000000000..73281991d --- /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 000000000..2288e3c4b --- /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 000000000..29154f3e8 --- /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 000000000..f9e600f3d --- /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 000000000..52919b896 --- /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 000000000..2eb3b5961 --- /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 000000000..654b2bf68 --- /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 000000000..8182c7e7b --- /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 000000000..d359fbf00 --- /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 000000000..7df133dc4 --- /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 000000000..ede90a753 --- /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 000000000..55ee5f641 --- /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 000000000..82b27c946 --- /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 -- GitLab