1 /*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Use of this source code is governed by a MIT-style
5 * license that can be found in the LICENSE file or at
6 * https://opensource.org/licenses/MIT
7 */
8 #include <app.h>
9 #include <lk/debug.h>
10 #include <app/tests.h>
11 #include <lk/compiler.h>
12
13 #include <lk/console_cmd.h>
14
15 STATIC_COMMAND_START
16 STATIC_COMMAND("printf_tests", "test printf", &printf_tests)
17 STATIC_COMMAND("printf_tests_float", "test printf with floating point", &printf_tests_float)
18 STATIC_COMMAND("thread_tests", "test the scheduler", &thread_tests)
19 STATIC_COMMAND("port_tests", "test the ports", &port_tests)
20 STATIC_COMMAND("clock_tests", "test clocks", &clock_tests)
21 STATIC_COMMAND("bench", "miscellaneous benchmarks", &benchmarks)
22 STATIC_COMMAND("fibo", "threaded fibonacci", &fibo)
23 STATIC_COMMAND("spinner", "create a spinning thread", &spinner)
24 STATIC_COMMAND("cbuf_tests", "test lib/cbuf", &cbuf_tests)
25 STATIC_COMMAND_END(tests);
26
tests_init(const struct app_descriptor * app)27 static void tests_init(const struct app_descriptor *app) {
28 }
29
30 APP_START(tests)
31 .init = tests_init,
32 .flags = 0,
33 APP_END
34
35