Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/config.yaml
Original file line number Diff line number Diff line change
@@ -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'
55 changes: 55 additions & 0 deletions boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/run.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions boards/risc-v/qemu-rv/rv-virt/configs/ksmp64/session.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"module": {
"include_module": [],
"exclude_module": [],
"order": []
},
"args": {
"kv": []
}
}
Loading