summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-03-06 20:39:29 +1100
committerChris Johns <chrisj@rtems.org>2019-03-07 06:33:47 +1100
commit96e4b2231274429569cda56d965bcc11d8009800 (patch)
treee2cbbb277f99ed2ac864fb63fe2aed08a28b3604 /testsuites/psxtests
parenttestsuite: Add rexclude, rinclude and cflags to test config files. (diff)
downloadrtems-96e4b2231274429569cda56d965bcc11d8009800.tar.bz2
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.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psxaio03/init.c25
-rw-r--r--testsuites/psxtests/psxaio03/system.h16
2 files changed, 22 insertions, 19 deletions
diff --git a/testsuites/psxtests/psxaio03/init.c b/testsuites/psxtests/psxaio03/init.c
index d8a13fa8e4..0893696962 100644
--- a/testsuites/psxtests/psxaio03/init.c
+++ b/testsuites/psxtests/psxaio03/init.c
@@ -7,6 +7,10 @@
*
*/
+#if !defined(OPERATION_COUNT)
+#define OPERATION_COUNT 100
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -86,12 +90,12 @@ POSIX_Init (void *argument)
fd[i] = open (filename, O_RDWR|O_CREAT, S_IRWXU|S_IRWXG|S_IRWXO);
rtems_test_assert ( fd[i] != -1);
}
-
+
puts (" Init: [WQ] aio_write on 1st file ");
aiocbp[0] = create_aiocb (fd[0]);
status = aio_write (aiocbp[0]);
rtems_test_assert (status != -1);
-
+
puts (" Init: [WQ] aio_write on 2nd file ");
aiocbp[1] = create_aiocb (fd[1]);
status = aio_write (aiocbp[1]);
@@ -101,17 +105,17 @@ POSIX_Init (void *argument)
aiocbp[2] = create_aiocb (fd[1]);
status = aio_read (aiocbp[2]);
rtems_test_assert (status != -1);
-
+
puts (" Init: [WQ] aio_write on 3rd file ");
aiocbp[3] = create_aiocb (fd[2]);
status = aio_write (aiocbp[3]);
rtems_test_assert (status != -1);
-
+
puts (" Init: [WQ] aio_write on 4th file ");
aiocbp[4] = create_aiocb (fd[3]);
status = aio_write (aiocbp[4]);
rtems_test_assert (status != -1);
-
+
puts (" Init: [WQ] aio_write on 5th file -- [WQ] full ");
aiocbp[5] = create_aiocb (fd[4]);
status = aio_write (aiocbp[5]);
@@ -121,16 +125,16 @@ POSIX_Init (void *argument)
aiocbp[6] = create_aiocb (fd[5]);
status = aio_read (aiocbp[6]);
rtems_test_assert (status != -1);
-
+
puts (" Init: going to sleep for 5 sec ");
sleep (5);
puts (" Init: going to sleep again for 5 sec ");
sleep (5);
puts (" Init: going to sleep again for 5 sec ");
sleep (5);
-
+
TEST_END();
-
+
for (i = 0; i < FD_COUNT; i++)
{
close (fd[i]);
@@ -138,8 +142,7 @@ POSIX_Init (void *argument)
}
free_aiocb (aiocbp[i]);
rtems_test_exit (0);
-
+
return NULL;
-
-}
+}
diff --git a/testsuites/psxtests/psxaio03/system.h b/testsuites/psxtests/psxaio03/system.h
index 1ba17d2d8a..236ef19a91 100644
--- a/testsuites/psxtests/psxaio03/system.h
+++ b/testsuites/psxtests/psxaio03/system.h
@@ -21,19 +21,19 @@ void *POSIX_Init (void *argument);
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
-#define CONFIGURE_MAXIMUM_TASKS 20
-#define CONFIGURE_MAXIMUM_SEMAPHORES 20
-#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 20
-#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
+#define CONFIGURE_MAXIMUM_TASKS 10
+#define CONFIGURE_MAXIMUM_SEMAPHORES 10
+#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 10
+#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 10
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
-#define CONFIGURE_MAXIMUM_POSIX_THREADS 30
-#define CONFIGURE_MAXIMUM_POSIX_KEYS 30
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
+#define CONFIGURE_MAXIMUM_POSIX_KEYS 10
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
-#define CONFIGURE_EXTRA_TASK_STACKS (10 * RTEMS_MINIMUM_STACK_SIZE)
-#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE (10 * RTEMS_MINIMUM_STACK_SIZE)
+#define CONFIGURE_EXTRA_TASK_STACKS (5 * RTEMS_MINIMUM_STACK_SIZE)
+#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE (5 * RTEMS_MINIMUM_STACK_SIZE)
#define CONFIGURE_MALLOC_STATISTICS