Skip to content

testing: move cmocka_fs to the new folder /basic #3011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions testing/fs/basic/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

config TESTS_TESTSUITES
tristate "vela test suite"
default n
depends on TESTING_CMOCKA
---help---
Enable testsuites for the vela

if TESTS_TESTSUITES

config TESTS_TESTSUITES_MOUNT_DIR
string "Mount directory for the testsuites"
default "/data"

config TESTS_TESTSUITES_PRIORITY
int "Testsuites task priority"
default 99

config TESTS_TESTSUITES_STACKSIZE
int "Testsuites stack size"
default 16384

config CM_FS_TEST
bool "enable fs test"
default n

endif # TESTS_TESTSUITES
26 changes: 26 additions & 0 deletions testing/fs/basic/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
############################################################################
# apps/testing/fs/basic/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#
############################################################################

ifneq ($(CONFIG_TESTS_TESTSUITES),)
CONFIGURED_APPS += $(APPDIR)/testing/fs/basic
endif
38 changes: 38 additions & 0 deletions testing/fs/basic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
############################################################################
# apps/testing/fs/basic/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
# ASF licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
############################################################################

include $(APPDIR)/Make.defs

PRIORITY = $(CONFIG_TESTS_TESTSUITES_PRIORITY)
STACKSIZE = $(CONFIG_TESTS_TESTSUITES_STACKSIZE)
MODULE = $(CONFIG_TESTS_TESTSUITES)

ifneq ($(CONFIG_CM_FS_TEST),)
CFLAGS += -I$(CURDIR)/include
CFLAGS += -I$(APPDIR)/nshlib
CSRCS += $(wildcard cases/*.c)
CSRCS += $(wildcard common/*.c)
PROGNAME += cmocka_fs_test
MAINSRC += $(CURDIR)/cmocka_fs_test.c
endif

include $(APPDIR)/Application.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_append_test.c
* apps/testing/fs/basic/cases/fs_append_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_creat_test.c
* apps/testing/fs/basic/cases/fs_creat_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_dup2_test.c
* apps/testing/fs/basic/cases/fs_dup2_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_dup_test.c
* apps/testing/fs/basic/cases/fs_dup_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c
* apps/testing/fs/basic/cases/fs_eventfd_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c
* apps/testing/fs/basic/cases/fs_fcntl_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_fstat_test.c
* apps/testing/fs/basic/cases/fs_fstat_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c
* apps/testing/fs/basic/cases/fs_fstatfs_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_fsync_test.c
* apps/testing/fs/basic/cases/fs_fsync_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c
* apps/testing/fs/basic/cases/fs_getfilep_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c
* apps/testing/fs/basic/cases/fs_mkdir_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_open_test.c
* apps/testing/fs/basic/cases/fs_open_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_opendir_test.c
* apps/testing/fs/basic/cases/fs_opendir_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_poll_test.c
* apps/testing/fs/basic/cases/fs_poll_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_pread_test.c
* apps/testing/fs/basic/cases/fs_pread_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c
* apps/testing/fs/basic/cases/fs_pwrite_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_read_test.c
* apps/testing/fs/basic/cases/fs_read_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_readdir_test.c
* apps/testing/fs/basic/cases/fs_readdir_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_readlink_test.c
* apps/testing/fs/basic/cases/fs_readlink_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_rename_test.c
* apps/testing/fs/basic/cases/fs_rename_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c
* apps/testing/fs/basic/cases/fs_rewinddir_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c
* apps/testing/fs/basic/cases/fs_rmdir_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_seek_test.c
* apps/testing/fs/basic/cases/fs_seek_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c
* apps/testing/fs/basic/cases/fs_sendfile_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_stat_test.c
* apps/testing/fs/basic/cases/fs_stat_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_statfs_test.c
* apps/testing/fs/basic/cases/fs_statfs_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_stream_test.c
* apps/testing/fs/basic/cases/fs_stream_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_symlink_test.c
* apps/testing/fs/basic/cases/fs_symlink_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_truncate_test.c
* apps/testing/fs/basic/cases/fs_truncate_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_unlink_test.c
* apps/testing/fs/basic/cases/fs_unlink_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cases/fs_write_test.c
* apps/testing/fs/basic/cases/fs_write_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/cmocka_fs_test.c
* apps/testing/fs/basic/cmocka_fs_test.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/common/test_fs_common.c
* apps/testing/fs/basic/common/test_fs_common.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/testsuites/kernel/fs/include/fstest.h
* apps/testing/fs/basic/include/fstest.h
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
Loading