Added cpp test

This commit is contained in:
Alejandro Saucedo 2021-03-20 08:52:07 +00:00
parent a6457ee1ec
commit b7aa097b29

View file

@ -66,6 +66,14 @@ TEST(TestManager, TestMultipleSequences)
TEST(TestManager, TestDeviceProperties)
{
kp::Manager mgr;
const auto properties = mgr.getDeviceProperties();
const vk::PhysicalDeviceProperties properties = mgr.getDeviceProperties();
EXPECT_GT(properties.deviceName.size(), 0);
}
TEST(TestManager, TestListDevices)
{
kp::Manager mgr;
const std::vector<vk::PhysicalDevice> devices = mgr.listDevices();
EXPECT_GT(devices.size(), 0);
EXPECT_GT(devices[0].getProperties().deviceName.size(), 0);
}