Merge remote-tracking branch 'upstream/edge' into upstream-master
[clinton/Smoothieware.git] / src / testframework / Test_main.cpp
1 #include <vector>
2 #include <string>
3 #include <iostream>
4
5 #include "utils.h"
6 #include "SerialConsole.h"
7 #include "gpio.h"
8
9 GPIO leds[5] = {
10 GPIO(P1_18),
11 GPIO(P1_19),
12 GPIO(P1_20),
13 GPIO(P1_21),
14 GPIO(P4_28)
15 };
16
17 #include "easyunit/testharness.h"
18 #include "easyunit/test.h"
19
20 int main( )
21 {
22 Kernel* kernel = new Kernel();
23
24 printf("Starting tests...\n");
25
26 TestRegistry::runAndPrint();
27
28 kernel->serial->printf("Done\n");
29
30 // drop back into DFU upload
31 kernel->serial->printf("Entering DFU flash mode...\n");
32 system_reset(true);
33
34 for(;;) {}
35 }