From 0f57c4a09b75a5b00658d0784478bb2e120d42c1 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 17 Dec 2008 15:56:46 +0000 Subject: [PATCH] Add first skell of signal test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2062 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/signal_test.c | 88 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 bertos/kern/signal_test.c diff --git a/bertos/kern/signal_test.c b/bertos/kern/signal_test.c new file mode 100644 index 00000000..f76c8586 --- /dev/null +++ b/bertos/kern/signal_test.c @@ -0,0 +1,88 @@ +/** + * \file + * + * + * \brief Signals test. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#include +#include +#include + +#include +#include +#include + +#include + + +/* + * These macro generate the code that needed to create the + * test process function and all it needed. + */ +#define PROC_TEST(num) static void proc_test##num(void) \ +{ \ + for (int i = 0; i < INC_PROC_T##num; ++i) \ + { \ + } \ +} \ + +#define PROC_TEST_STACK(num) static cpu_stack_t proc_test##num##_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; +#define PROC_TEST_INIT(num) proc_new(proc_test##num, NULL, sizeof(proc_test##num##_stack), proc_test##num##_stack); + +/** + * Run signal test + */ +int signal_testRun(void) +{ + kprintf("Run Signal test..\n"); + return 0; +} + +int signal_testSetup(void) +{ + kdbg_init(); + + kprintf("Init Singal..\n"); + return 0; +} + +int signal_testTearDown(void) +{ + kputs("TearDown Signal test.\n"); + return 0; +} + +TEST_MAIN(signal); \ No newline at end of file -- 2.25.1