testsuite: Make the OPERATION_COUNT a test configuration parameter.

- Add a small memory test config file.
- Update the small memory PowerPC BSPs to use the new test config.
This commit is contained in:
Chris Johns
2019-03-07 06:33:47 +11:00
parent a06356b455
commit 96e4b22312
70 changed files with 336 additions and 375 deletions
File diff suppressed because it is too large Load Diff
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+6 -2
View File
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -71,7 +75,7 @@ void *Middle(
/* let other threads run */
(void) pthread_barrier_wait( &barrier );
/* should never return */
rtems_test_assert( FALSE );
return NULL;
@@ -92,7 +96,7 @@ void *POSIX_Init(
status = pthread_create( &threadId, NULL, Middle, NULL );
rtems_test_assert( !status );
}
status = pthread_create( &threadId, NULL, Low, NULL );
rtems_test_assert( !status );
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -7,9 +7,14 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <tmacros.h>
#include <timesys.h>
#include "test_support.h"
@@ -25,6 +25,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -25,6 +25,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+4
View File
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#if defined(USE_WAIT)
#define TEST_NUMBER "08"
#define TEST_CASE "pthread_cond_wait: blocking"
+5 -1
View File
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -91,7 +95,7 @@ void *POSIX_Init(
status = pthread_create( &threadId, NULL, Middle, NULL );
rtems_test_assert( !status );
}
status = pthread_create( &threadId, NULL, Low, NULL );
rtems_test_assert( !status );
+5 -1
View File
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -130,7 +134,7 @@ void *POSIX_Init(
);
rtems_test_assert( status == 0 );
}
/*
* Now start the timer which will be stopped in Low
*/
+5 -1
View File
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -93,7 +97,7 @@ void *POSIX_Init(
status = pthread_create( &threadId, NULL, Middle, NULL );
rtems_test_assert( status == 0 );
}
status = pthread_create( &threadId, NULL, Low, NULL );
rtems_test_assert( status == 0 );
+5 -1
View File
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
#if !defined(OPERATION_COUNT)
#define OPERATION_COUNT 100
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -58,7 +62,7 @@ void *POSIX_Init(
0
);
TEST_END();
rtems_test_exit(0);