Skip to content

Commit a6d029e

Browse files
boards/sim/citest: migrate to NTFC
migrate sim/citest to NTFC test cases Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
1 parent b843810 commit a6d029e

4 files changed

Lines changed: 80 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
config:
2+
cwd: '/github/workspace/sources/'
3+
timeout_session: 6000
4+
5+
product:
6+
name: "ntfc-sim"
7+
cores:
8+
core0:
9+
name: 'main'
10+
device: 'sim'
11+
conf_path: '/github/workspace/sources/nuttx/.config'
12+
elf_path: '/github/workspace/sources/nuttx/nuttx'

boards/sim/sim/sim/configs/citest/defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ CONFIG_START_YEAR=2008
131131
CONFIG_SYSTEM_DUMPSTACK=y
132132
CONFIG_SYSTEM_NSH=y
133133
CONFIG_SYSTEM_POPEN=y
134+
CONFIG_SYSTEM_SETLOGMASK=y
134135
CONFIG_TESTING_CMOCKA=y
135136
CONFIG_TESTING_CXXTEST=y
136137
CONFIG_TESTING_DRIVER_TEST=y

boards/sim/sim/sim/configs/citest/run

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env bash
2+
############################################################################
3+
# boards/sim/sim/sim/configs/citest/run
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
# Licensed to the Apache Software Foundation (ASF) under one or more
8+
# contributor license agreements. See the NOTICE file distributed with
9+
# this work for additional information regarding copyright ownership. The
10+
# ASF licenses this file to you under the Apache License, Version 2.0 (the
11+
# "License"); you may not use this file except in compliance with the
12+
# License. You may obtain a copy of the License at
13+
#
14+
# http://www.apache.org/licenses/LICENSE-2.0
15+
#
16+
# Unless required by applicable law or agreed to in writing, software
17+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19+
# License for the specific language governing permissions and limitations
20+
# under the License.
21+
#
22+
############################################################################
23+
24+
set -o xtrace
25+
26+
# start from NTFC dir
27+
olddir=$(pwd)
28+
cd ${NTFCDIR}
29+
30+
# enable venv
31+
source ./venv/bin/activate
32+
33+
# run NTFC
34+
confpath=${CURRENTCONFDIR}/config.yaml
35+
jsonconf=${CURRENTCONFDIR}/session.json
36+
python3 -m ntfc test --confpath=${confpath} --jsonconf=${jsonconf}
37+
38+
ret="$?"
39+
echo $ret
40+
41+
# disable venv
42+
deactivate
43+
44+
# export test results
45+
artifacts=${ARTIFACTCONFDIR}/ntfc
46+
mkdir -p ${artifacts}
47+
mv pytest.debug.log ${artifacts}
48+
mv result ${artifacts}
49+
50+
# restore old dir
51+
cd ${olddir}
52+
53+
exit $ret
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"module": {
3+
"include_module": [],
4+
"exclude_module":
5+
[
6+
"Nuttx_System_Driver_Pm",
7+
"Nuttx_System_Fs_Fs"
8+
],
9+
"order": []
10+
},
11+
"args": {
12+
"kv": []
13+
}
14+
}

0 commit comments

Comments
 (0)