mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Migrate conversions suite to the new test registration framework (#2322)
Contributes to #2181. Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
@@ -92,8 +92,7 @@ char appName[64] = "ctest";
|
|||||||
int gMultithread = 1;
|
int gMultithread = 1;
|
||||||
|
|
||||||
|
|
||||||
int test_conversions(cl_device_id device, cl_context context,
|
REGISTER_TEST(conversions)
|
||||||
cl_command_queue queue, int num_elements)
|
|
||||||
{
|
{
|
||||||
if (argCount)
|
if (argCount)
|
||||||
{
|
{
|
||||||
@@ -108,13 +107,6 @@ int test_conversions(cl_device_id device, cl_context context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
test_definition test_list[] = {
|
|
||||||
ADD_TEST(conversions),
|
|
||||||
};
|
|
||||||
|
|
||||||
const int test_num = ARRAY_SIZE(test_list);
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, const char **argv)
|
int main(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
@@ -148,8 +140,9 @@ int main(int argc, const char **argv)
|
|||||||
gMTdata = init_genrand(gRandomSeed);
|
gMTdata = init_genrand(gRandomSeed);
|
||||||
|
|
||||||
const char *arg[] = { argv[0] };
|
const char *arg[] = { argv[0] };
|
||||||
int ret =
|
int ret = runTestHarnessWithCheck(
|
||||||
runTestHarnessWithCheck(1, arg, test_num, test_list, true, 0, InitCL);
|
1, arg, test_registry::getInstance().num_tests(),
|
||||||
|
test_registry::getInstance().definitions(), true, 0, InitCL);
|
||||||
|
|
||||||
free_mtdata(gMTdata);
|
free_mtdata(gMTdata);
|
||||||
if (gQueue)
|
if (gQueue)
|
||||||
|
|||||||
Reference in New Issue
Block a user