testsuites: Remove BSP_SMALL_MEMORY

This commit is contained in:
Joel Sherrill
2014-05-05 09:47:30 -05:00
parent 053abcda22
commit 3324383ce0
16 changed files with 18 additions and 153 deletions

View File

@@ -24,15 +24,12 @@
/* forward declarations to avoid warnings */
rtems_task Init(rtems_task_argument argument);
#if !BSP_SMALL_MEMORY
static void notification(int fd, int seconds_remaining, void *arg);
#endif
static void notification(int fd, int seconds_remaining, void *arg);
const char rtems_test_name[] = "CAPTURE ENGINE";
volatile int can_proceed = 1;
#if !BSP_SMALL_MEMORY
static void notification(int fd, int seconds_remaining, void *arg)
{
printf(
@@ -40,15 +37,11 @@ static void notification(int fd, int seconds_remaining, void *arg)
seconds_remaining
);
}
#endif
rtems_task Init(
rtems_task_argument ignored
)
{
#if BSP_SMALL_MEMORY
printf("NO Capture Engine. MEMORY TOO SMALL");
#else
rtems_status_code status;
rtems_task_priority old_priority;
rtems_mode old_mode;
@@ -84,5 +77,4 @@ rtems_task Init(
exit( 0 );
}
#endif
}

View File

@@ -26,7 +26,6 @@
#include <rtems.h>
#include <rtems/monitor.h>
#if !BSP_SMALL_MEMORY
static volatile int capture_CT1a_deleted;
static volatile int capture_CT1b_deleted;
static volatile int capture_CT1c_deleted;
@@ -271,4 +270,3 @@ void setup_tasks_to_watch (void)
cmd++)
rtems_monitor_insert_cmd (&capture_cmds[cmd]);
}
#endif /* BSP_SMALL_MEMORY */

View File

@@ -29,11 +29,8 @@ rtems_task Init(
#include <bsp.h> /* for device driver prototypes */
#define FILEIO_BUILD 1
#if BSP_SMALL_MEMORY
#undef FILEIO_BUILD
#endif
#if defined(RTEMS_BSP_HAS_IDE_DRIVER) && !BSP_SMALL_MEMORY
#if defined(RTEMS_BSP_HAS_IDE_DRIVER)
#include <libchip/ata.h> /* for ata driver prototype */
#include <libchip/ide_ctrl.h> /* for general ide driver prototype */
#endif

View File

@@ -21,11 +21,7 @@
#define CONFIGURE_INIT
#include "system.h"
#if BSP_SMALL_MEMORY
#include <stdio.h>
#else
#include <iostream>
#endif
#include <stdlib.h>
@@ -35,14 +31,10 @@ rtems_task Init(
rtems_task_argument ignored
)
{
#if BSP_SMALL_MEMORY
printf ("NO STDC++. MEMORY TOO SMALL");
#else
std::cout << std::endl << std::endl
<< "*** BEGIN OF " << rtems_test_name << " TEST ***" << std::endl;
std::cout << "Hello World" << std::endl;
std::cout << "*** END OF " << rtems_test_name << " TEST ***" << std::endl;
#endif
exit( 0 );
}

View File

@@ -41,8 +41,6 @@ rtems_task Init(rtems_task_argument argument);
#include <rtems/confdefs.h>
#if !BSP_SMALL_MEMORY
#include <rtems/rtems_bsdnet.h>
#include <rtems/error.h>
#include <stdio.h>
@@ -286,14 +284,3 @@ Init (rtems_task_argument ignored)
rtems_test_end();
exit( 0 );
}
#else
#include <stdio.h>
/*
* RTEMS Startup Task
*/
rtems_task
Init (rtems_task_argument ignored)
{
printf("NO NETWORKING. MEMORY TOO SMALL");
}
#endif

View File

@@ -31,10 +31,6 @@ rtems_task Init(
* is required by this CPU.
*/
#if BSP_SMALL_MEMORY
printf("NO Paranoia Test. MEMORY TOO SMALL");
#else
#if (defined (m68040))
M68KFPSPInstallExceptionHandlers ();
#endif
@@ -42,6 +38,5 @@ rtems_task Init(
rtems_test_begin();
paranoia(1, args);
rtems_test_end();
#endif /* BSP_SMALL_MEMORY */
exit( 0 );
}

View File

@@ -3,7 +3,6 @@
#endif
#include <bsp.h>
#if !BSP_SMALL_MEMORY
/*
* A C version of Kahan's Floating Point Test "Paranoia"
*
@@ -2308,4 +2307,3 @@ History ()
msglist (hist);
}
#endif /* BSP_SMALL_MEMORY */

View File

@@ -18,25 +18,19 @@
#define CONFIGURE_INIT
#include "system.h"
#if !BSP_SMALL_MEMORY
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtemspppd.h>
#include "netconfig.h"
#endif
const char rtems_test_name[] = "PPPD";
rtems_task Init(rtems_task_argument argument)
{
#if BSP_SMALL_MEMORY
printf("NO NETWORKING. MEMORY TOO SMALL");
#else
rtems_test_begin();
/* initialize network */
rtems_bsdnet_initialize_network();
rtems_pppd_initialize();
pppdapp_initialize();
#endif
rtems_task_delete(RTEMS_SELF);
}

View File

@@ -5,8 +5,6 @@
#include <bsp.h>
#if !BSP_SMALL_MEMORY
#include <stdio.h>
#include <rtems/rtemspppd.h>
#include "system.h"
@@ -152,5 +150,3 @@ int pppdapp_initialize(void)
return ( iReturn );
}
#endif