Changeset bc75887 in rtems for testsuites/fstests


Ignore:
Timestamp:
Mar 16, 2014, 3:15:33 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d6da1b1
Parents:
ad48ebb
git-author:
Sebastian Huber <sebastian.huber@…> (03/16/14 15:15:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/14 08:17:36)
Message:

tests/fstests: Use <rtems/test.h>

Location:
testsuites/fstests
Files:
25 edited

Legend:

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

    rad48ebb rbc75887  
    2828#include <rtems/libcsupport.h>
    2929
     30const char rtems_test_name[] = "FSBDPART 1";
     31
    3032#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
    3133
     
    207209static void Init(rtems_task_argument arg)
    208210{
    209   printf("\n\n*** TEST FSBDPART 1 ***\n");
     211  TEST_BEGIN();
    210212
    211213  test_bdpart();
    212214  test_ide_part_table();
    213215
    214   printf("*** END OF TEST FSBDPART 1 ***\n");
    215 
     216  TEST_END();
    216217  rtems_test_exit(0);
    217218}
     
    236237#define CONFIGURE_INIT_TASK_STACK_SIZE (32 * 1024)
    237238
     239#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     240
    238241#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    239242
  • testsuites/fstests/fsdosfsformat01/init.c

    rad48ebb rbc75887  
    2929#include <bsp.h>
    3030
     31const char rtems_test_name[] = "FSDOSFSFORMAT 1";
     32
    3133#define MAX_PATH_LENGTH 100 /* Maximum number of characters per path */
    3234#define SECTOR_SIZE 512 /* sector size (bytes) */
     
    472474static void Init( rtems_task_argument arg )
    473475{
    474   puts( "\n\n*** TEST FSDOSFSFORMAT 1 ***" );
     476  TEST_BEGIN();
    475477
    476478  test();
    477479
    478   puts( "*** END OF TEST FSDOSFSFORMAT 1 ***" );
    479 
     480  TEST_END();
    480481  rtems_test_exit( 0 );
    481482}
     
    497498#define CONFIGURE_INIT_TASK_STACK_SIZE ( 32 * 1024 )
    498499
     500#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     501
    499502#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    500503
  • testsuites/fstests/fsdosfsname01/init.c

    rad48ebb rbc75887  
    3636
    3737#include <errno.h>
     38
     39const char rtems_test_name[] = "FSDOSFSNAME 1";
    3840
    3941#define PRINT_DISK_IMAGE 0
     
    12931295static void Init( rtems_task_argument arg )
    12941296{
    1295   puts( "\n\n*** TEST fsdosfsname01 ***" );
     1297  TEST_BEGIN();
    12961298
    12971299  test();
    12981300
    1299   puts( "*** END OF TEST fsdosfsname01 ***" );
    1300 
     1301  TEST_END();
    13011302  rtems_test_exit( 0 );
    13021303}
     
    13291330#define CONFIGURE_MAXIMUM_TASKS 1
    13301331
     1332#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     1333
    13311334#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    13321335
  • testsuites/fstests/fsdosfssync01/init.c

    rad48ebb rbc75887  
    3030#include <rtems/dosfs.h>
    3131#include <rtems/ramdisk.h>
     32
     33const char rtems_test_name[] = "FSDOSFSSYNC 1";
    3234
    3335static void create_file(const char *file)
     
    140142static void Init(rtems_task_argument arg)
    141143{
    142   puts("\n\n*** TEST FSDOSFSSYNC 1 ***");
     144  TEST_BEGIN();
    143145
    144146  test("/dev/rda", "/mnt", "/mnt/file");
    145147
    146   puts("*** END OF TEST FSDOSFSSYNC 1 ***");
    147 
     148  TEST_END();
    148149  rtems_test_exit(0);
    149150}
     
    170171#define CONFIGURE_EXTRA_TASK_STACKS (8 * 1024)
    171172
     173#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     174
    172175#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    173176
  • testsuites/fstests/fsdosfswrite01/init.c

    rad48ebb rbc75887  
    2424#include <bsp.h>
    2525
     26const char rtems_test_name[] = "FSDOSFSWRITE 1";
     27
    2628#define MAX_PATH_LENGTH 100 /* Maximum number of characters per path */
    2729#define SECTOR_SIZE 512 /* sector size (bytes) */
     
    263265static void Init( rtems_task_argument arg )
    264266{
    265   puts( "\n\n*** TEST FSDOSFSWRITE 1 ***" );
     267  TEST_BEGIN();
    266268
    267269  test();
    268270
    269   puts( "*** END OF TEST FSDOSFSWRITE 1 ***" );
    270 
     271  TEST_END();
    271272  rtems_test_exit( 0 );
    272273}
     
    288289#define CONFIGURE_INIT_TASK_STACK_SIZE ( 32 * 1024 )
    289290
     291#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     292
    290293#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    291294
  • testsuites/fstests/fserror/test.c

    rad48ebb rbc75887  
    2323
    2424#include "fstest.h"
     25#include "fs_config.h"
    2526#include "pmacros.h"
     27
     28const char rtems_test_name[] = "FSERROR " FILESYSTEM;
    2629
    2730static void open_mkdir_error (void)
  • testsuites/fstests/fsfpathconf/test.c

    rad48ebb rbc75887  
    2626
    2727#include "fstest.h"
     28#include "fs_config.h"
    2829#include "tmacros.h"
     30
     31const char rtems_test_name[] = "FSFPATHCONF " FILESYSTEM;
    2932
    3033static void fpathconf_test(void){
  • testsuites/fstests/fsfseeko01/init.c

    rad48ebb rbc75887  
    2424#include <inttypes.h>
    2525#include <limits.h>
     26
     27const char rtems_test_name[] = "FSFSEEKO 1";
    2628
    2729static void test(void)
     
    7981static void Init(rtems_task_argument arg)
    8082{
    81   puts("\n\n*** TEST FSFSEEKO 1 ***");
     83  TEST_BEGIN();
    8284
    8385  test();
    8486
    85   puts("*** END OF TEST FSFSEEKO 1 ***");
    86 
     87  TEST_END();
    8788  rtems_test_exit(0);
    8889}
     
    9798#define CONFIGURE_MAXIMUM_TASKS 1
    9899
     100#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     101
    99102#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    100103
  • testsuites/fstests/fsimfsgeneric01/init.c

    rad48ebb rbc75887  
    2929#include <rtems/malloc.h>
    3030#include <rtems/libcsupport.h>
     31
     32const char rtems_test_name[] = "FSIMFSGENERIC 1";
    3133
    3234typedef enum {
     
    475477static void Init(rtems_task_argument arg)
    476478{
    477   printf("\n\n*** TEST FSIMFSGENERIC 1 ***\n");
     479  TEST_BEGIN();
    478480
    479481  test_imfs_make_generic_node();
    480482  test_imfs_make_generic_node_errors();
    481483
    482   printf("*** END OF TEST FSIMFSGENERIC 1 ***\n");
    483 
     484  TEST_END();
    484485  rtems_test_exit(0);
    485486}
     
    494495#define CONFIGURE_MAXIMUM_TASKS 1
    495496
     497#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     498
    496499#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    497500
  • testsuites/fstests/fslink/test.c

    rad48ebb rbc75887  
    2424
    2525#include "fstest.h"
     26#include "fs_config.h"
    2627#include "pmacros.h"
     28
     29const char rtems_test_name[] = "FSLINK " FILESYSTEM;
    2730
    2831/*
  • testsuites/fstests/fsnofs01/init.c

    rad48ebb rbc75887  
    2929#include <rtems/libio_.h>
    3030
     31const char rtems_test_name[] = "FSNOFS 1";
     32
    3133static int node_count(const rtems_chain_control *chain)
    3234{
     
    334336static void Init(rtems_task_argument arg)
    335337{
    336   printk("\n\n*** TEST FSNOFS 1 ***\n");
     338  rtems_test_begink();
    337339
    338340  rtems_libio_init();
     
    346348  test_user_env();
    347349
    348   printk("*** END OF TEST FSNOFS 1 ***\n");
    349 
     350  rtems_test_endk();
    350351  exit(0);
    351352}
     
    357358#define CONFIGURE_MAXIMUM_TASKS 1
    358359
     360#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     361
    359362#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    360363
  • testsuites/fstests/fspatheval/test.c

    rad48ebb rbc75887  
    2222
    2323#include "fstest.h"
     24#include "fs_config.h"
    2425#include "pmacros.h"
    2526
    2627#define BUF_SIZE 100
     28
     29const char rtems_test_name[] = "FSPATHEVAL " FILESYSTEM;
    2730
    2831static void make_multiple_files (char **files,int is_directory)
  • testsuites/fstests/fspermission/test.c

    rad48ebb rbc75887  
    2323
    2424#include "fstest.h"
     25#include "fs_config.h"
    2526#include "pmacros.h"
     27
     28const char rtems_test_name[] = "FSPERMISSION " FILESYSTEM;
    2629
    2730/*
  • testsuites/fstests/fsrdwr/init.c

    rad48ebb rbc75887  
    2424
    2525#include "fstest.h"
     26#include "fs_config.h"
    2627#include "pmacros.h"
     28
     29const char rtems_test_name[] = "FSRDWR " FILESYSTEM;
    2730
    2831static const mode_t mode = S_IRWXU | S_IRWXG | S_IRWXO;
  • testsuites/fstests/fsrfsbitmap01/test.c

    rad48ebb rbc75887  
    2626
    2727#include "fstest.h"
     28#include "fs_config.h"
    2829#include "tmacros.h"
    2930#include <rtems/malloc.h>
     31
     32const char rtems_test_name[] = "FSRFSBITMAP 1";
    3033
    3134#define rtems_rfs_exit_on_error(_rc, _r, _c, _b)                         \
  • testsuites/fstests/fsrofs01/init.c

    rad48ebb rbc75887  
    2828#include <rtems/rtems-rfs-format.h>
    2929#include <rtems/ramdisk.h>
     30
     31const char rtems_test_name[] = "FSROFS 1";
    3032
    3133static const rtems_rfs_format_config rfs_config;
     
    152154static void Init(rtems_task_argument arg)
    153155{
    154   printf("\n\n*** TEST FSROFS 1 ***\n");
     156  TEST_BEGIN():
    155157
    156158  test_create_file_system();
    157159  test_rofs();
    158160
    159   printf("*** END OF TEST FSROFS 1 ***\n");
    160 
     161  TEST_END():
    161162  rtems_test_exit(0);
    162163}
     
    182183#define CONFIGURE_EXTRA_TASK_STACKS (8 * 1024)
    183184
     185#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     186
    184187#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    185188
  • testsuites/fstests/fsstatvfs/test.c

    rad48ebb rbc75887  
    1616
    1717#include "fstest.h"
     18#include "fs_config.h"
    1819#include "pmacros.h"
     20
     21const char rtems_test_name[] = "FSSTATVFS " FILESYSTEM;
    1922
    2023static void statvfs_validate(struct statvfs *stat)
  • testsuites/fstests/fssymlink/test.c

    rad48ebb rbc75887  
    2424
    2525#include "fstest.h"
     26#include "fs_config.h"
    2627#include "pmacros.h"
     28
     29const char rtems_test_name[] = "FSSYMLINK " FILESYSTEM;
    2730
    2831/*
  • testsuites/fstests/fstime/test.c

    rad48ebb rbc75887  
    2525#ifdef __rtems__
    2626#include "fstest.h"
     27#include "fs_config.h"
    2728#include "pmacros.h"
     29
     30const char rtems_test_name[] = "FSTIME " FILESYSTEM;
    2831#else
    2932#include <assert.h>
  • testsuites/fstests/imfs_support/fs_support.c

    rad48ebb rbc75887  
    3434#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    3535
     36#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     37
    3638#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3739
  • testsuites/fstests/jffs2_support/fs_support.c

    rad48ebb rbc75887  
    155155
    156156#define CONFIGURE_INIT_TASK_STACK_SIZE (32 * 1024)
     157
     158#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     159
    157160#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    158161
  • testsuites/fstests/mdosfs_support/fs_support.c

    rad48ebb rbc75887  
    8181 * Configure base RTEMS resources.
    8282 */
     83
     84#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     85
    8386#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    8487
  • testsuites/fstests/mimfs_support/fs_support.c

    rad48ebb rbc75887  
    4848 * Configure base RTEMS resources.
    4949 */
    50 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    5150
     51#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    5252
    5353#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
  • testsuites/fstests/mrfs_support/fs_support.c

    rad48ebb rbc75887  
    6262#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    6363
     64#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     65
    6466#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    6567
  • testsuites/fstests/support/fstest_support.c

    rad48ebb rbc75887  
    5757{
    5858  int rc=0;
    59   puts( "\n\n*** FILE SYSTEM TEST ( " FILESYSTEM " ) ***" );
     59
     60  TEST_BEGIN();
    6061
    6162  puts( "Initializing filesystem " FILESYSTEM );
     
    7273  test_shutdown_filesystem();
    7374
    74   puts( "*** END OF FILE SYSTEM TEST ( " FILESYSTEM " ) ***" );
     75  TEST_END();
    7576  rtems_test_exit(0);
    7677}
Note: See TracChangeset for help on using the changeset viewer.