boards/sabre-6quad/citest: migrate to NTFC

migrate sabre-6quad/citest to NTFC test cases

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz
2026-01-02 13:57:34 +01:00
committed by Xiang Xiao
parent cb87a19d7d
commit 0721dfd171
4 changed files with 80 additions and 1 deletions
@@ -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'
@@ -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
@@ -1 +0,0 @@
../../../../../../tools/ci/cirun.sh
+55
View File
@@ -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
@@ -0,0 +1,10 @@
{
"module": {
"include_module": [],
"exclude_module": [],
"order": []
},
"args": {
"kv": []
}
}