This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 0721dfd1719ec689442bccccf93c7a846c388359 Author: p-szafonimateusz <[email protected]> AuthorDate: Fri Jan 2 13:57:34 2026 +0100 boards/sabre-6quad/citest: migrate to NTFC migrate sabre-6quad/citest to NTFC test cases Signed-off-by: p-szafonimateusz <[email protected]> --- .../imx6/sabre-6quad/configs/citest/config.yaml | 13 +++++ .../arm/imx6/sabre-6quad/configs/citest/defconfig | 2 + boards/arm/imx6/sabre-6quad/configs/citest/run.sh | 56 +++++++++++++++++++++- .../imx6/sabre-6quad/configs/citest/session.json | 10 ++++ 4 files changed, 80 insertions(+), 1 deletion(-) diff --git a/boards/arm/imx6/sabre-6quad/configs/citest/config.yaml b/boards/arm/imx6/sabre-6quad/configs/citest/config.yaml new file mode 100644 index 00000000000..18fa16be62f --- /dev/null +++ b/boards/arm/imx6/sabre-6quad/configs/citest/config.yaml @@ -0,0 +1,13 @@ +config: + cwd: './' + +product: + name: "sabre-6quad" + cores: + core0: + name: 'main' + device: 'qemu' + exec_path: 'qemu-system-arm' + exec_args: '-semihosting -M sabrelite -m 1024 -smp 4 -nographic' + conf_path: './.config' + elf_path: './nuttx' diff --git a/boards/arm/imx6/sabre-6quad/configs/citest/defconfig b/boards/arm/imx6/sabre-6quad/configs/citest/defconfig index 3f686449303..d66eab9cf76 100644 --- a/boards/arm/imx6/sabre-6quad/configs/citest/defconfig +++ b/boards/arm/imx6/sabre-6quad/configs/citest/defconfig @@ -33,6 +33,7 @@ CONFIG_EXAMPLES_POPEN=y CONFIG_EXAMPLES_USRSOCKTEST=y CONFIG_EXPERIMENTAL=y CONFIG_FS_PROCFS=y +CONFIG_FS_TMPFS=y CONFIG_HAVE_CXX=y CONFIG_HAVE_CXXINITIALIZE=y CONFIG_IMX6_UART1=y @@ -63,6 +64,7 @@ CONFIG_START_YEAR=2016 CONFIG_SYMTAB_ORDEREDBYNAME=y CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_POPEN=y +CONFIG_SYSTEM_SETLOGMASK=y CONFIG_TESTING_GETPRIME=y CONFIG_TESTING_HEAP=y CONFIG_TESTING_OSTEST=y diff --git a/boards/arm/imx6/sabre-6quad/configs/citest/run.sh b/boards/arm/imx6/sabre-6quad/configs/citest/run.sh deleted file mode 120000 index c9e283cbeb0..00000000000 --- a/boards/arm/imx6/sabre-6quad/configs/citest/run.sh +++ /dev/null @@ -1 +0,0 @@ -../../../../../../tools/ci/cirun.sh \ No newline at end of file diff --git a/boards/arm/imx6/sabre-6quad/configs/citest/run.sh b/boards/arm/imx6/sabre-6quad/configs/citest/run.sh new file mode 100755 index 00000000000..b0fac808690 --- /dev/null +++ b/boards/arm/imx6/sabre-6quad/configs/citest/run.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +############################################################################ +# boards/arm/imx6/sabre-6quad/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} + +# enable venv +source ${NTFCDIR}/venv/bin/activate + +# run NTFC +confpath=${CURRENTCONFDIR}/config.yaml +jsonconf=${CURRENTCONFDIR}/session.json +testpath=${NTFCDIR}/external/nuttx-testing +python3 -m ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf} + +ret="$?" +echo $ret + +# disable venv +deactivate + +# export test results +artifacts=${ARTIFACTCONFDIR}/ntfc +mkdir -p ${artifacts} +mv pytest.debug.log ${artifacts} +mv result ${artifacts} + +# restore old dir +cd ${olddir} + +exit $ret diff --git a/boards/arm/imx6/sabre-6quad/configs/citest/session.json b/boards/arm/imx6/sabre-6quad/configs/citest/session.json new file mode 100644 index 00000000000..3e71e22cf49 --- /dev/null +++ b/boards/arm/imx6/sabre-6quad/configs/citest/session.json @@ -0,0 +1,10 @@ +{ + "module": { + "include_module": [], + "exclude_module": [], + "order": [] + }, + "args": { + "kv": [] + } +}
