-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add basic utility code testing for cpp, cpp11, and c (#461)
* add basic utility code testing for cpp, cpp11, and c * switch from building libraries to building executables for tests * try adding a specific GitHub action to build with tests * fix syntax for enabling tests * remove commented out line so hpp11 tests should fail now
- Loading branch information
Showing
5 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) 2016-2024 The Khronos Group Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and/or associated documentation files (the | ||
// "Materials"), to deal in the Materials without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Materials, and to | ||
// permit persons to whom the Materials are furnished to do so, subject to | ||
// the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included | ||
// in all copies or substantial portions of the Materials. | ||
// | ||
// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS | ||
// KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS | ||
// SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT | ||
// https://www.khronos.org/registry/ | ||
// | ||
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
|
||
#include <spirv/unified1/GLSL.std.450.h> | ||
#include <spirv/unified1/OpenCL.std.h> | ||
#include <spirv/unified1/spirv.h> | ||
|
||
const enum GLSLstd450 kSin = GLSLstd450Sin; | ||
const enum OpenCLstd_Entrypoints kNative_cos = OpenCLstd_Native_cos; | ||
const SpvOp kNop = SpvOpNop; | ||
|
||
int main() { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) 2016-2024 The Khronos Group Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and/or associated documentation files (the | ||
// "Materials"), to deal in the Materials without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Materials, and to | ||
// permit persons to whom the Materials are furnished to do so, subject to | ||
// the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included | ||
// in all copies or substantial portions of the Materials. | ||
// | ||
// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS | ||
// KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS | ||
// SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT | ||
// https://www.khronos.org/registry/ | ||
// | ||
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
|
||
#include <spirv/unified1/GLSL.std.450.h> | ||
#include <spirv/unified1/OpenCL.std.h> | ||
#include <spirv/unified1/spirv.hpp11> | ||
|
||
namespace { | ||
|
||
const GLSLstd450 kSin = GLSLstd450Sin; | ||
const OpenCLLIB::Entrypoints kNative_cos = OpenCLLIB::Native_cos; | ||
const spv::Op kNop = spv::Op::OpNop; | ||
|
||
} // anonymous namespace | ||
|
||
int main() { | ||
return 0; | ||
} |