From 7879c955b9a8705576d975a9d1bbd280ca40ade8 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Thu, 15 Jun 2023 14:05:59 -0600 Subject: test: Add test infrastructure Add necessary CMake code to enable tests to be built and run. Most of the logic is taken from Vulkan-ValidationLayers' and adapted for use here. New build option: BUILD_TESTS - defaults to OFF. Controls whether to build tests. --- tests/icd/mock_icd_tests.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/icd/mock_icd_tests.cpp (limited to 'tests/icd/mock_icd_tests.cpp') diff --git a/tests/icd/mock_icd_tests.cpp b/tests/icd/mock_icd_tests.cpp new file mode 100644 index 00000000..18025dfa --- /dev/null +++ b/tests/icd/mock_icd_tests.cpp @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2023 The Khronos Group Inc. + * Copyright (c) 2023 Valve Corporation + * Copyright (c) 2023 LunarG, Inc. + * + * 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 "gtest/gtest.h" + +TEST(MockICD, Basic) { + // only to make sure tests can be run + ASSERT_TRUE(true); +} -- cgit v1.2.3