Changeset 8dc1ed1 in rtems for testsuites


Ignore:
Timestamp:
Oct 25, 2018, 12:08:26 PM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
bb3484c9
Parents:
24f3e8f
git-author:
Sebastian Huber <sebastian.huber@…> (10/25/18 12:08:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/29/18 09:52:48)
Message:

posix: Enable more psxtests by default

Update #2514.

Location:
testsuites/psxtests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/Makefile.am

    r24f3e8f r8dc1ed1  
    1515support_includes = -I$(top_srcdir)/../support/include
    1616
    17 if HAS_POSIX
    1817if TEST_psx01
    1918psx_tests += psx01
     
    2221psx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx01) \
    2322        $(support_includes) -I$(top_srcdir)/include
    24 endif
    2523endif
    2624
     
    5856endif
    5957
    60 if HAS_POSIX
    6158if TEST_psx05
    6259psx_tests += psx05
     
    6764        $(support_includes) -I$(top_srcdir)/include
    6865endif
    69 endif
    70 
    71 if HAS_POSIX
     66
    7267if TEST_psx06
    7368psx_tests += psx06
     
    7873        $(support_includes) -I$(top_srcdir)/include
    7974endif
    80 endif
    81 
    82 if HAS_POSIX
     75
    8376if TEST_psx07
    8477psx_tests += psx07
     
    9083        $(support_includes) -I$(top_srcdir)/include
    9184endif
    92 endif
    93 
    94 if HAS_POSIX
     85
    9586if TEST_psx08
    9687psx_tests += psx08
     
    10192        $(support_includes) -I$(top_srcdir)/include
    10293endif
    103 endif
    10494
    10595if HAS_POSIX
     
    113103endif
    114104
    115 if HAS_POSIX
    116105if TEST_psx10
    117106psx_tests += psx10
     
    122111        $(support_includes) -I$(top_srcdir)/include
    123112endif
    124 endif
    125 
    126 if HAS_POSIX
     113
    127114if TEST_psx11
    128115psx_tests += psx11
     
    132119psx11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx11) \
    133120        $(support_includes) -I$(top_srcdir)/include
    134 endif
    135121endif
    136122
     
    153139endif
    154140
    155 if HAS_POSIX
    156141if TEST_psx14
    157142psx_tests += psx14
     
    161146        $(support_includes) -I$(top_srcdir)/include
    162147endif
    163 endif
    164 
    165 if HAS_POSIX
     148
    166149if TEST_psx15
    167150psx_tests += psx15
     
    171154        $(support_includes) -I$(top_srcdir)/include
    172155endif
    173 endif
    174 
    175 if HAS_POSIX
     156
    176157if TEST_psx16
    177158psx_tests += psx16
     
    180161psx16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psx16) \
    181162        $(support_includes) -I$(top_srcdir)/include
    182 endif
    183163endif
    184164
     
    224204endif
    225205
    226 if HAS_POSIX
    227206if TEST_psxautoinit01
    228207psx_tests += psxautoinit01
     
    232211        $(support_includes) -I$(top_srcdir)/include
    233212endif
    234 endif
    235 
    236 if HAS_POSIX
     213
    237214if TEST_psxautoinit02
    238215psx_tests += psxautoinit02
     
    243220        $(support_includes) -I$(top_srcdir)/include
    244221endif
    245 endif
    246 
    247 if HAS_POSIX
     222
    248223if TEST_psxbarrier01
    249224psx_tests += psxbarrier01
     
    254229        $(support_includes) -I$(top_srcdir)/include
    255230endif
    256 endif
    257 
    258 if HAS_POSIX
     231
    259232if TEST_psxcancel
    260233psx_tests += psxcancel
     
    265238        $(support_includes) -I$(top_srcdir)/include
    266239endif
    267 endif
    268 
    269 if HAS_POSIX
     240
    270241if TEST_psxcancel01
    271242psx_tests += psxcancel01
     
    276247        $(support_includes) -I$(top_srcdir)/include
    277248endif
    278 endif
    279249
    280250if TEST_psxchroot01
     
    298268endif
    299269
    300 if HAS_POSIX
    301270if TEST_psxcleanup
    302271psx_tests += psxcleanup
     
    307276        $(support_includes) -I$(top_srcdir)/include
    308277endif
    309 endif
    310 
    311 if HAS_POSIX
     278
    312279if TEST_psxcleanup01
    313280psx_tests += psxcleanup01
     
    318285        $(support_includes) -I$(top_srcdir)/include
    319286endif
    320 endif
    321 
    322 if HAS_POSIX
     287
    323288if TEST_psxcleanup02
    324289psx_tests += psxcleanup02
     
    329294        $(support_includes)
    330295endif
    331 endif
    332296
    333297if TEST_psxclock
     
    340304endif
    341305
    342 if HAS_POSIX
    343306if TEST_psxclock01
    344307psx_tests += psxclock01
     
    349312        $(support_includes) -I$(top_srcdir)/include
    350313endif
    351 endif
    352 
    353 if HAS_POSIX
     314
    354315if TEST_psxclockrealtime01
    355316psx_tests += psxclockrealtime01
     
    360321        $(TEST_FLAGS_psxclockrealtime01) $(support_includes)
    361322endif
    362 endif
    363 
    364 if HAS_POSIX
     323
    365324if TEST_psxconcurrency01
    366325psx_tests += psxconcurrency01
     
    372331        -I$(top_srcdir)/include
    373332endif
    374 endif
    375 
    376 if HAS_POSIX
     333
    377334if TEST_psxcond01
    378335psx_tests += psxcond01
     
    383340        $(support_includes) -I$(top_srcdir)/include
    384341endif
    385 endif
    386 
    387 if HAS_POSIX
     342
    388343if TEST_psxcond02
    389344psx_tests += psxcond02
     
    394349        $(support_includes) -I$(top_srcdir)/include
    395350endif
    396 endif
    397 
    398 if HAS_POSIX
     351
    399352if TEST_psxconfig01
    400353psx_tests += psxconfig01
     
    405358        $(support_includes) -I$(top_srcdir)/include
    406359endif
    407 endif
    408360
    409361if TEST_psxdevctl01
     
    427379endif
    428380
    429 if HAS_POSIX
    430381if TEST_psxenosys
    431382psx_tests += psxenosys
     
    437388        $(support_includes) -I$(top_srcdir)/include
    438389endif
    439 endif
    440 
    441 if HAS_POSIX
     390
    442391if TEST_psxfatal01
    443392psx_tests += psxfatal01
     
    448397        $(support_includes) -I$(top_srcdir)/psxfatal01
    449398endif
    450 endif
    451 
    452 if HAS_POSIX
     399
    453400if TEST_psxfatal02
    454401psx_tests += psxfatal02
     
    459406        $(support_includes) -I$(top_srcdir)/psxfatal02
    460407endif
    461 endif
    462408
    463409if TEST_psxfchx01
     
    498444endif
    499445
    500 if HAS_POSIX
    501446if TEST_psxgetattrnp01
    502447psx_tests += psxgetattrnp01
     
    506451psxgetattrnp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxgetattrnp01) \
    507452        $(support_includes) -I$(top_srcdir)/include
    508 endif
    509453endif
    510454
     
    518462endif
    519463
    520 if HAS_POSIX
    521464if HAS_CPLUSPLUS
    522465if TEST_psxglobalcon01
     
    529472endif
    530473endif
    531 endif
    532 
    533 if HAS_POSIX
     474
    534475if HAS_CPLUSPLUS
    535476if TEST_psxglobalcon02
     
    540481psxglobalcon02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxglobalcon02) \
    541482        $(support_includes)
    542 endif
    543483endif
    544484endif
     
    648588endif
    649589
    650 if HAS_POSIX
    651590if TEST_psxkey07
    652591psx_tests += psxkey07
     
    657596        $(support_includes) -I$(top_srcdir)/include
    658597endif
    659 endif
    660598
    661599if TEST_psxkey08
     
    686624endif
    687625
    688 if HAS_POSIX
    689626if TEST_psxmmap01
    690627psx_tests += psxmmap01
     
    695632        $(support_includes) -I$(top_srcdir)/include
    696633endif
    697 endif
    698634
    699635if TEST_psxmount
     
    705641endif
    706642
    707 if HAS_POSIX
    708643if TEST_psxmsgq01
    709644psx_tests += psxmsgq01
     
    714649        $(support_includes) -I$(top_srcdir)/include
    715650endif
    716 endif
    717 
    718 if HAS_POSIX
     651
    719652if TEST_psxmsgq02
    720653psx_tests += psxmsgq02
     
    725658        $(support_includes) -I$(top_srcdir)/include
    726659endif
    727 endif
    728 
    729 if HAS_POSIX
     660
    730661if TEST_psxmsgq03
    731662psx_tests += psxmsgq03
     
    737668        $(support_includes) -I$(top_srcdir)/include
    738669endif
    739 endif
    740 
    741 if HAS_POSIX
     670
    742671if TEST_psxmsgq04
    743672psx_tests += psxmsgq04
     
    749678        $(support_includes) -I$(top_srcdir)/include
    750679endif
    751 endif
    752 
    753 if HAS_POSIX
     680
    754681if TEST_psxmutexattr01
    755682psx_tests += psxmutexattr01
     
    760687        $(support_includes) -I$(top_srcdir)/include
    761688endif
    762 endif
    763 
    764 if HAS_POSIX
     689
    765690if TEST_psxobj01
    766691psx_tests += psxobj01
     
    771696        $(support_includes) -I$(top_srcdir)/include
    772697endif
    773 endif
    774698
    775699if TEST_psxonce01
     
    826750endif
    827751
    828 if HAS_POSIX
    829752if TEST_psxrwlock01
    830753psx_tests += psxrwlock01
     
    835758        $(support_includes) -I$(top_srcdir)/include
    836759endif
    837 endif
    838 
    839 if HAS_POSIX
     760
    840761if TEST_psxsem01
    841762psx_tests += psxsem01
     
    846767        $(support_includes) -I$(top_srcdir)/include
    847768endif
    848 endif
    849 
    850 if HAS_POSIX
     769
    851770if TEST_psxshm01
    852771psx_tests += psxshm01
     
    856775        $(support_includes) -I$(top_srcdir)/include
    857776endif
    858 endif
    859 
    860 if HAS_POSIX
     777
    861778if TEST_psxshm02
    862779psx_tests += psxshm02
     
    865782psxshm02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxshm02) \
    866783        $(support_includes) -I$(top_srcdir)/include
    867 endif
    868784endif
    869785
     
    936852endif
    937853
    938 if HAS_POSIX
    939854if TEST_psxspin01
    940855psx_tests += psxspin01
     
    945860        $(support_includes) -I$(top_srcdir)/include
    946861endif
    947 endif
    948 
    949 if HAS_POSIX
     862
    950863if TEST_psxstack01
    951864psx_tests += psxstack01
     
    956869        $(support_includes) -I$(top_srcdir)/include
    957870endif
    958 endif
    959 
    960 if HAS_POSIX
     871
    961872if TEST_psxstack02
    962873psx_tests += psxstack02
     
    967878        $(support_includes) -I$(top_srcdir)/include
    968879endif
    969 endif
    970880
    971881if TEST_psxstat
     
    977887endif
    978888
    979 if HAS_POSIX
    980889if TEST_psxstrsignal01
    981890psx_tests += psxstrsignal01
     
    986895        $(support_includes) -I$(top_srcdir)/include
    987896endif
    988 endif
    989 
    990 if HAS_POSIX
     897
    991898if TEST_psxsysconf
    992899psx_tests += psxsysconf
     
    997904        $(support_includes) -I$(top_srcdir)/include
    998905endif
    999 endif
    1000 
    1001 if HAS_POSIX
     906
    1002907if TEST_psxthreadname01
    1003908psx_tests += psxthreadname01
     
    1008913        $(TEST_FLAGS_psxthreadname01) $(support_includes)
    1009914endif
    1010 endif
    1011 
    1012 if HAS_POSIX
     915
    1013916if TEST_psxtime
    1014917psx_tests += psxtime
     
    1017920psxtime_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxtime) \
    1018921        $(support_includes)
    1019 endif
    1020922endif
    1021923
     
    1062964endif
    1063965
    1064 if HAS_POSIX
    1065966if TEST_psxusleep
    1066967psx_tests += psxusleep
     
    1071972        $(support_includes) -I$(top_srcdir)/include
    1072973endif
    1073 endif
    1074 
    1075 if HAS_POSIX
     974
    1076975if TEST_lib_a
    1077976psx_lib += lib.a
     
    11861085        psxhdrs/sys/socket/socketpair.c
    11871086endif
    1188 endif
    11891087
    11901088rtems_tests_PROGRAMS = $(psx_tests)
  • testsuites/psxtests/psx07/init.c

    r24f3e8f r8dc1ed1  
    557557  fatal_directive_check_status_only( status, ESRCH, "invalid thread" );
    558558
     559#if defined(RTEMS_POSIX_API)
    559560  /* now get sporadic server errors */
    560561
     
    629630  status = pthread_join( Task2_id, NULL );
    630631  posix_service_failed( status, " pthread_join");
     632#endif
    631633
    632634  TEST_END();
  • testsuites/psxtests/psxcleanup/system.h

    r24f3e8f r8dc1ed1  
    4343
    4444#define CONFIGURE_MAXIMUM_POSIX_THREADS             4
    45 #define CONFIGURE_MAXIMUM_POSIX_TIMERS              4
    4645#define CONFIGURE_MAXIMUM_TIMERS                    4
    4746
  • testsuites/psxtests/psxconfig01/init.c

    r24f3e8f r8dc1ed1  
    6464
    6565#define POSIX_MQ_COUNT 5
     66#ifdef RTEMS_POSIX_API
    6667#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 7
     68#endif
    6769#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 41
    6870#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     
    7173
    7274#define CONFIGURE_MAXIMUM_POSIX_THREADS 3
     75#ifdef RTEMS_POSIX_API
    7376#define CONFIGURE_MAXIMUM_POSIX_TIMERS 47
     77#endif
    7478
    7579#ifndef CONFIGURE_MAXIMUM_TASKS
     
    243247  rtems_status_code sc = RTEMS_SUCCESSFUL;
    244248  int eno = 0;
    245   int rv = 0;
    246249  rtems_id id = RTEMS_ID_NONE;
    247250  rtems_name name = rtems_build_name('C', 'O', 'N', 'F');
     
    492495  for (i = 0; i < CONFIGURE_MAXIMUM_POSIX_TIMERS; ++i) {
    493496    timer_t timer_id;
     497    int rv;
     498
    494499    rv = timer_create(CLOCK_REALTIME, NULL, &timer_id);
    495500    rtems_test_assert(rv == 0);
  • testsuites/psxtests/psxmsgq01/init.c

    r24f3e8f r8dc1ed1  
    941941void verify_notify(void)
    942942{
     943#if defined(RTEMS_POSIX_API)
    943944  struct sigevent event;
    944945  int             status;
     
    10201021  wait_for_signal( &set, 3, 0 );
    10211022  Read_msg_from_que( RW_QUEUE, 0 );
    1022 
     1023#endif
    10231024}
    10241025
  • testsuites/psxtests/psxmsgq01/system.h

    r24f3e8f r8dc1ed1  
    3939#define CONFIGURE_MAXIMUM_POSIX_THREADS         5
    4040#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 10
     41#if defined(RTEMS_POSIX_API)
    4142#define CONFIGURE_MAXIMUM_POSIX_TIMERS          4
    4243#define CONFIGURE_MAXIMUM_TIMERS                4
     44#endif
    4345
    4446#define CONFIGURE_POSIX_INIT_THREAD_TABLE
Note: See TracChangeset for help on using the changeset viewer.