Migrate relationals suite to the new test registration framework (#2312)

Contributes to #2181.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2025-03-09 09:49:24 +00:00
committed by GitHub
parent 6eb1aa1d0a
commit aed6c3a214
6 changed files with 39 additions and 124 deletions

View File

@@ -926,33 +926,32 @@ int test_shuffle_random(cl_device_id device, cl_context context, cl_command_queu
return totalError;
}
int test_shuffle_copy(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems)
REGISTER_TEST(shuffle_copy)
{
RandomSeed seed(gRandomSeed);
return test_shuffle_random( device, context, queue, kNormalMode, seed );
}
int test_shuffle_function_call(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems)
REGISTER_TEST(shuffle_function_call)
{
RandomSeed seed(gRandomSeed);
return test_shuffle_random( device, context, queue, kFunctionCallMode, seed );
}
int test_shuffle_array_cast(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems)
REGISTER_TEST(shuffle_array_cast)
{
RandomSeed seed(gRandomSeed);
return test_shuffle_random( device, context, queue, kArrayAccessMode, seed );
}
int test_shuffle_built_in(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems)
REGISTER_TEST(shuffle_built_in)
{
RandomSeed seed(gRandomSeed);
return test_shuffle_random( device, context, queue, kBuiltInFnMode, seed );
}
int test_shuffle_built_in_dual_input(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems)
REGISTER_TEST(shuffle_built_in_dual_input)
{
RandomSeed seed(gRandomSeed);
return test_shuffle_random( device, context, queue, kBuiltInDualInputFnMode, seed );
}