Skip to content

Commit

Permalink
testing:merge apps-testing-dir case to the same directory
Browse files Browse the repository at this point in the history
Signed-off-by: tengshuangshuang <[email protected]>
  • Loading branch information
txy-21 committed Jan 8, 2025
1 parent 6c7bc3c commit def1082
Show file tree
Hide file tree
Showing 269 changed files with 787 additions and 175 deletions.
23 changes: 23 additions & 0 deletions testing/cxx/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
############################################################################
# apps/testing/cxx/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.
#
############################################################################

include $(wildcard $(APPDIR)/testing/cxx/*/Make.defs)
25 changes: 25 additions & 0 deletions testing/cxx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
############################################################################
# apps/testing/cxx/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.
#
############################################################################

MENUDESC = "cxx"

include $(APPDIR)/Directory.mk
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_CXXSIZE),)
CONFIGURED_APPS += $(APPDIR)/testing/cxxsize
CONFIGURED_APPS += $(APPDIR)/testing/cxx/cxxsize
endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_CXXTEST),)
CONFIGURED_APPS += $(APPDIR)/testing/cxxtest
CONFIGURED_APPS += $(APPDIR)/testing/cxx/cxxtest
endif
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions testing/fs/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
############################################################################
# apps/testing/fs/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.
#
############################################################################

include $(wildcard $(APPDIR)/testing/fs/*/Make.defs)
25 changes: 25 additions & 0 deletions testing/fs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
############################################################################
# apps/testing/fs/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.
#
############################################################################

MENUDESC = "fs"

include $(APPDIR)/Directory.mk
12 changes: 12 additions & 0 deletions testing/fs/cmocka/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

if TESTS_TESTSUITES

config CM_FS_TEST
bool "enable fs test"
default n

endif
26 changes: 26 additions & 0 deletions testing/fs/cmocka/Make.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
############################################################################
# apps/testing/fs/cmocka/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/cmocka
endif
39 changes: 39 additions & 0 deletions testing/fs/cmocka/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
############################################################################
# apps/testing/fs/cmocka/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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/fdsantest/CMakeLists.txt
# apps/testing/fs/fdsantest/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/fdsantest/Make.defs
# apps/testing/fs/fdsantest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_FDSAN_TEST),)
CONFIGURED_APPS += $(APPDIR)/testing/fdsantest
CONFIGURED_APPS += $(APPDIR)/testing/fs/fdsantest
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/fdsantest/Makefile
# apps/testing/fs/fdsantest/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/fdsantest/fdsantest_simple.c
* apps/testing/fs/fdsantest/fdsantest_simple.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions testing/fstest/Make.defs → testing/fs/fstest/Make.defs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/fstest/Make.defs
# apps/testing/fs/fstest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_FSTEST),)
CONFIGURED_APPS += $(APPDIR)/testing/fstest
CONFIGURED_APPS += $(APPDIR)/testing/fs/fstest
endif
2 changes: 1 addition & 1 deletion testing/fstest/Makefile → testing/fs/fstest/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/fstest/Makefile
# apps/testing/fs/fstest/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/mtd_config_fs/CMakeLists.txt
# apps/testing/fs/mtd_config_fs/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/mtd_config_fs/Make.defs
# apps/testing/fs/mtd_config_fs/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_MTD_CONFIG_FAIL_SAFE),)
CONFIGURED_APPS += $(APPDIR)/testing/mtd_config_fs
CONFIGURED_APPS += $(APPDIR)/testing/fs/mtd_config_fs
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/mtd_config_fs/Makefile
# apps/testing/fs/mtd_config_fs/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/testing/mtd_config_fs/mtd_config_fs_test_main.c
* apps/testing/fs/mtd_config_fs/mtd_config_fs_test_main.c
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down
4 changes: 1 addition & 3 deletions testing/mm/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
#
############################################################################

ifneq ($(CONFIG_TESTING_MM),)
CONFIGURED_APPS += $(APPDIR)/testing/mm
endif
include $(wildcard $(APPDIR)/testing/mm/*/Make.defs)
15 changes: 2 additions & 13 deletions testing/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@
#
############################################################################

include $(APPDIR)/Make.defs
MENUDESC = "mm"

# Memory Management Test

PROGNAME = $(CONFIG_TESTING_MM_PROGNAME)
PRIORITY = $(CONFIG_TESTING_MM_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_MM_STACKSIZE)
MODULE = $(CONFIG_TESTING_MM)

MAINSRC = mm_main.c

CFLAGS += -I$(TOPDIR)/mm/mm_heap

include $(APPDIR)/Application.mk
include $(APPDIR)/Directory.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/testing/cachetest/CMakeLists.txt
# apps/testing/mm/cachetest/CMakeLists.txt
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/cachetest/Make.defs
# apps/testing/mm/cachetest/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -21,5 +21,5 @@
############################################################################

ifneq ($(CONFIG_TESTING_CACHETEST),)
CONFIGURED_APPS += $(APPDIR)/testing/cachetest
CONFIGURED_APPS += $(APPDIR)/testing/mm/cachetest
endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/testing/cachetest/Makefile
# apps/testing/mm/cachetest/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions testing/mm/cmocka/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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_MM_TEST
bool "enbale MM test"
default n

endif # TESTS_TESTSUITES
Loading

0 comments on commit def1082

Please sign in to comment.