summaryrefslogtreecommitdiff
path: root/cesar/ce/rx/cp/test
diff options
context:
space:
mode:
authordufour2009-07-16 09:13:20 +0000
committerdufour2009-07-16 09:13:20 +0000
commit3a694cd8c015ddb7888f49f589b06c655bdec652 (patch)
treed5eb8cf4899f6af74e759507a62d21dbb2c53ccf /cesar/ce/rx/cp/test
parentb158eb75227dfcee44602f32bfb9ae30cb678493 (diff)
* ce/rx, common/tests, cp/sta/core
- move all cp part of the CE RX in the ce/rx/cp sub-modules (with the stub), - update test build system, - update cp/sta/core build. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4978 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/ce/rx/cp/test')
-rw-r--r--cesar/ce/rx/cp/test/Makefile7
-rw-r--r--cesar/ce/rx/cp/test/ecos.ecc.sh5
-rw-r--r--cesar/ce/rx/cp/test/override/cp/inc/context.h39
3 files changed, 49 insertions, 2 deletions
diff --git a/cesar/ce/rx/cp/test/Makefile b/cesar/ce/rx/cp/test/Makefile
index 6c0db51735..ecec285c2e 100644
--- a/cesar/ce/rx/cp/test/Makefile
+++ b/cesar/ce/rx/cp/test/Makefile
@@ -1,11 +1,14 @@
# Base of the project.
BASE = ../../../..
+# Enable ECos.
+ECOS = y
+
# Common includes.
-INCLUDES = ce/tx/test/override
+INCLUDES = ce/rx/cp/test/override
# For host program.
-HOST_PROGRAMS = test_mme
+TARGET_PROGRAMS = test_mme
test_mme_SOURCES = test_mme.c stub.c
test_mme_MODULES = lib mac/common ce/rx/cp ce/common cp/msg/stub
diff --git a/cesar/ce/rx/cp/test/ecos.ecc.sh b/cesar/ce/rx/cp/test/ecos.ecc.sh
new file mode 100644
index 0000000000..2443d0e40f
--- /dev/null
+++ b/cesar/ce/rx/cp/test/ecos.ecc.sh
@@ -0,0 +1,5 @@
+config=${1:-ecos-gen.ecc}
+ecosconfig --config=$config new linux default
+cat >> $config <<'EOF'
+EOF
+ecosconfig --config=$config check
diff --git a/cesar/ce/rx/cp/test/override/cp/inc/context.h b/cesar/ce/rx/cp/test/override/cp/inc/context.h
new file mode 100644
index 0000000000..bec9798a2b
--- /dev/null
+++ b/cesar/ce/rx/cp/test/override/cp/inc/context.h
@@ -0,0 +1,39 @@
+#ifndef override_cp_inc_context_h
+#define override_cp_inc_context_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file override/cp/inc/context.h
+ * \brief Control plane context override.
+ * \ingroup ce
+ */
+
+#include "mac/common/config.h"
+#include "mac/common/store.h"
+#include "ce/rx/rx.h"
+#include "lib/bitstream.h"
+
+struct cp_t
+{
+ /** Mac store context. */
+ mac_store_t *mac_store;
+
+ /** The mac config context. */
+ mac_config_t *mac_config;
+
+ /** CE RX context. */
+ ce_rx_t *ce_rx;
+
+ /** For test. */
+ u8 *vect;
+ bitstream_t *vect_bt;
+ uint vect_size;
+ struct test_t *t;
+};
+
+#endif /* override_cp_inc_context_h */