summaryrefslogtreecommitdiff
path: root/cesar/host/test/src/test_host.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/host/test/src/test_host.c')
-rw-r--r--cesar/host/test/src/test_host.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/cesar/host/test/src/test_host.c b/cesar/host/test/src/test_host.c
new file mode 100644
index 0000000000..a2b315f526
--- /dev/null
+++ b/cesar/host/test/src/test_host.c
@@ -0,0 +1,59 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2007 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file test_host.c
+ * \brief Test the fulminata host station
+ * \ingroup test
+ */
+#include "common/std.h"
+#include <stdint.h>
+
+#include "lib/test.h"
+
+#include <stdint.h> // for uint8_t, uint16_t and uint32_t types
+
+char dump_buffer[4096];
+uint32_t maximus_pending_isrs;
+
+void fcall_param_test_suite (test_t t);
+
+void fcall_test_suite (test_t t);
+
+void probe_test_suite (test_t t);
+
+void netclock_test_suite (test_t t);
+
+void phy_all_test_suite (test_t t);
+
+void sci_msg_test_suite (test_t t);
+
+void sci_test_suite (test_t t);
+
+void station_test_suite (test_t t);
+
+void system_test_suite (test_t t);
+
+int
+main (int argc, char **argv)
+{
+ test_t t;
+ test_init(t, argc, argv);
+
+ sci_msg_test_suite(t);
+ sci_test_suite(t);
+ station_test_suite(t);
+ fcall_param_test_suite(t);
+ fcall_test_suite(t);
+ probe_test_suite(t);
+ netclock_test_suite(t);
+ system_test_suite(t);
+ //phy_hal_test_suite(t);
+
+ test_result(t);
+ return test_nb_failed(t) == 0 ? 0 : 1;
+}