summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2018-10-30build: fix ninja on windowsJeremy Hayes2-0/+3
Use target_compile_options to avoid setting invalid compile options on asm targets. Change-Id: I5d95cfd77a2d515f41c7b8c2c9193f3aff906be7
2018-10-25repo: Remove MIR specific codeTony-LunarG2-32/+0
Note that references in scripts/common_codegen.py and scripts/loader_extension_generator.py will need to be removed later Change-Id: I7b17c80f7a06a339d7df0c199ff556212a7c6534
2018-09-20build: CMakeLists.txt cleanup, part 1Mike Weiblen2-67/+53
This is a first pass reorganization of CMake files in this repo. It consists primarily of dead code/variable removal, simplification, and reformatting by latest cmake-format. bump to cmake_minimum_required(3.4) for ccache simplify excessive use of generator expressions clarify why CMAKE_OSX_DEPLOYMENT_TARGET is pre-project(). clarify setting Windows install prefix if needed remove unused DisplayServer variable remove obsolete argument to endif() remove unneeded ccache property RULE_LAUNCH_LINK ccache doesn't affect linking, so the property is meaningless. remove unneeded CMAKE_VERBOSE_MAKEFILE hardcode. remove extra CMAKE_MODULE_PATH remove extra cmake_minimum_required change PYTHON_CMD to PYTHON_EXECUTABLE change CMAKE_SYSTEM_NAME to UNIX/APPLE/WIN32 Use consistent platform identification. Note that UNIX evaluates true for OSX, so whenever the code intends "Linux only", we use (UNIX AND NOT APPLE). remove unneeded TARGET_NAMES variable remove unneeded VK_LAYER_RPATH variable change 'ln -sf' to 'cmake -E create_symlink' reorder dependencies for clarity rearrange order of macro arguments rename run_vk_xml_generate to GenerateFromVkXml rename add_vk_layer to AddVkLayer Borrowing from the Google style guide, use camel-case to more easily identify locally-defined macros/functions. remove unneeded WRAP_SRCS variable remove unneeded TEST_SRCS variable move check of VulkanRegistry_FOUND move SCRIPTS_DIR closer to point of use move include(FindPkgConfig) earlier move CMAKE_MACOSX_RPATH earlier move option() eariler move GenerateFromVkXml invocations earlier Move invocations to be closer to the definition of the macro. Minor edits to comments. move API_NAME earlier remove unused BUILDTGT_DIR variable move add_executable() earlier combine if(WIN32) trees .cmake-format.py 0.4.1 reformat using cmake-format 0.4.1 Change-Id: Ia251e932dbc9a8f2655201bb12248dea8c940c30
2018-07-20repo: Use version from FindVulkanHeaders in buildLenny Komow1-1/+1
Change-Id: I565d2e49d965588404ad9ad4ce21f59b3a5abc00
2018-07-19repo: Rework test layers to use cmake generatorsLenny Komow10-136/+35
Change-Id: I6a09049619b7155e9f5331f0267d39f1edd42d38
2018-07-03tests: Remove validation error messages fileMark Lobodzinski2-11839/+0
This is unneeded for Loader and causes dependency issues.
2018-07-03tests: Update JSON files for 1.1.79 headerMark Lobodzinski10-78/+78
2018-06-30build: Beautify cmake filesMike Weiblen2-123/+94
Add .cmake-format.py Add cmake-format docs to CONTRIBUTING.md Minor edits to existing files Due to a bug in cmake-format, use this script to reformat: for i in CMakeLists.txt external/CMakeLists.txt loader/CMakeLists.txt tests/CMakeLists.txt tests/layers/CMakeLists.txt do sed --in-place='' 's/^ *#/#/' $i cmake-format --in-place $i done Change-Id: I8e59c77ae184c88485a97a015ac81d4f71ac4897
2018-06-27build: Insert copyright in cmake filesMike Weiblen2-0/+34
2018-06-26repo: Update json files from 1.1.77 to 1.1.78Mark Lobodzinski9-9/+9
2018-06-25build: Improve googletest handlingKarl Schultz1-123/+119
Behavior is largely unchanged except that specifying BUILD_TESTS=ON with googletest not present no longer quietly skips building the tests. - Make inclusion of external directory unconditional. We may someday put something there is not related to testing. - Make default for BUILD_TEST dependent on googletest presence. - Remove if() around entire contents of tests CMake file. - Add CMake messaging to clarify googletest activity. - Throw a CMake error if googletest not present and BUILD_TESTS=ON
2018-06-20header: Update MacOS json files for 1.1.77 headerJeremy Kniager2-2/+2
Change-Id: I7f04938632f42727b8b1edc15be8981c1f239649
2018-06-14cmake: Fixup FOLDER propertiesKarl Schultz2-3/+4
2018-06-14header: Update json files for 1.1.77 headerMark Lobodzinski9-9/+9
2018-06-13cmake: Move loader copy to test dirKarl Schultz1-1/+6
- Move the CMake code to copy the loader DLL from the loader target definition to the test target definition. The test should be taking responsibility for copying this DLL and it avoids doing the copy if BUILD_TESTS is on and gtest is not present. - Use better CMake code to perform the copy.
2018-06-06repo: Make tests not try to build without gtestLenny Komow1-111/+113
Change-Id: Idf3ed7bca713cb7ec1964513ac072344feaf17e6
2018-06-04repo: Remove google test submoduleLenny Komow2-14/+6
Change-Id: I25734926cdf267e565e0ab5878184a0955e435ee
2018-05-22docs: Add a short readme to tests directoryLenny Komow1-0/+14
2018-05-22tests: Add user env file for Visual StudioLenny Komow2-0/+38
Add a .user file so that Visual Studio will properly set VK_LAYER_PATH when running through the IDE.
2018-05-22tests: Make layer tests use layers from this repoLenny Komow6-13/+57
There are a couple of tests in the loader tests that test behavior when enabling layers. This changes them to use layers that are present in this repo, instead of validation layers.
2018-05-21repo: Allow BUILD_LOADER=OFF on WindowsLenny Komow1-1/+13
If the repo is built without the loader, cmake will now look for an SDK installation on Windows. On Linux, it will look in the standard system paths for a loader.
2018-05-21repo: Remove API_NAME from cmake filesLenny Komow1-8/+1
There used to be functionality to specify a name other than "Vulkan" for the files, which would allow side by side installations. This has proven to cause more trouble than it solves, so I'm removing it.
2018-05-21repo: Stop building dynamic and static loadersLenny Komow1-0/+3
Add a cmake variable to select weather you want a dynamic or a static loader, rather than building both every time. This avoids the redundancy of building everything twice.
2018-05-13repo: Reenable Linux install targetKarl Schultz1-1/+2
2018-05-13repo: Minor updates for repo splitKarl Schultz2-9/+17
Add cmake code to copy gtest libs to test binary dir for Windows.
2018-05-13repo: Fixup test code and scriptsKarl Schultz3-10/+3
2018-05-13repo: Remove dependencies on layers dirKarl Schultz12-10/+13685
2018-05-13repo: Make loader tests work on LinuxKarl Schultz4-137/+13
2018-05-13repo: Add googletest submoduleKarl Schultz1-0/+0
2018-05-10tests: Update tests to remove duplicate slashesLenny Komow1-1/+1
Change-Id: Ie09bfcd61c57024f4c7a0ff884001989fec2a565
2018-04-24header: Update to version 1.1.74 of Vulkan hdrMark Lobodzinski4-4/+4
- update layer json files - update vulkan_core.h - update vk.xml - update vulkan.hpp - update validusage.json - update vk_validation_error_messages.h - update vk_validation_error_database.txt - maintain local changes to reg.py Change-Id: If0c52d13f78ddfcc7c9d316386c0d20399e97668
2018-04-16header: Update to version 1.1.73 of the Vulkan hdrMark Lobodzinski4-4/+4
- update json files - update vk.xml - update vulkan_core.h - update validusage.json - update vk_validation_error_messages.h - update vk_validation_error_database.txt - update vulkan.hpp - removed checks for the following deprecated VUIDs related to ImageCreateInfo and FormatProperties: - VALIDATION_ERROR_09e007ae - VALIDATION_ERROR_09e007b4 - VALIDATION_ERROR_09e007ac - VALIDATION_ERROR_09e007a6 - VALIDATION_ERROR_09e007b2 - VALIDATION_ERROR_09e007a4 - VALIDATION_ERROR_09e007aa - VALIDATION_ERROR_09e007a8 - VALIDATION_ERROR_09e007a2 - VALIDATION_ERROR_09e007b0 - modified CreateImageFormatSupportErrors test to remove killed checks - modified ImageLayerUnsupportedFormat test to remove killed check Change-Id: I8f1577747d87fdeb6f68b9db0340443a83c44630
2018-04-06header: Update to version 1.1.72 of the Vulkan hdrMark Lobodzinski4-4/+4
- updated layer json files - updated vulkan_core.h - updated validusage.json - updated vk_validation_error_database.txt - updated vk_validation_error_messages.h - updated vuid_mapping.py - updated vk.xml - updated vulkan.hpp - moved vuid 1ae00652 to 1ae00f06 Change-Id: Id6ba342841cca04c0669b7feb39d82e2b8052443
2018-03-29tests: macOS CMake fixes for Xcode generatorMike Schuchardt1-6/+17
Put icd and test layer json files in $<CONFIG> directory when using Xcode generator so layer tests can be executed and debugged from within Xcode. Change-Id: I079a89ea065ddeec98ce95766e284220c67b1859
2018-03-28tests: Switch to submodule version of gtestMark Lobodzinski2-4/+10
Switch layer/loader tests over to use the submodule version of gtest instead of the version checked into the tree. Change-Id: I0d0bad7531ccf1de0248a48cea347471c99e179f
2018-03-28tests: Suppress gtest warningsMark Lobodzinski1-0/+9
Gtest generates GCC warnings for some signed/unsigned mismatches. Suppress this for the test output. Change-Id: Ifa3406610e980b81e091976a062cde6457a71377
2018-03-28tests: Resolve gtest/xlib conflictsMark Lobodzinski1-2/+17
Gtest and Xlib each redefine 'None' and 'Bool', which causes gtest compilation to fail hard. Temporarily clear the definitions to allow gtest to build using an Xlib display server. Change-Id: I75e53bbff9266a59ebf53a81c2e148e51de6b7c7
2018-03-27android: Start using gtest from NDKCody Northrop1-0/+5
2018-03-26header: Update to version 1.1.71 of the Vulkan hdrMark Lobodzinski4-4/+4
- updated vulkan_core.h - updated vulkan-android.h - updated vk.xml - updated validusage.json - updated layer json files - updated vulkan.hpp - updated vuid_mapping.py - marked 27 VUIDs as complete Change-Id: Ia5abee76e5346b3a1b769664033d91403946f7a9
2018-03-09header: 1.1.70 updateMike Schuchardt4-4/+4
Change-Id: Ifa07a957e3c0e51c9b5c00b6c9d7fff04905c8ab
2018-03-09layers: Update VUIDs for 1.1Mike Schuchardt1-1/+1
- Add new VUIDs to database and vuid_mapping.py - Remove deleted VUIDs from database - Update vuid_mapping.py to disregard KHR/KHX suffix - Update spec.py json comparison to update more fields from existing VUIDs and delete entries for removed VUIDs - Update layers and tests that were pointing to deleted VUIDs to use replacements - Revert vuid_mapping.py and run_all_tests.sh workarounds for undefined private VUIDs Change-Id: Ie6c5b01237d5917be66a35337e3dbaf42fea3b00
2018-03-09tests: Fix loader test capitalizationLenny Komow1-6/+6
2018-03-09scripts: Private repo VUID workaroundMike Schuchardt1-1/+1
Workarounds for private codegen and tests so they can run without having to update the VUID mapping or database Change-Id: Idf71df859f55888103f93f863fc73a0c7a01de2c
2018-03-09header: KHX->KHR name changesMark Lobodzinski1-40/+40
2018-03-02macOS: Add macOS supportKarl Schultz5-1/+61
2018-02-26layers: Fix dev-profile test layer dest locMark Lobodzinski1-3/+3
Destination for device-profile layer binaries was incorrect when repo built as a submodule. Change-Id: I5859465f5584e3a0c624a05b42baf9525fb112f3
2018-02-21header: Update to version 1.0.69 of the Vulkan hdrMark Lobodzinski4-4/+4
- updated vulkan.h - updated vk.xml - updated layer json files - updated vulkan.hpp - updated validation_error_database.txt - updated vk_validation_error_messages.h - updated vuid_mapping.py Note that the VU text in the database file contains artifacts from the registry/VUID toolchain. These will be addressed in a follow-on patch set. Change-Id: I6994ec17a6edcb6c9028c792c68863cd39f1fc56
2018-02-16tests: clang-format onlyDave Houlton2-7/+7
No code changes, just full clang-format. Change-Id: I096d1b5509897bd642545e3369ccd83ca2849441
2018-02-05cmake: Move LVL temp/worker targets into subfolderMark Lobodzinski2-1/+4
This sets up cmake to locate the temporary or worker MSVC projects into a subfolder called lvl_cmake_targets. This simply unclutters the Visual Studio Solution Explorer projects pane, and does not affect functionality. Change-Id: I6933d05758d6f174a4f66ceaef51d43627210e4f
2018-01-22cmake: Add PROJECT_BINARY_DIR to cmake filesMark Lobodzinski2-4/+6
Tests and test/layers CMakeLists.txt files were missing this include path variable. This prevents LVL from building when used as a submodule. Change-Id: I0746b9ef280ca0bdd75a0a539c5bdc78114a60ba