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..4e8654e3b272b --- /dev/null +++ b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/config.yaml @@ -0,0 +1,16 @@ +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' + app_bindir: '../apps/bin' + exec_cwd: './' + boot_timeout: 15 diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/defconfig b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/defconfig index e838ea99f3631..24769d5b601b3 100644 --- a/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/defconfig +++ b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/defconfig @@ -52,6 +52,7 @@ CONFIG_ELF_STACKSIZE=3072 CONFIG_EXAMPLES_HELLO=m CONFIG_FS_HOSTFS=y CONFIG_FS_PROCFS=y +CONFIG_FS_TMPFS=y CONFIG_IDLETHREAD_STACKSIZE=3072 CONFIG_INIT_FILEPATH="/system/bin/init" CONFIG_INIT_MOUNT=y @@ -86,6 +87,7 @@ CONFIG_SCHED_LPWORK=y CONFIG_SCHED_WAITPID=y CONFIG_SERIAL_UART_ARCH_MMIO=y CONFIG_SMP=y +CONFIG_SYSTEM_SETLOGMASK=y CONFIG_STACK_COLORATION=y CONFIG_START_DAY=7 CONFIG_START_MONTH=10 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..c2715498abfc8 --- /dev/null +++ b/boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/run.sh @@ -0,0 +1,49 @@ +#!/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} + +# 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 +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": [] + } +}