mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
adding test
This commit is contained in:
2
.github/workflows/linux-build.yml
vendored
2
.github/workflows/linux-build.yml
vendored
@@ -95,7 +95,7 @@ jobs:
|
|||||||
run: xmake --yes
|
run: xmake --yes
|
||||||
|
|
||||||
# Test the engine
|
# Test the engine
|
||||||
- name: Build Pulse
|
- name: Test Vulkan
|
||||||
run: |
|
run: |
|
||||||
xmake config --vulkan-tests=y --yes
|
xmake config --vulkan-tests=y --yes
|
||||||
xmake build --yes VulkanUnitTests
|
xmake build --yes VulkanUnitTests
|
||||||
|
|||||||
2
.github/workflows/msys2-build.yml
vendored
2
.github/workflows/msys2-build.yml
vendored
@@ -91,7 +91,7 @@ jobs:
|
|||||||
run: xmake --yes
|
run: xmake --yes
|
||||||
|
|
||||||
# Test the engine
|
# Test the engine
|
||||||
- name: Build Pulse
|
- name: Test Vulkan
|
||||||
run: |
|
run: |
|
||||||
xmake config --vulkan-tests=y --yes
|
xmake config --vulkan-tests=y --yes
|
||||||
xmake build --yes VulkanUnitTests
|
xmake build --yes VulkanUnitTests
|
||||||
|
|||||||
2
.github/workflows/windows-build.yml
vendored
2
.github/workflows/windows-build.yml
vendored
@@ -86,7 +86,7 @@ jobs:
|
|||||||
run: xmake --yes
|
run: xmake --yes
|
||||||
|
|
||||||
# Test the engine
|
# Test the engine
|
||||||
- name: Build Pulse
|
- name: Test Vulkan
|
||||||
run: |
|
run: |
|
||||||
xmake config --vulkan-tests=y --yes
|
xmake config --vulkan-tests=y --yes
|
||||||
xmake build --yes VulkanUnitTests
|
xmake build --yes VulkanUnitTests
|
||||||
|
|||||||
@@ -9,6 +9,15 @@ void DumbDebugCallBack(PulseDebugMessageSeverity severity, const char* message)
|
|||||||
(void)message;
|
(void)message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TestVulkanSupport()
|
||||||
|
{
|
||||||
|
if(!PulseSupportsBackend(PULSE_BACKEND_VULKAN, PULSE_SHADER_FORMAT_SPIRV_BIT))
|
||||||
|
{
|
||||||
|
TEST_FAIL_MESSAGE("Vulkan is not supported");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TestBackendSetup()
|
void TestBackendSetup()
|
||||||
{
|
{
|
||||||
PulseBackend backend = PulseLoadBackend(PULSE_BACKEND_VULKAN, PULSE_SHADER_FORMAT_SPIRV_BIT, PULSE_HIGH_DEBUG);
|
PulseBackend backend = PulseLoadBackend(PULSE_BACKEND_VULKAN, PULSE_SHADER_FORMAT_SPIRV_BIT, PULSE_HIGH_DEBUG);
|
||||||
@@ -36,6 +45,7 @@ void TestWrongBackendSetup()
|
|||||||
|
|
||||||
void TestBackend()
|
void TestBackend()
|
||||||
{
|
{
|
||||||
|
RUN_TEST(TestVulkanSupport);
|
||||||
RUN_TEST(TestBackendSetup);
|
RUN_TEST(TestBackendSetup);
|
||||||
RUN_TEST(TestBackendAnySetup);
|
RUN_TEST(TestBackendAnySetup);
|
||||||
RUN_TEST(TestWrongBackendSetup);
|
RUN_TEST(TestWrongBackendSetup);
|
||||||
|
|||||||
Reference in New Issue
Block a user