mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
boards/sim/citest: migrate to NTFC
migrate sim/citest to NTFC test cases Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
16d7fcb26c
commit
1e82af9352
@@ -0,0 +1,12 @@
|
||||
config:
|
||||
cwd: './'
|
||||
timeout_session: 6000
|
||||
|
||||
product:
|
||||
name: "ntfc-sim"
|
||||
cores:
|
||||
core0:
|
||||
name: 'main'
|
||||
device: 'sim'
|
||||
conf_path: './.config'
|
||||
elf_path: './nuttx'
|
||||
@@ -131,6 +131,7 @@ CONFIG_START_YEAR=2008
|
||||
CONFIG_SYSTEM_DUMPSTACK=y
|
||||
CONFIG_SYSTEM_NSH=y
|
||||
CONFIG_SYSTEM_POPEN=y
|
||||
CONFIG_SYSTEM_SETLOGMASK=y
|
||||
CONFIG_TESTING_CMOCKA=y
|
||||
CONFIG_TESTING_CXXTEST=y
|
||||
CONFIG_TESTING_DRIVER_TEST=y
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../../../../../../tools/ci/cirun.sh
|
||||
Executable
+55
@@ -0,0 +1,55 @@
|
||||
#!/usr/bin/env bash
|
||||
############################################################################
|
||||
# boards/sim/sim/sim/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,14 @@
|
||||
{
|
||||
"module": {
|
||||
"include_module": [],
|
||||
"exclude_module":
|
||||
[
|
||||
"Nuttx_System_Driver_Pm",
|
||||
"Nuttx_System_Fs_Fs"
|
||||
],
|
||||
"order": []
|
||||
},
|
||||
"args": {
|
||||
"kv": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user