diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/config.yaml b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/config.yaml new file mode 100644 index 0000000000000..8764520901472 --- /dev/null +++ b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/config.yaml @@ -0,0 +1,13 @@ +config: + cwd: './' + +product: + name: "ntfc-rv-virt64-kernel-smp" + cores: + core0: + name: 'main' + device: 'qemu' + exec_path: 'qemu-system-riscv64' + exec_args: '-semihosting -M virt,aclint=on -cpu rv64 -smp 4 -nographic' + conf_path: './.config' + elf_path: './nuttx' diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/run.sh b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/run.sh new file mode 100755 index 0000000000000..e8b8a60e0ded8 --- /dev/null +++ b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/run.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +############################################################################ +# boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/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 +ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf} + +ret="$?" +echo $ret + +# disable venv +deactivate + +# export test results +artifacts=${ARTIFACTCONFDIR}/ntfc +mkdir -p ${artifacts} +rm -f pytest.debug.log +mv result ${artifacts} + +# restore old dir +cd ${olddir} + +exit $ret diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/session.json b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/session.json new file mode 100644 index 0000000000000..3e71e22cf49c0 --- /dev/null +++ b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/session.json @@ -0,0 +1,10 @@ +{ + "module": { + "include_module": [], + "exclude_module": [], + "order": [] + }, + "args": { + "kv": [] + } +}