boards/rv-virt/citest64: migrate to NTFC

migrate rv-virt/citest64 to NTFC test cases

Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
p-szafonimateusz 2025-12-30 20:07:49 +01:00 committed by Xiang Xiao
parent 59f200ac4f
commit 5585b01636
4 changed files with 80 additions and 1 deletions

View file

@ -0,0 +1,13 @@
config:
cwd: './'
product:
name: "ntfc-rv-virt64"
cores:
core0:
name: 'main'
device: 'qemu'
exec_path: 'qemu-system-riscv64'
exec_args: '-semihosting -M virt,aclint=on -smp 1 -bios none -nographic'
conf_path: './.config'
elf_path: './nuttx'

View file

@ -40,6 +40,7 @@ CONFIG_EXAMPLES_POPEN=y
CONFIG_EXAMPLES_USRSOCKTEST=y
CONFIG_FS_HOSTFS=y
CONFIG_FS_PROCFS=y
CONFIG_FS_TMPFS=y
CONFIG_HAVE_CXX=y
CONFIG_IDLETHREAD_STACKSIZE=2048
CONFIG_INIT_ENTRYPOINT="nsh_main"
@ -77,6 +78,7 @@ CONFIG_SYMTAB_ORDEREDBYNAME=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_POPEN=y
CONFIG_SYSTEM_POPEN_STACKSIZE=3072
CONFIG_SYSTEM_SETLOGMASK=y
CONFIG_TESTING_GETPRIME=y
CONFIG_TESTING_HEAP=y
CONFIG_TESTING_OSTEST=y

View file

@ -1 +0,0 @@
../../../../../../tools/ci/cirun.sh

View file

@ -0,0 +1,55 @@
#!/usr/bin/env bash
############################################################################
# boards/risc-v/qemu-rv/rv-virt/configs/citest64/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

View file

@ -0,0 +1,10 @@
{
"module": {
"include_module": [],
"exclude_module": [],
"order": []
},
"args": {
"kv": []
}
}