Revision 1363
made the test framework a bit more clear (or maybe more confusing?)
trunk/code/projects/test/main.c | ||
---|---|---|
1 |
extern int testusb(); |
|
2 |
extern int testlcd(); |
|
3 |
extern int testrangefinders(); |
|
4 |
extern int testanalog(); |
|
5 |
extern int testtokenring(); |
|
6 |
extern int testmotors(); |
|
7 | 1 |
|
2 |
#define RUN_TEST(f) extern int f(void); f(); |
|
3 |
|
|
8 | 4 |
int main(void) { |
9 |
testusb(); |
|
10 |
//testlcd(); |
|
11 |
//testrangefinders(); |
|
12 |
//testanalog(); |
|
13 |
//testtokenring(); |
|
14 |
//testencoders(); |
|
15 |
//testlights(); |
|
16 |
//testmotors(); |
|
17 |
|
|
18 |
return 0; |
|
19 |
} |
|
20 | 5 |
|
6 |
while(1) { |
|
21 | 7 |
|
8 |
RUN_TEST(testanalog); |
|
9 |
// RUN_TEST(testeeprom); |
|
10 |
RUN_TEST(testencoders); |
|
11 |
// RUN_TEST(testlcd); |
|
12 |
RUN_TEST(testlights); |
|
13 |
RUN_TEST(testmotors); |
|
14 |
RUN_TEST(testrangefinders); |
|
15 |
RUN_TEST(testtokenring); |
|
16 |
RUN_TEST(testusb); |
|
17 |
|
|
18 |
} |
|
19 |
|
|
20 |
return 0; |
|
21 |
} |
Also available in: Unified diff