SWDEV-411064 - check if image is supported before running image specific tests

Change-Id: I62b3f7489f2f33b4b4e02f42a46e66c8940f2277
This commit is contained in:
Jatin Chaudhary
2023-07-25 17:04:13 +01:00
committed by Jatin Jaikishan Chaudhary
parent b6b43db172
commit ee3c94faf2
52 changed files with 524 additions and 76 deletions
@@ -416,6 +416,8 @@ static void seekAndSet3DArrayPortion(bool bAsync) {
* taking zero and non-zero fields.
*/
TEST_CASE("Unit_hipMemset3D_MemsetWithExtent") {
CHECK_IMAGE_SUPPORT
hipExtent testExtent;
size_t numH = NUMH_EXT, numW = NUMW_EXT, depth = DEPTH_EXT;
@@ -450,6 +452,8 @@ TEST_CASE("Unit_hipMemset3D_MemsetWithExtent") {
* taking zero and non-zero fields.
*/
TEST_CASE("Unit_hipMemset3DAsync_MemsetWithExtent") {
CHECK_IMAGE_SUPPORT
hipExtent testExtent;
size_t numH = NUMH_EXT, numW = NUMW_EXT, depth = DEPTH_EXT;
@@ -482,6 +486,8 @@ TEST_CASE("Unit_hipMemset3DAsync_MemsetWithExtent") {
* Memset3D with max unsigned char and verify memset operation is success
*/
TEST_CASE("Unit_hipMemset3D_MemsetMaxValue") {
CHECK_IMAGE_SUPPORT
testMemsetMaxValue(0);
}
@@ -489,6 +495,8 @@ TEST_CASE("Unit_hipMemset3D_MemsetMaxValue") {
* Memset3DAsync with max unsigned char and verify memset operation is success
*/
TEST_CASE("Unit_hipMemset3DAsync_MemsetMaxValue") {
CHECK_IMAGE_SUPPORT
testMemsetMaxValue(1);
}
@@ -496,6 +504,8 @@ TEST_CASE("Unit_hipMemset3DAsync_MemsetMaxValue") {
* Seek and set random slice of 3d array, verify memset is success
*/
TEST_CASE("Unit_hipMemset3D_SeekSetSlice") {
CHECK_IMAGE_SUPPORT
seekAndSet3DArraySlice(0);
}
@@ -503,6 +513,8 @@ TEST_CASE("Unit_hipMemset3D_SeekSetSlice") {
* Seek and set random slice of 3d array with async, verify memset is success
*/
TEST_CASE("Unit_hipMemset3DAsync_SeekSetSlice") {
CHECK_IMAGE_SUPPORT
seekAndSet3DArraySlice(1);
}
@@ -510,6 +522,8 @@ TEST_CASE("Unit_hipMemset3DAsync_SeekSetSlice") {
* Memset3D selected portion of 3d array
*/
TEST_CASE("Unit_hipMemset3D_SeekSetArrayPortion") {
CHECK_IMAGE_SUPPORT
seekAndSet3DArrayPortion(0);
}
@@ -517,5 +531,7 @@ TEST_CASE("Unit_hipMemset3D_SeekSetArrayPortion") {
* Memset3DAsync selected portion of 3d array
*/
TEST_CASE("Unit_hipMemset3DAsync_SeekSetArrayPortion") {
CHECK_IMAGE_SUPPORT
seekAndSet3DArrayPortion(1);
}