Changeset 3324383c in rtems


Ignore:
Timestamp:
May 5, 2014, 2:47:30 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
07e7a7f8
Parents:
053abcda
git-author:
Joel Sherrill <joel.sherrill@…> (05/05/14 14:47:30)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/06/14 23:31:00)
Message:

testsuites: Remove BSP_SMALL_MEMORY

Location:
testsuites
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsdosfsformat01/init.c

    r053abcda r3324383c  
    1919#include "tmacros.h"
    2020
    21 #include <bsp.h>
    22 
    23 const char rtems_test_name[] = "FSDOSFSFORMAT 1";
    24 
    25 #if !defined(BSP_SMALL_MEMORY)
    2621#include <fcntl.h>
    2722#include <inttypes.h>
     
    3126#include <rtems/dosfs.h>
    3227#include <rtems/sparse-disk.h>
     28
     29#include <bsp.h>
     30
     31const char rtems_test_name[] = "FSDOSFSFORMAT 1";
    3332
    3433#define MAX_PATH_LENGTH 100 /* Maximum number of characters per path */
     
    472471  rtems_test_assert( rv == 0 );
    473472}
    474 #endif
    475473
    476474static void Init( rtems_task_argument arg )
     
    478476  TEST_BEGIN();
    479477
    480 #if defined(BSP_SMALL_MEMORY)
    481   puts( "Test is too large for small memory BSPs" );
    482 #else
    483478  test();
    484 #endif
    485479
    486480  TEST_END();
  • testsuites/fstests/fsdosfsname01/init.c

    r053abcda r3324383c  
    1717#endif
    1818
     19
    1920#include "tmacros.h"
    2021
    21 const char rtems_test_name[] = "FSDOSFSNAME 1";
    22 
    23 #if !defined(BSP_SMALL_MEMORY)
    2422#include <errno.h>
    2523#include <fcntl.h>
     
    3836
    3937#include <errno.h>
     38
     39const char rtems_test_name[] = "FSDOSFSNAME 1";
    4040
    4141#define PRINT_DISK_IMAGE 0
     
    12921292  test_compatibility();
    12931293}
    1294 #endif
    12951294
    12961295static void Init( rtems_task_argument arg )
     
    12981297  TEST_BEGIN();
    12991298
    1300 #if defined(BSP_SMALL_MEMORY)
    1301   puts( "Test is too large for small memory BSPs" );
    1302 #else
    13031299  test();
    1304 #endif
    13051300
    13061301  TEST_END();
     
    13081303}
    13091304
    1310 /*
    1311  * Disable the "large" part of the configuration for this test
    1312  */
    1313 #if !defined(BSP_SMALL_MEMORY)
    13141305rtems_ramdisk_config rtems_ramdisk_configuration [] = {
    13151306  { .block_size = BLOCK_SIZE, .block_num = BLOCK_NUM },
     
    13211312
    13221313#define CONFIGURE_INIT_TASK_STACK_SIZE ( 1024 * 64 )
     1314#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
     1315#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    13231316#define CONFIGURE_MAXIMUM_DRIVERS 4
    13241317#define CONFIGURE_MAXIMUM_SEMAPHORES (2 * RTEMS_DOSFS_SEMAPHORES_PER_INSTANCE)
    1325 
    13261318#define CONFIGURE_APPLICATION_EXTRA_DRIVERS RAMDISK_DRIVER_TABLE_ENTRY
     1319
     1320#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
    13271321
    13281322#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
     
    13341328#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS ( 7 + 2 + ( 4 * 2 ) )
    13351329
    1336 #endif
    1337 
    1338 /*
    1339  * Even when in BSP_SMALL_MEMORY mode, we need this much to build and
    1340  * link the test.  Hopefully this reduces the footprint sufficiently.
    1341  */
    1342 #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    1343 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    1344 
    1345 #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
    13461330#define CONFIGURE_MAXIMUM_TASKS 1
     1331
    13471332#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     1333
    13481334#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    13491335
  • testsuites/libtests/flashdisk01/init.c

    r053abcda r3324383c  
    1919#include "tmacros.h"
    2020
    21 const char rtems_test_name[] = "FLASHDISK 1";
    22 
    23 #if !BSP_SMALL_MEMORY
    24 
    2521#include <sys/stat.h>
    2622#include <errno.h>
     
    3632
    3733#include "test-file-system.h"
     34
     35const char rtems_test_name[] = "FLASHDISK 1";
    3836
    3937/* forward declarations to avoid warnings */
     
    361359
    362360#include <rtems/confdefs.h>
    363 
    364 #else /* BSP_SMALL_MEMORY */
    365 
    366 static void Init(rtems_task_argument arg)
    367 {
    368   TEST_BEGIN();
    369   puts("NOT ENOUGH MEMORY TO RUN TEST");
    370 
    371   rtems_test_exit(0);
    372 }
    373 
    374 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    375 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    376 
    377 #define CONFIGURE_MAXIMUM_TASKS 1
    378 
    379 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    380 
    381 #define CONFIGURE_INIT
    382 
    383 #include <rtems/confdefs.h>
    384 
    385 #endif /* BSP_SMALL_MEMORY */
  • testsuites/libtests/flashdisk01/test-file-system.c

    r053abcda r3324383c  
    1616
    1717#include <bsp.h>
    18 
    19 #if !BSP_SMALL_MEMORY
    2018
    2119#include <sys/types.h>
     
    836834  free(fs);
    837835}
    838 
    839 #endif /* !BSP_SMALL_MEMORY */
  • testsuites/libtests/monitor02/init.c

    r053abcda r3324383c  
    3636)
    3737{
    38 #if !BSP_SMALL_MEMORY
    3938  int                i;
    4039  int                argc;
     
    5251  }
    5352  TEST_END();
    54 #else
    55   puts( "TARGET MEMORY TOO SMALL TO RUN\n\n");
    56 #endif
    5753  rtems_test_exit(0);
    5854}
  • testsuites/libtests/utf8proc01/init.c

    r053abcda r3324383c  
    2424const char rtems_test_name[] = "UTF8PROC 1";
    2525
    26 #if !defined(BSP_SMALL_MEMORY)
    2726static void
    2827test_utf8proc_errmsg ( void )
     
    249248  test_utf8proc_normalize      ( utf8proc_NFKC );
    250249}
    251 #endif
    252250
    253251static void Init ( rtems_task_argument arg )
     
    255253  TEST_BEGIN();
    256254
    257 #if defined(BSP_SMALL_MEMORY)
    258   puts( "Does not run on small memory targets" );
    259 #else
    260   test();
    261 #endif
     255  test ( );
    262256
    263257  TEST_END();
  • testsuites/samples/capture/init.c

    r053abcda r3324383c  
    2525/* forward declarations to avoid warnings */
    2626rtems_task Init(rtems_task_argument argument);
    27 #if !BSP_SMALL_MEMORY
    28   static void notification(int fd, int seconds_remaining, void *arg);
    29 #endif
     27static void notification(int fd, int seconds_remaining, void *arg);
    3028
    3129const char rtems_test_name[] = "CAPTURE ENGINE";
     
    3331volatile int can_proceed = 1;
    3432
    35 #if !BSP_SMALL_MEMORY
    3633static void notification(int fd, int seconds_remaining, void *arg)
    3734{
     
    4138  );
    4239}
    43 #endif
    4440
    4541rtems_task Init(
     
    4743)
    4844{
    49 #if BSP_SMALL_MEMORY
    50   printf("NO Capture Engine. MEMORY TOO SMALL");
    51 #else
    5245  rtems_status_code   status;
    5346  rtems_task_priority old_priority;
     
    8578    exit( 0 );
    8679  }
    87 #endif
    8880}
  • testsuites/samples/capture/test1.c

    r053abcda r3324383c  
    2727#include <rtems/monitor.h>
    2828
    29 #if !BSP_SMALL_MEMORY
    3029static volatile int capture_CT1a_deleted;
    3130static volatile int capture_CT1b_deleted;
     
    272271      rtems_monitor_insert_cmd (&capture_cmds[cmd]);
    273272}
    274 #endif /* BSP_SMALL_MEMORY */
  • testsuites/samples/fileio/system.h

    r053abcda r3324383c  
    3030
    3131#define FILEIO_BUILD 1
    32 #if BSP_SMALL_MEMORY
    33 #undef FILEIO_BUILD
    34 #endif
    3532
    36 #if defined(RTEMS_BSP_HAS_IDE_DRIVER) && !BSP_SMALL_MEMORY
     33#if defined(RTEMS_BSP_HAS_IDE_DRIVER)
    3734#include <libchip/ata.h> /* for ata driver prototype */
    3835#include <libchip/ide_ctrl.h> /* for general ide driver prototype */
  • testsuites/samples/iostream/init.cc

    r053abcda r3324383c  
    2222#include "system.h"
    2323
    24 #if BSP_SMALL_MEMORY
    25 #include <stdio.h>
    26 #else
    2724#include <iostream>
    28 #endif
    2925
    3026#include <stdlib.h>
     
    3632)
    3733{
    38 #if BSP_SMALL_MEMORY
    39   printf ("NO STDC++. MEMORY TOO SMALL");
    40 #else
    4134  std::cout << std::endl << std::endl
    4235    << "*** BEGIN OF " << rtems_test_name << " TEST ***" << std::endl;
    4336  std::cout << "Hello World" << std::endl;
    4437  std::cout << "*** END OF " << rtems_test_name << " TEST ***" << std::endl;
    45 #endif
    4638  exit( 0 );
    4739}
  • testsuites/samples/loopback/init.c

    r053abcda r3324383c  
    4141
    4242#include <rtems/confdefs.h>
    43 
    44 #if !BSP_SMALL_MEMORY
    4543
    4644#include <rtems/rtems_bsdnet.h>
     
    287285    exit( 0 );
    288286}
    289 #else
    290 #include <stdio.h>
    291 /*
    292  * RTEMS Startup Task
    293  */
    294 rtems_task
    295 Init (rtems_task_argument ignored)
    296 {
    297   printf("NO NETWORKING. MEMORY TOO SMALL");
    298 }
    299 #endif
  • testsuites/samples/paranoia/init.c

    r053abcda r3324383c  
    3232   */
    3333
    34 #if BSP_SMALL_MEMORY
    35   printf("NO Paranoia Test. MEMORY TOO SMALL");
    36 #else
    37 
    3834#if (defined (m68040))
    3935  M68KFPSPInstallExceptionHandlers ();
     
    4339  paranoia(1, args);
    4440  rtems_test_end();
    45 #endif /* BSP_SMALL_MEMORY */
    4641  exit( 0 );
    4742}
  • testsuites/samples/paranoia/paranoia.c

    r053abcda r3324383c  
    44
    55#include <bsp.h>
    6 #if !BSP_SMALL_MEMORY
    76/*
    87 *      A C version of Kahan's Floating Point Test "Paranoia"
     
    23092308    msglist (hist);
    23102309}
    2311 #endif /* BSP_SMALL_MEMORY */
  • testsuites/samples/pppd/init.c

    r053abcda r3324383c  
    1919#include "system.h"
    2020
    21 #if !BSP_SMALL_MEMORY
    2221#include <rtems/rtems_bsdnet.h>
    2322#include <rtems/rtemspppd.h>
    2423#include "netconfig.h"
    25 #endif
    2624
    2725const char rtems_test_name[] = "PPPD";
     
    2927rtems_task Init(rtems_task_argument argument)
    3028{
    31 #if BSP_SMALL_MEMORY
    32   printf("NO NETWORKING. MEMORY TOO SMALL");
    33 #else
    3429  rtems_test_begin();
    3530
     
    3833  rtems_pppd_initialize();
    3934  pppdapp_initialize();
    40 #endif
    4135  rtems_task_delete(RTEMS_SELF);
    4236}
  • testsuites/samples/pppd/pppdapp.c

    r053abcda r3324383c  
    55
    66#include <bsp.h>
    7 
    8 #if !BSP_SMALL_MEMORY
    97
    108#include <stdio.h>
     
    153151  return ( iReturn );
    154152}
    155 
    156 #endif
  • testsuites/sptests/spstkalloc02/init.c

    r053abcda r3324383c  
    2828
    2929const char rtems_test_name[] = "SPSTKALLOC 2";
    30 
    31 #if !BSP_SMALL_MEMORY
    3230
    3331#include <stdio.h>
     
    165163  _Heap_Free(&task_stack_heap, addr);
    166164}
    167 
    168 #else /* BSP_SMALL_MEMORY */
    169 
    170 static void Init(rtems_task_argument arg)
    171 {
    172   TEST_BEGIN();
    173   puts("NOT ENOUGH MEMORY TO RUN TEST");
    174 
    175   rtems_test_exit(0);
    176 }
    177 
    178 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    179 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    180 
    181 #define CONFIGURE_MAXIMUM_TASKS 1
    182 
    183 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    184 
    185 #define CONFIGURE_INIT
    186 
    187 #include <rtems/confdefs.h>
    188 
    189 #endif /* BSP_SMALL_MEMORY */
Note: See TracChangeset for help on using the changeset viewer.