tests: drivers: i2s: Combined merged the test files into main

Since main was only registering the Test Suite, it made since
to combine the actual tests into one file instead of having
an empty file to initialize the test.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
This commit is contained in:
Emilio Benavente 2023-01-05 09:54:13 -06:00 committed by Fabio Baltieri
commit 9b1b68657c
2 changed files with 6 additions and 16 deletions

View file

@ -1,14 +0,0 @@
/*
* Copyright (c) 2017 comsuisse AG
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/ztest.h>
extern void *test_i2s_speed_configure(void);
extern void *test_i2s_speed_rxtx_configure(void);
ZTEST_SUITE(drivers_i2s_speed, NULL, test_i2s_speed_configure, NULL, NULL, NULL);
ZTEST_SUITE(drivers_i2s_speed_both_rxtx, NULL, test_i2s_speed_rxtx_configure, NULL, NULL, NULL);

View file

@ -496,7 +496,7 @@ ZTEST(drivers_i2s_speed_both_rxtx, test_i2s_dir_both_transfer_long)
zassert_equal(num_verified, NUM_BLOCKS, "Invalid RX blocks received");
}
void *test_i2s_speed_configure(void)
static void *test_i2s_speed_configure(void)
{
/* Configure I2S TX transfer. */
int ret;
@ -519,7 +519,7 @@ void *test_i2s_speed_configure(void)
return 0;
}
void *test_i2s_speed_rxtx_configure(void)
static void *test_i2s_speed_rxtx_configure(void)
{
int ret;
@ -545,3 +545,7 @@ void *test_i2s_speed_rxtx_configure(void)
return 0;
}
ZTEST_SUITE(drivers_i2s_speed, NULL, test_i2s_speed_configure, NULL, NULL, NULL);
ZTEST_SUITE(drivers_i2s_speed_both_rxtx, NULL, test_i2s_speed_rxtx_configure, NULL, NULL, NULL);