Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2008 Travis Geiselbrecht |
| 3 | * |
| 4 | * Permission is hereby granted, free of charge, to any person obtaining |
| 5 | * a copy of this software and associated documentation files |
| 6 | * (the "Software"), to deal in the Software without restriction, |
| 7 | * including without limitation the rights to use, copy, modify, merge, |
| 8 | * publish, distribute, sublicense, and/or sell copies of the Software, |
| 9 | * and to permit persons to whom the Software is furnished to do so, |
| 10 | * subject to the following conditions: |
| 11 | * |
| 12 | * The above copyright notice and this permission notice shall be |
| 13 | * included in all copies or substantial portions of the Software. |
| 14 | * |
| 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 18 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 19 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 20 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 21 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 22 | */ |
Travis Geiselbrecht | 3f14b66 | 2009-01-24 21:21:54 -0800 | [diff] [blame] | 23 | #include <app.h> |
| 24 | #include <debug.h> |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 25 | #include <app/tests.h> |
| 26 | #include <compiler.h> |
| 27 | |
Travis Geiselbrecht | 39deded | 2009-01-24 20:12:27 -0800 | [diff] [blame] | 28 | #if defined(WITH_LIB_CONSOLE) |
| 29 | #include <lib/console.h> |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 30 | |
| 31 | STATIC_COMMAND_START |
Ajay Dudani | ca0b6a2 | 2011-05-18 19:48:32 -0700 | [diff] [blame] | 32 | STATIC_COMMAND("printf_tests", NULL, (console_cmd)&printf_tests) |
| 33 | STATIC_COMMAND("thread_tests", NULL, (console_cmd)&thread_tests) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 34 | STATIC_COMMAND_END(tests); |
| 35 | |
| 36 | #endif |
| 37 | |
Travis Geiselbrecht | 668383c | 2009-01-24 21:44:52 -0800 | [diff] [blame] | 38 | static void tests_init(const struct app_descriptor *app) |
Travis Geiselbrecht | 1d0df69 | 2008-09-01 02:26:09 -0700 | [diff] [blame] | 39 | { |
| 40 | } |
| 41 | |
Travis Geiselbrecht | 3f14b66 | 2009-01-24 21:21:54 -0800 | [diff] [blame] | 42 | APP_START(tests) |
Travis Geiselbrecht | 668383c | 2009-01-24 21:44:52 -0800 | [diff] [blame] | 43 | .init = tests_init, |
| 44 | .flags = 0, |
Travis Geiselbrecht | 3f14b66 | 2009-01-24 21:21:54 -0800 | [diff] [blame] | 45 | APP_END |
| 46 | |