Changeset 593:27aeec049e81
- Timestamp:
- 06/09/08 17:25:03 (7 months ago)
- Author:
- Maxime Petazzoni <maxime.petazzoni@…>
- Children:
- 594:bafb8ec18224, 596:5605b642989b
- Branch:
- default
- Message:
-
FS tests framework
- Location:
- nxos/systems/tests
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r558
|
r593
|
|
| | 1 | /* Copyright (c) 2007,2008 the NxOS developers |
| | 2 | * |
| | 3 | * See AUTHORS for a full list of the developers. |
| | 4 | * |
| | 5 | * Redistribution of this file is permitted under |
| | 6 | * the terms of the GNU Public License (GPL) version 2. |
| | 7 | */ |
| | 8 | |
| 1 | 9 | #include "base/core.h" |
| 2 | 10 | #include "base/drivers/systick.h" |
| … |
… |
|
| 23 | 31 | //tests_usb_hardcore(); |
| 24 | 32 | //tests_radar(); |
| 25 | | tests_util(); |
| | 33 | //tests_util(); |
| | 34 | tests_defrag(); |
| 26 | 35 | } |
-
|
r558
|
r593
|
|
| | 1 | /* Copyright (c) 2007,2008 the NxOS developers |
| | 2 | * |
| | 3 | * See AUTHORS for a full list of the developers. |
| | 4 | * |
| | 5 | * Redistribution of this file is permitted under |
| | 6 | * the terms of the GNU Public License (GPL) version 2. |
| | 7 | */ |
| | 8 | |
| 1 | 9 | /* Various test routines for components of the NXT. */ |
| 2 | 10 | |
| … |
… |
|
| 20 | 28 | |
| 21 | 29 | #include "tests/tests.h" |
| | 30 | #include "tests/fs.h" |
| 22 | 31 | |
| 23 | 32 | static bool test_silent = FALSE; |
| 24 | 33 | |
| 25 | | static void hello(void) { |
| | 34 | void hello(void) { |
| 26 | 35 | if (test_silent) |
| 27 | 36 | return; |
| … |
… |
|
| 32 | 41 | } |
| 33 | 42 | |
| 34 | | static void goodbye(void) { |
| | 43 | void goodbye(void) { |
| 35 | 44 | if (test_silent) |
| 36 | 45 | return; |
| … |
… |
|
| 848 | 857 | } |
| 849 | 858 | |
| | 859 | void tests_fs(void) { |
| | 860 | hello(); |
| | 861 | fs_test_infos(); |
| | 862 | goodbye(); |
| | 863 | } |
| | 864 | |
| | 865 | void tests_defrag(void) { |
| | 866 | hello(); |
| | 867 | fs_test_defrag_simple(); |
| | 868 | goodbye(); |
| | 869 | } |
| | 870 | |
| 850 | 871 | void tests_all(void) { |
| 851 | 872 | test_silent = TRUE; |
| … |
… |
|
| 859 | 880 | tests_sysinfo(); |
| 860 | 881 | tests_radar(); |
| | 882 | tests_fs(); |
| 861 | 883 | |
| 862 | 884 | test_silent = FALSE; |
-
|
r556
|
r593
|
|
| 1 | | #ifndef __NXOS_TESTS_H__ |
| 2 | | #define __NXOS_TESTS_H__ |
| | 1 | /* Copyright (c) 2007,2008 the NxOS developers |
| | 2 | * |
| | 3 | * See AUTHORS for a full list of the developers. |
| | 4 | * |
| | 5 | * Redistribution of this file is permitted under |
| | 6 | * the terms of the GNU Public License (GPL) version 2. |
| | 7 | */ |
| | 8 | |
| | 9 | #ifndef __NXOS_TESTS_TESTS_H__ |
| | 10 | #define __NXOS_TESTS_TESTS_H__ |
| | 11 | |
| | 12 | void hello(void); |
| | 13 | void goodbye(void); |
| 3 | 14 | |
| 4 | 15 | void tests_util(void); |
| … |
… |
|
| 14 | 25 | void tests_bt(void); |
| 15 | 26 | void tests_bt2(void); |
| | 27 | void tests_fs(void); |
| | 28 | void tests_defrag(void); |
| 16 | 29 | |
| 17 | 30 | void tests_all(void); |
| 18 | 31 | |
| 19 | | #endif |
| | 32 | #endif /* __NXOS_TESTS_TESTS_H__ */ |