This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 99cccd80994f0b3af8bb13dcd4f1b07d00ecc5d7 Author: Marco Casaroli <[email protected]> AuthorDate: Tue Nov 17 20:44:28 2026 +0100 boards/qemu-armv7a: Add the citest and citest_knsh configurations. CI runs both in QEMU with NTFC, for the Cortex-A7 (ARMv7-A): qemu-armv7a:citest is a flat build and qemu-armv7a:citest_knsh is a kernel build (CONFIG_BUILD_KERNEL=y). CI builds the kernel build configurations, but it runs none of them. citest is qemu-armv7a:nsh and citest_knsh is qemu-armv7a:knsh, with the programs that the NTFC cases use: ostest, hello, helloxx, pipe, getprime, setlogmask and usrsocktest, and the user socket network stack for usrsocktest (CONFIG_NETDEV_LATEINIT=y: the board has no network device). citest also has heap. Both have scheduler error and warning messages. citest has no profiling and no coremark. heap is not in citest_knsh: it includes mm/mm_heap/mm.h of the NuttX tree, and the export of a kernel build does not have this file. For citest_knsh, NuttX mounts ../apps at /system with semihosting (hostfs), as in knsh. testbuild.sh installs the programs into ../apps/bin (make export, make import). NTFC finds the commands of a kernel build in app_bindir: the file names in ../apps/bin and the symbols in ../apps/bin_debug. run.sh is the one of mps2-an500:citest: it moves each NTFC result directory into the artifact directory, so that a retry of the configuration does not leave result/ in the tree. session.json excludes Nuttx_System_Arch_Os_Stability, which runs the heap test 10 times. Nuttx_System_Mm_Integration runs it one time. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- .../qemu/qemu-armv7a/configs/citest/config.yaml | 18 ++++ .../arm/qemu/qemu-armv7a/configs/citest/defconfig | 87 +++++++++++++++++ boards/arm/qemu/qemu-armv7a/configs/citest/run.sh | 50 ++++++++++ .../qemu/qemu-armv7a/configs/citest/session.json | 13 +++ .../qemu-armv7a/configs/citest_knsh/config.yaml | 19 ++++ .../qemu/qemu-armv7a/configs/citest_knsh/defconfig | 105 +++++++++++++++++++++ .../qemu/qemu-armv7a/configs/citest_knsh/run.sh | 50 ++++++++++ .../qemu-armv7a/configs/citest_knsh/session.json | 13 +++ 8 files changed, 355 insertions(+) diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest/config.yaml b/boards/arm/qemu/qemu-armv7a/configs/citest/config.yaml new file mode 100644 index 00000000000..575924e1c07 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest/config.yaml @@ -0,0 +1,18 @@ +config: + cwd: './' + +product: + name: "qemu-armv7a" + cores: + core0: + name: 'main' + device: 'qemu' + line_buffered: true + exec_path: 'qemu-system-arm' + exec_args: '-cpu cortex-a7 -nographic + -machine virt,virtualization=off,gic-version=2 + -net none -chardev stdio,id=con,mux=on + -serial chardev:con -mon chardev=con,mode=readline + -kernel ./nuttx' + conf_path: './.config' + elf_path: './nuttx' diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest/defconfig b/boards/arm/qemu/qemu-armv7a/configs/citest/defconfig new file mode 100644 index 00000000000..4d24f157b7e --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest/defconfig @@ -0,0 +1,87 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# +# CONFIG_NSH_NETINIT is not set +CONFIG_ALARM_ARCH=y +CONFIG_ALLSYMS=y +CONFIG_ARCH="arm" +CONFIG_ARCH_BOARD="qemu-armv7a" +CONFIG_ARCH_BOARD_QEMU_ARMV7A=y +CONFIG_ARCH_CHIP="qemu" +CONFIG_ARCH_CHIP_QEMU_ARM=y +CONFIG_ARCH_CHIP_QEMU_CORTEXA7=y +CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_LOWVECTORS=y +CONFIG_ARM_PSCI=y +CONFIG_ARM_SEMIHOSTING_HOSTFS=y +CONFIG_BOARDCTL_POWEROFF=y +CONFIG_BOARD_LOOPSPERMSEC=393693 +CONFIG_BUILTIN=y +CONFIG_DEBUG_ASSERTIONS=y +CONFIG_DEBUG_FEATURES=y +CONFIG_DEBUG_FULLOPT=y +CONFIG_DEBUG_SCHED=y +CONFIG_DEBUG_SCHED_ERROR=y +CONFIG_DEBUG_SCHED_WARN=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_DEFAULT_TASK_STACKSIZE=4096 +CONFIG_ETC_ROMFS=y +CONFIG_EXAMPLES_HELLO=y +CONFIG_EXAMPLES_HELLOXX=y +CONFIG_EXAMPLES_PIPE=y +CONFIG_EXAMPLES_USRSOCKTEST=y +CONFIG_EXPERIMENTAL=y +CONFIG_FLASH_SIZE=1048576 +CONFIG_FLASH_START=0 +CONFIG_FLASH_VSTART=0 +CONFIG_FS_HOSTFS=y +CONFIG_FS_PROCFS=y +CONFIG_FS_ROMFS=y +CONFIG_FS_TMPFS=y +CONFIG_HAVE_CXX=y +CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_IDLETHREAD_STACKSIZE=4096 +CONFIG_INIT_ENTRYPOINT="init_main" +CONFIG_LIBC_EXECFUNCS=y +CONFIG_MODULE=y +CONFIG_NET=y +CONFIG_NETDEV_LATEINIT=y +CONFIG_NET_USRSOCK=y +CONFIG_NSH_BUILTIN_APPS=y +CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_READLINE=y +CONFIG_PREALLOC_TIMERS=4 +CONFIG_PRIORITY_INHERITANCE=y +CONFIG_RAMLOG=y +CONFIG_RAM_SIZE=16777216 +CONFIG_RAM_START=0x40000000 +CONFIG_RAM_VSTART=0x40000000 +CONFIG_RAW_BINARY=y +CONFIG_READLINE_CMD_HISTORY=y +CONFIG_RR_INTERVAL=200 +CONFIG_SCHED_CHILD_STATUS=y +CONFIG_SCHED_HAVE_PARENT=y +CONFIG_SCHED_HPWORK=y +CONFIG_SCHED_HPWORKPRIORITY=192 +CONFIG_STACK_COLORATION=y +CONFIG_START_DAY=25 +CONFIG_START_MONTH=4 +CONFIG_START_YEAR=2023 +CONFIG_SYMTAB_ORDEREDBYNAME=y +CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_NXINIT=y +CONFIG_SYSTEM_SETLOGMASK=y +CONFIG_SYSTEM_SYSTEM=y +CONFIG_TESTING_GETPRIME=y +CONFIG_TESTING_HEAP=y +CONFIG_TESTING_OSTEST=y +CONFIG_UART1_BASE=0x9000000 +CONFIG_UART1_IRQ=33 +CONFIG_UART1_PL011=y +CONFIG_UART1_SERIAL_CONSOLE=y +CONFIG_UART_PL011=y +CONFIG_USEC_PER_TICK=1000 diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest/run.sh b/boards/arm/qemu/qemu-armv7a/configs/citest/run.sh new file mode 100755 index 00000000000..267d98784d1 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest/run.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +############################################################################ +# boards/arm/qemu/qemu-armv7a/configs/citest/run.sh +# +# 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. +# +############################################################################ + +set -o xtrace + +# start from nuttx dir +olddir=$(pwd) +nuttdir=${CURRENTCONFDIR}/../../../../../../ +cd ${nuttdir} + +# run NTFC +confpath=${CURRENTCONFDIR}/config.yaml +jsonconf=${CURRENTCONFDIR}/session.json +testpath=${NTFCDIR}/external/nuttx-testing +ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf} + +ret="$?" +echo $ret + +# export test results; keep the results of an earlier attempt +artifacts=${ARTIFACTCONFDIR}/ntfc/result +mkdir -p ${artifacts} +rm -f pytest.debug.log +mv result/* ${artifacts} +rm -rf result + +# restore old dir +cd ${olddir} + +exit $ret diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest/session.json b/boards/arm/qemu/qemu-armv7a/configs/citest/session.json new file mode 100644 index 00000000000..b88ef1c1926 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest/session.json @@ -0,0 +1,13 @@ +{ + "module": { + "include_module": [], + "exclude_module": + [ + "Nuttx_System_Arch_Os_Stability" + ], + "order": [] + }, + "args": { + "kv": [] + } +} diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/config.yaml b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/config.yaml new file mode 100644 index 00000000000..21bd9ef0117 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/config.yaml @@ -0,0 +1,19 @@ +config: + cwd: './' + +product: + name: "qemu-armv7a" + cores: + core0: + name: 'main' + device: 'qemu' + line_buffered: true + exec_path: 'qemu-system-arm' + exec_args: '-semihosting -cpu cortex-a7 -nographic + -machine virt,virtualization=off,gic-version=2 + -net none -chardev stdio,id=con,mux=on + -serial chardev:con -mon chardev=con,mode=readline + -kernel ./nuttx' + conf_path: './.config' + elf_path: './nuttx' + app_bindir: '../apps/bin' diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/defconfig b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/defconfig new file mode 100644 index 00000000000..a733f944455 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/defconfig @@ -0,0 +1,105 @@ +# +# This file is autogenerated: PLEASE DO NOT EDIT IT. +# +# You can use "make menuconfig" to make any modifications to the installed .config file. +# You can then do "make savedefconfig" to generate a new defconfig file that includes your +# modifications. +# +# CONFIG_NSH_NETINIT is not set +# CONFIG_TLS_ALIGNED is not set +CONFIG_ALARM_ARCH=y +CONFIG_ARCH="arm" +CONFIG_ARCH_ADDRENV=y +CONFIG_ARCH_BOARD="qemu-armv7a" +CONFIG_ARCH_BOARD_QEMU_ARMV7A=y +CONFIG_ARCH_CHIP="qemu" +CONFIG_ARCH_CHIP_QEMU_ARM=y +CONFIG_ARCH_CHIP_QEMU_CORTEXA7=y +CONFIG_ARCH_DATA_NPAGES=256 +CONFIG_ARCH_DATA_VBASE=0x80100000 +CONFIG_ARCH_HEAP_NPAGES=256 +CONFIG_ARCH_HEAP_VBASE=0x80200000 +CONFIG_ARCH_INTERRUPTSTACK=2048 +CONFIG_ARCH_KERNEL_STACKSIZE=3072 +CONFIG_ARCH_LOWVECTORS=y +CONFIG_ARCH_PGPOOL_MAPPING=y +CONFIG_ARCH_PGPOOL_PBASE=0x40300000 +CONFIG_ARCH_PGPOOL_SIZE=13631488 +CONFIG_ARCH_PGPOOL_VBASE=0x40300000 +CONFIG_ARCH_STACKDUMP=y +CONFIG_ARCH_TEXT_NPAGES=256 +CONFIG_ARCH_TEXT_VBASE=0x80000000 +CONFIG_ARM_PSCI=y +CONFIG_ARM_SEMIHOSTING_HOSTFS=y +CONFIG_ARM_THUMB=y +CONFIG_BINFMT_ELF_EXECUTABLE=y +CONFIG_BOARDCTL_POWEROFF=y +CONFIG_BOARD_LOOPSPERMSEC=393693 +CONFIG_BUILD_KERNEL=y +CONFIG_DEBUG_ASSERTIONS=y +CONFIG_DEBUG_FEATURES=y +CONFIG_DEBUG_FULLOPT=y +CONFIG_DEBUG_SCHED=y +CONFIG_DEBUG_SCHED_ERROR=y +CONFIG_DEBUG_SCHED_WARN=y +CONFIG_DEBUG_SYMBOLS=y +CONFIG_DEFAULT_TASK_STACKSIZE=4096 +CONFIG_ELF=y +CONFIG_EXAMPLES_HELLO=m +CONFIG_EXAMPLES_HELLOXX=y +CONFIG_EXAMPLES_PIPE=y +CONFIG_EXAMPLES_USRSOCKTEST=y +CONFIG_EXPERIMENTAL=y +CONFIG_FLASH_SIZE=1048576 +CONFIG_FS_HOSTFS=y +CONFIG_FS_PROCFS=y +CONFIG_FS_TMPFS=y +CONFIG_HAVE_CXX=y +CONFIG_HAVE_CXXINITIALIZE=y +CONFIG_IDLETHREAD_STACKSIZE=4096 +CONFIG_INIT_FILEPATH="/system/bin/init" +CONFIG_INIT_MOUNT=y +CONFIG_INIT_MOUNT_DATA="fs=../apps" +CONFIG_INIT_MOUNT_FLAGS=0x1 +CONFIG_INIT_MOUNT_FSTYPE="hostfs" +CONFIG_INIT_MOUNT_SOURCE="" +CONFIG_INIT_MOUNT_TARGET="/system" +CONFIG_INIT_STACKSIZE=3072 +CONFIG_INTELHEX_BINARY=y +CONFIG_LIBC_ENVPATH=y +CONFIG_LIBC_EXECFUNCS=y +CONFIG_MM_PGALLOC=y +CONFIG_NET=y +CONFIG_NETDEV_LATEINIT=y +CONFIG_NET_USRSOCK=y +CONFIG_NSH_FILEIOSIZE=512 +CONFIG_NSH_FILE_APPS=y +CONFIG_NSH_READLINE=y +CONFIG_PATH_INITIAL="/system/bin" +CONFIG_PREALLOC_TIMERS=4 +CONFIG_RAM_SIZE=16777216 +CONFIG_RAM_START=0x40000000 +CONFIG_RAM_VSTART=0x40000000 +CONFIG_RAW_BINARY=y +CONFIG_READLINE_CMD_HISTORY=y +CONFIG_RR_INTERVAL=200 +CONFIG_SCHED_HAVE_PARENT=y +CONFIG_SCHED_LPWORK=y +CONFIG_SCHED_WAITPID=y +CONFIG_STACK_COLORATION=y +CONFIG_START_DAY=25 +CONFIG_START_MONTH=4 +CONFIG_START_YEAR=2023 +CONFIG_SYMTAB_ORDEREDBYNAME=y +CONFIG_SYSLOG_TIMESTAMP=y +CONFIG_SYSTEM_NSH=y +CONFIG_SYSTEM_NSH_PROGNAME="init" +CONFIG_SYSTEM_SETLOGMASK=y +CONFIG_TESTING_GETPRIME=y +CONFIG_TESTING_OSTEST=y +CONFIG_UART1_BASE=0x9000000 +CONFIG_UART1_IRQ=33 +CONFIG_UART1_PL011=y +CONFIG_UART1_SERIAL_CONSOLE=y +CONFIG_UART_PL011=y +CONFIG_USEC_PER_TICK=1000 diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/run.sh b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/run.sh new file mode 100755 index 00000000000..f4f74098990 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/run.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +############################################################################ +# boards/arm/qemu/qemu-armv7a/configs/citest_knsh/run.sh +# +# 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. +# +############################################################################ + +set -o xtrace + +# start from nuttx dir +olddir=$(pwd) +nuttdir=${CURRENTCONFDIR}/../../../../../../ +cd ${nuttdir} + +# run NTFC +confpath=${CURRENTCONFDIR}/config.yaml +jsonconf=${CURRENTCONFDIR}/session.json +testpath=${NTFCDIR}/external/nuttx-testing +ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf} + +ret="$?" +echo $ret + +# export test results; keep the results of an earlier attempt +artifacts=${ARTIFACTCONFDIR}/ntfc/result +mkdir -p ${artifacts} +rm -f pytest.debug.log +mv result/* ${artifacts} +rm -rf result + +# restore old dir +cd ${olddir} + +exit $ret diff --git a/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/session.json b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/session.json new file mode 100644 index 00000000000..b88ef1c1926 --- /dev/null +++ b/boards/arm/qemu/qemu-armv7a/configs/citest_knsh/session.json @@ -0,0 +1,13 @@ +{ + "module": { + "include_module": [], + "exclude_module": + [ + "Nuttx_System_Arch_Os_Stability" + ], + "order": [] + }, + "args": { + "kv": [] + } +}
