Commit Graph
101 Commits
Author SHA1 Message Date
Joel Sherrill 731607b3b3 samples/*/*.doc: Change license to BSD-2
Updates #3053.
2022-06-14 10:31:39 -05:00
Joel Sherrill e71f09094f testsuites/samples: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Frank Kühndel ec13365d77 testsuites/samples/fileio - Increase of stack size
When I use the 'shell' from the fileio sample with the command below:

   env QEMU_AUDIO_DRV="none" \
   qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 \
   -m 256M \
   -kernel build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe

The executable crashes with an "BLOWN STACK!!!" as soon as I try to login
as 'root' with password. (The logins without password work fine.)
Increasing the stack size of the affected thread a bit solves the issue.
Hence, I suggest this patch.

 My config.ini was

[arm/realview_pbx_a9_qemu]
RTEMS_DEBUG = True
RTEMS_NETWORKING = True
RTEMS_POSIX_API = True
RTEMS_SMP = True
BUILD_TESTS = True

RTEMS origin.master at a479686c11

Close #4143
2020-10-12 15:49:15 +02:00
Sebastian Huber 9de8d61a9a libtest: <rtems/test.h> to <rtems/test-info.h>
Rename this header file to later move <t.h> to <rtems/test.h>.  The main
feature provided by <rtems/test-info.h> is the output of standard test
information which is consumed by the RTEMS Tester.

Update #3199.
2020-07-23 09:27:10 +02:00
Sebastian Huber 8b8c068df3 testsuites: Remove CONFIGURE_MALLOC_STATISTICS
This configuration option is obsolete since 2014.

Update #1367.
2020-03-31 15:21:58 +02:00
Sebastian Huber 3cec2dfbc4 config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into
CONFIGURE_MAXIMUM_FILE_DESCRIPTORS.

Update #3753.
2019-12-19 08:53:03 +01:00
Zenon 99d6172f06 Correct minor spelling and grammar errors
This work was performed as a GCI 2018 task.
2018-11-06 18:51:32 -06:00
Sebastian Huber 51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +02:00
Sebastian Huber b152d33ba5 fileio: Avoid deprecated rtems_disk_obtain()
Update #3358.
2018-08-07 07:17:19 +02:00
Sebastian Huber 16f3f107bc nvdisk: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:16 +02:00
Sebastian Huber 24b94c4771 ramdisk: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:16 +02:00
Chris Johns d027e6bb8e testsuite/samples: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Sebastian Huber 1055ff2020 tests: Use normal console for user input tests 2017-11-07 08:31:40 +01:00
Sebastian Huber c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber af4355459e tests: Remove TEST_INIT
The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.
2017-10-28 13:33:56 +02:00
Chris Johns 98c6d50145 testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured
  with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
  call to printk.
- Control the test's single init for functions and global data with
  TEST_INIT and not CONFIGURE_INIT. They are now separate.

Updates #3170.
2017-10-23 16:25:45 +11:00
Sebastian Huber 80a13ec48d samples/fileio: Give command availability hint
Close #3088.
2017-08-24 08:44:22 +02:00
Sebastian Huber a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Sebastian Huber 11925eef78 Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-11-21 08:52:29 +01:00
Sebastian Huber fa028bb2ef shell: Do chroot() after successful login 2014-11-20 10:30:24 +01:00
Sebastian Huber 0b3fcf5efe samples/fileio: Use unlimited objects 2014-11-20 10:30:23 +01:00
Sebastian Huber ab085c92eb samples/fileio: Fix warning 2014-11-20 10:30:23 +01:00
Sebastian Huber acf9a8dd54 shell: Use crypt_r() in rtems_shell_login_check()
Use '*" to disable shell login instead of '!' according to the Linux man
page.  Use getpwnam_r() instead of getpwnam().  Do not access the user
environment directly.  Update the user environment only after a
successful login check.
2014-11-20 10:30:22 +01:00
Joel Sherrill 3324383ce0 testsuites: Remove BSP_SMALL_MEMORY 2014-05-06 18:31:00 -05:00
Sebastian Huber 1a6093dc60 samples/fileio: Fix configuration 2014-04-03 12:53:24 +02:00
Chris Johns c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Christian Mauderer 6cd4a5ca2e 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.
2014-03-20 09:10:26 +01:00
Sebastian Huber 9391f6d663 tests/samples: Use <rtems/test.h> 2014-03-17 09:17:36 +01:00
Sebastian Huber b5b1f44475 samples/fileio: Add DOSFS and RFS on demand 2012-11-13 09:38:03 +01:00
Ralf Corsépius 1c554014af Remove CVS-Ids. 2012-07-19 16:55:18 +02:00
Ralf Corsépius 59bd51156a Remove CVS-Ids. 2012-07-19 15:59:46 +02:00
Joel Sherrill 5f0cd3499c samples - Eliminate missing prototype warnings 2012-05-31 10:06:16 -05:00
Joel Sherrill 9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Sebastian Huber 796967c3df libblock: Change bdbuf API
The functions
 o rtems_bdbuf_get(),
 o rtems_bdbuf_read(),
 o rtems_bdbuf_syncdev(), and
 o rtems_bdbuf_purge_dev(),
use now the disk device instead of the device identifier.  This makes
bdbuf independent of rtems_disk_obtain() and rtems_disk_release().  It
is the responsiblity of the file system to obtain the disk device.  This
also reduces the overhead to get a buffer.

The key for the AVL tree uses now the disk device instead of the device
identifier.  The pointer is interpreted as an unsigned integer.  This
reduces the memory overhead and makes the comparison operation a bit
faster.

Removed function rtems_bdbuf_purge_major().  This function was too
destructive and could have unpredictable side effects.
2012-03-13 12:24:18 +01:00
Joel Sherrill 61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Ralf Corsepius 4534ba300e 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Comment out setup_nvdisk (Unused).
	Make shell_nvdisk_trace, shell_nvdisk_erase, shell_bdbuf_trace,
	disk_test_set_block_size, disk_test_write_blocks, disk_test_block_sizes,
	parse_size_arg, create_ramdisk, create_nvdisk static.
	* nsecs/init.c: Make my_ctime, subtract_em static.
2011-12-13 09:36:01 +00:00
Joel Sherrill cd06294a08 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* base_mp/node1/Makefile.am, base_mp/node2/Makefile.am,
	base_sp/Makefile.am, capture/Makefile.am, cdtest/Makefile.am,
	fileio/Makefile.am, hello/Makefile.am, iostream/Makefile.am,
	loopback/Makefile.am, minimum/Makefile.am, nsecs/Makefile.am,
	paranoia/Makefile.am, pppd/Makefile.am, ticker/Makefile.am,
	unlimited/Makefile.am: Remove obsolete optional manager capability.
2011-12-08 21:38:29 +00:00
Ralf Corsepius 96bb783aa0 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Explictly consts in size_t initializers
	(avoid overflows on 16bit-int targets).
2011-10-18 13:36:37 +00:00
Sebastian Huber 7c9d27e831 2011-09-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* fileio/fileio.scn: New file.
	* capture/init.c, fileio/init.c: Use rtems_shell_wait_for_input().
2011-09-16 09:23:19 +00:00
Chris Johns 7032a45830 2011-07-04 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h: Add commands to
        create ram disks from the shell prompt. Helps testing.
2011-07-04 00:34:00 +00:00
Joel Sherrill 91c805472d 2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Avoid use of deprecated rtems_clock_get() except in
	spclockget().
2011-06-11 16:41:56 +00:00
Joel Sherrill 541591c355 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/Makefile.am, ticker/Makefile.am: Missed part of previous
	patch.
2011-05-05 22:29:23 +00:00
Joel Sherrill 7c1e69429a 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* base_sp/apptask.c, base_sp/init.c, fileio/init.c, fileio/system.h,
	nsecs/init.c, ticker/init.c, ticker/system.h, ticker/tasks.c: Remove
	warnings.
2011-05-05 16:45:40 +00:00
Ralf Corsepius e3135514a8 Add HAVE_CONFIG_H. 2011-02-22 10:58:44 +00:00
Ralf Corsepius 8b82bc3b41 2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/Makefile.am: Remove AM_CONDITIONAL(LIBCHIP).
	* configure.ac: Remove AM_CONDITIONAL(LIBCHIP).
	Force autoconf-2.67, automake-1.11.1.
2010-08-16 14:20:48 +00:00
Chris Johns 558a5f48fc 2010-06-02 Chris Johns <chrisj@rtems.org>
* fileio/init.c: Update to new mount API.
        * iostream/init.cc: Hack to work around confdefs.h in C++.
        * iostream/system.h: Add comment about base miniIMFS.
2010-06-02 00:47:15 +00:00
Joel Sherrill 3c02c9dd47 2010-03-12 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* fileio/init.c: Remove deprecation warnings.
2010-03-12 16:00:58 +00:00
Joel Sherrill 8c8e3e0977 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Fix warnings for ctype methods.
2010-03-11 19:13:13 +00:00
Ralf Corsepius b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Ralf Corsepius edfc0f9260 2009-10-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* fileio/init.c: Use %zd to print ssize_t.
2009-10-29 03:21:40 +00:00