Commit 11aa39bc authored by Spoorthi K's avatar Spoorthi K Committed by Anas Nashif
Browse files

tests: POSIX: Refactor POSIX API tests



Refactor and club the POSIX API tests into one test suite.

Signed-off-by: default avatarSpoorthi K <spoorthi.k@intel.com>
parent 0fed8b92
Loading
Loading
Loading
Loading

tests/posix/clock/prj.conf

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
CONFIG_ZTEST=y
CONFIG_POSIX_API=y

tests/posix/clock/testcase.yaml

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
tests:
  portability.posix:
    tags: posix
+8 −0
Original line number Diff line number Diff line
CONFIG_POSIX_API=y
CONFIG_PTHREAD_IPC=y
CONFIG_MAIN_THREAD_PRIORITY=2
CONFIG_POSIX_API=y
CONFIG_MAX_PTHREAD_COUNT=20
CONFIG_ZTEST=y
CONFIG_SEM_VALUE_MAX=32767
CONFIG_POSIX_MQUEUE=y
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_TEST_EXTRA_STACKSIZE=256
+0 −9
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <ztest.h>
#include <posix/time.h>
#include <posix/unistd.h>
@@ -102,11 +101,3 @@ void test_posix_realtime(void)

	printk("POSIX clock set APIs test done\n");
}

void test_main(void)
{
	ztest_test_suite(test_posix_clock_api,
			ztest_unit_test(test_posix_clock),
			ztest_unit_test(test_posix_realtime));
	ztest_run_test_suite(test_posix_clock_api);
}
Loading