Ignore:
Timestamp:
Mar 6, 2015, 3:13:40 PM (5 years ago)
Author:
Alexander Krutwig <alexander.krutwig@…>
Branches:
4.11, 5, master
Children:
cc69334f
Parents:
2bd71d95
git-author:
Alexander Krutwig <alexander.krutwig@…> (03/06/15 15:13:40)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/15 15:20:20)
Message:

testsupport: Add cascade option to parallel test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpatomic01/init.c

    r2bd71d95 r33b72fd  
    9999static rtems_interval test_atomic_add_init(
    100100  rtems_test_parallel_context *base,
    101   void *arg
     101  void *arg,
     102  size_t active_workers
    102103)
    103104{
     
    112113  rtems_test_parallel_context *base,
    113114  void *arg,
     115  size_t active_workers,
    114116  size_t worker_index
    115117)
     
    126128}
    127129
    128 static void test_atomic_add_fini(rtems_test_parallel_context *base, void *arg)
     130static void test_atomic_add_fini(
     131  rtems_test_parallel_context *base,
     132  void *arg,
     133  size_t active_workers
     134)
    129135{
    130136  smpatomic01_context *ctx = (smpatomic01_context *) base;
     
    135141static rtems_interval test_atomic_flag_init(
    136142  rtems_test_parallel_context *base,
    137   void *arg
     143  void *arg,
     144  size_t active_workers
    138145)
    139146{
     
    149156  rtems_test_parallel_context *base,
    150157  void *arg,
     158  size_t active_workers,
    151159  size_t worker_index
    152160)
     
    169177}
    170178
    171 static void test_atomic_flag_fini(rtems_test_parallel_context *base, void *arg)
     179static void test_atomic_flag_fini(
     180  rtems_test_parallel_context *base,
     181  void *arg,
     182  size_t active_workers
     183  )
    172184{
    173185  smpatomic01_context *ctx = (smpatomic01_context *) base;
     
    178190static rtems_interval test_atomic_sub_init(
    179191  rtems_test_parallel_context *base,
    180   void *arg
     192  void *arg,
     193  size_t active_workers
    181194)
    182195{
     
    191204  rtems_test_parallel_context *base,
    192205  void *arg,
     206  size_t active_workers,
    193207  size_t worker_index
    194208)
     
    205219}
    206220
    207 static void test_atomic_sub_fini(rtems_test_parallel_context *base, void *arg)
     221static void test_atomic_sub_fini(
     222  rtems_test_parallel_context *base,
     223  void *arg,
     224  size_t active_workers
     225)
    208226{
    209227  smpatomic01_context *ctx = (smpatomic01_context *) base;
     
    214232static rtems_interval test_atomic_compare_exchange_init(
    215233  rtems_test_parallel_context *base,
    216   void *arg
     234  void *arg,
     235  size_t active_workers
    217236)
    218237{
     
    228247  rtems_test_parallel_context *base,
    229248  void *arg,
     249  size_t active_workers,
    230250  size_t worker_index
    231251)
     
    260280static void test_atomic_compare_exchange_fini(
    261281  rtems_test_parallel_context *base,
    262   void *arg
     282  void *arg,
     283  size_t active_workers
    263284)
    264285{
     
    270291static rtems_interval test_atomic_or_and_init(
    271292  rtems_test_parallel_context *base,
    272   void *arg
     293  void *arg,
     294  size_t active_workers
    273295)
    274296{
     
    283305  rtems_test_parallel_context *base,
    284306  void *arg,
     307  size_t active_workers,
    285308  size_t worker_index
    286309)
     
    317340static void test_atomic_or_and_fini(
    318341  rtems_test_parallel_context *base,
    319   void *arg
     342  void *arg,
     343  size_t active_workers
    320344)
    321345{
     
    327351static rtems_interval test_atomic_fence_init(
    328352  rtems_test_parallel_context *base,
    329   void *arg
     353  void *arg,
     354  size_t active_workers
    330355)
    331356{
     
    342367  rtems_test_parallel_context *base,
    343368  void *arg,
     369  size_t active_workers,
    344370  size_t worker_index
    345371)
     
    370396}
    371397
    372 static void test_atomic_fence_fini(rtems_test_parallel_context *base, void *arg)
     398static void test_atomic_fence_fini(
     399  rtems_test_parallel_context *base,
     400  void *arg,
     401  size_t active_workers
     402)
    373403{
    374404  smpatomic01_context *ctx = (smpatomic01_context *) base;
     
    384414static const rtems_test_parallel_job test_jobs[] = {
    385415  {
    386     test_atomic_add_init,
    387     test_atomic_add_body,
    388     test_atomic_add_fini
     416    .init = test_atomic_add_init,
     417    .body = test_atomic_add_body,
     418    .fini = test_atomic_add_fini
    389419  }, {
    390     test_atomic_flag_init,
    391     test_atomic_flag_body,
    392     test_atomic_flag_fini
     420    .init = test_atomic_flag_init,
     421    .body =test_atomic_flag_body,
     422    .fini =test_atomic_flag_fini
    393423  }, {
    394     test_atomic_sub_init,
    395     test_atomic_sub_body,
    396     test_atomic_sub_fini
     424    .init = test_atomic_sub_init,
     425    .body =test_atomic_sub_body,
     426    .fini =test_atomic_sub_fini
    397427  }, {
    398     test_atomic_compare_exchange_init,
    399     test_atomic_compare_exchange_body,
    400     test_atomic_compare_exchange_fini
     428    .init = test_atomic_compare_exchange_init,
     429    .body =test_atomic_compare_exchange_body,
     430    .fini =test_atomic_compare_exchange_fini
    401431  }, {
    402     test_atomic_or_and_init,
    403     test_atomic_or_and_body,
    404     test_atomic_or_and_fini
     432    .init = test_atomic_or_and_init,
     433    .body =test_atomic_or_and_body,
     434    .fini =test_atomic_or_and_fini
    405435  }, {
    406     test_atomic_fence_init,
    407     test_atomic_fence_body,
    408     test_atomic_fence_fini
     436    .init = test_atomic_fence_init,
     437    .body =test_atomic_fence_body,
     438    .fini =test_atomic_fence_fini
    409439  },
    410440};
Note: See TracChangeset for help on using the changeset viewer.