source: rtems/testsuites/fstests/mimfs_support/fs_support.c @ a0b1b5ed

4.115
Last change on this file since a0b1b5ed was a0b1b5ed, checked in by Sebastian Huber <sebastian.huber@…>, on 12/15/14 at 13:19:43

Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM

This define was superfluous, undocumented and used inconsistently.

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[a2f875f]1/*
[858e013f]2 *  COPYRIGHT (c) 1989-2011.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
[c499856]7 *  http://www.rtems.org/license/LICENSE.
[a2f875f]8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
[7336d4af]13#include "pmacros.h"
14
[a2f875f]15#include <sys/stat.h>
16#include <rtems/libio.h>
17
[858e013f]18#include "fstest.h"
[28860ec0]19#include "fstest_support.h"
[7336d4af]20
[858e013f]21void
22test_initialize_filesystem (void)
[a2f875f]23{
[858e013f]24  int rc = 0;
25  rc = mkdir (BASE_FOR_TEST,S_IRWXU|S_IRWXG|S_IRWXO);
26  rtems_test_assert (rc == 0);
[7336d4af]27
[858e013f]28  rc = mount (NULL, BASE_FOR_TEST, "imfs", RTEMS_FILESYSTEM_READ_WRITE, NULL);
29  rtems_test_assert (rc == 0);
[a2f875f]30}
31
[7336d4af]32
[858e013f]33void
34test_shutdown_filesystem (void)
[a2f875f]35{
[858e013f]36  int rc = 0;
37  rc = unmount (BASE_FOR_TEST);
38  rtems_test_assert (rc == 0);
[7336d4af]39}
[a2f875f]40
[7336d4af]41/* configuration information */
42
43/* drivers */
44#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
45#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
46
47/**
48 * Configure base RTEMS resources.
49 */
50
[bc75887]51#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
[7336d4af]52
[858e013f]53#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
[7336d4af]54
[6fed43e]55#define CONFIGURE_MAXIMUM_TASKS                  10
[858e013f]56#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 40
[23c6f93a]57#define CONFIGURE_INIT_TASK_STACK_SIZE (16 * 1024)
[5c0c0cf]58#define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS  1
[7336d4af]59
60#define CONFIGURE_INIT
61#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.