summaryrefslogtreecommitdiff
path: root/hal/hle/maximus/test/src/test_maximus_hle.c
diff options
context:
space:
mode:
authorsave2008-04-07 14:17:42 +0000
committersave2008-04-07 14:17:42 +0000
commit3d58a62727346b7ac1a6cb36fed1a06ed72228dd (patch)
treed7788c3cf9f76426aef0286d0202e2097f0fa0eb /hal/hle/maximus/test/src/test_maximus_hle.c
parent095dca4b0a8d4924093bab424f71f588fdd84613 (diff)
Moved the complete svn base into the cesar directory.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1769 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'hal/hle/maximus/test/src/test_maximus_hle.c')
-rw-r--r--hal/hle/maximus/test/src/test_maximus_hle.c67
1 files changed, 0 insertions, 67 deletions
diff --git a/hal/hle/maximus/test/src/test_maximus_hle.c b/hal/hle/maximus/test/src/test_maximus_hle.c
deleted file mode 100644
index cce8d7e000..0000000000
--- a/hal/hle/maximus/test/src/test_maximus_hle.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Cesar project {{{
- *
- * Copyright (C) 2007 Spidcom
- *
- * <<<Licence>>>
- *
- * }}} */
-/**
- * \file hal/hle/maximus/test/src/test_maximus_hle.c
- * \brief HAL HLE main test function for Maximus.
- * \ingroup hal_hle_maximus
- */
-
-#include "common/std.h"
-#include "lib/test.h"
-#include "host/station.h" // for 'station_ctx_t'
-#include <unistd.h> // for 'open()' and 'close()'
-#include <fcntl.h> // for 'open()' and 'close()'
-
-void ipmbox_test_suite (test_t t);
-void ether_test_suite (test_t t);
-
-uint32_t maximus_pending_isrs;
-station_ctx_t my_station;
-
-void
-ipmbox_rx_cb (void *user_data, u32 *first_msg, uint length)
-{
- int *my_data = (int *)user_data;
- *my_data = 987654321;
- return;
-}
-
-int
-maximus_ether_open (station_ctx_t *station)
-{
- int fd;
-
- #ifdef STATION_SOCK
- fd = station->sock_pair_fd;
- #else /* STATION_SOCK */
- fd = open(station->pipe_out_name, O_RDONLY);
- #endif /* STATION_SOCK */
-
- return fd;
-}
-
-void
-maximus_ether_close (int fd)
-{
- #ifndef STATION_SOCK
- close(fd);
- #endif /* !STATION_SOCK */
-}
-
-int
-main (int argc, char **argv)
-{
- test_t t;
- test_init(t, argc, argv);
-
- ether_test_suite(t);
- ipmbox_test_suite(t);
-
- test_result(t);
- return test_nb_failed(t) == 0 ? 0 : 1;
-}