summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2014-03-19 17:17:39 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-20 09:10:26 +0100
commit6cd4a5ca2e2211c4008d99fc272412c9b03c86ce (patch)
tree74d90861edc8f206824e462710679b69b46b2aa6 /testsuites
parenttests/libtests: Use <rtems/test.h> (diff)
downloadrtems-6cd4a5ca2e2211c4008d99fc272412c9b03c86ce.tar.bz2
cpukit/shell: Replace task variables with posix keys.
Use posix keys for current shell environment instead of task variables. With this patch the shell needs one posix-key and one posix-key-value-pair configured. Update documentation for the shell. Adapt samples/fileio: - Add necessary objects. - Add login function and custom device name for better testing of the shell.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/samples/fileio/init.c5
-rw-r--r--testsuites/samples/fileio/system.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c
index 80da4ab0a6..2a0f9db1c3 100644
--- a/testsuites/samples/fileio/init.c
+++ b/testsuites/samples/fileio/init.c
@@ -708,10 +708,11 @@ static void fileio_start_shell(void)
"SHLL", /* task_name */
RTEMS_MINIMUM_STACK_SIZE * 4, /* task_stacksize */
100, /* task_priority */
- "/dev/console", /* devname */
+ "/dev/foobar", /* devname */
+ /* device is currently ignored by the shell if it is not a pty */
false, /* forever */
true, /* wait */
- NULL /* login */
+ rtems_shell_login_check /* login */
);
}
#endif /* USE_SHELL */
diff --git a/testsuites/samples/fileio/system.h b/testsuites/samples/fileio/system.h
index 726a507b46..654f7275c2 100644
--- a/testsuites/samples/fileio/system.h
+++ b/testsuites/samples/fileio/system.h
@@ -47,6 +47,9 @@ rtems_task Init(
#define CONFIGURE_ATA_DRIVER_TASK_PRIORITY 14
#endif
+#define CONFIGURE_MAXIMUM_POSIX_KEYS 1
+#define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS 1
+
#if FILEIO_BUILD
#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
#define CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS 2