Skip to content
Merged
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
26 changes: 5 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,42 +184,26 @@ jobs:
- name: Export NuttX Repo SHA
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV

- name: Install NTFC
- name: Run builds
uses: ./sources/nuttx/.github/actions/ci-container
env:
BLOBDIR: /tools/blobs
with:
run: |
# install python venv
apt-get update
apt-get install -y python3 python3-dev python3-venv

# get NTFC sources
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-ntfc
pip install ntfc==0.0.1
mkdir /github/workspace/nuttx-ntfc
mkdir /github/workspace/nuttx-ntfc/external
cd /github/workspace/nuttx-ntfc

# install NTFC with venv
python3 -m venv /github/workspace/nuttx-ntfc/venv
source /github/workspace/nuttx-ntfc/venv/bin/activate
pip3 install .
deactivate

# get NTFC test cases
cd external
git clone -b release-0.0.1 https://github.com/szafonimateusz-mi/nuttx-testing

- name: Run builds
uses: ./sources/nuttx/.github/actions/ci-container
env:
BLOBDIR: /tools/blobs
with:
run: |
echo "::add-matcher::sources/nuttx/.github/gcc.json"
export ARTIFACTDIR=`pwd`/buildartifacts
export NTFCDIR=/github/workspace/nuttx-ntfc
git config --global --add safe.directory /github/workspace/sources/nuttx
git config --global --add safe.directory /github/workspace/sources/apps
cd sources/nuttx/tools/ci
cd /github/workspace/sources/nuttx/tools/ci
if [ "X${{matrix.boards}}" = "Xcodechecker" ]; then
./cibuild.sh -c -A -N -R --codechecker testlist/${{matrix.boards}}.dat
else
Expand Down
8 changes: 1 addition & 7 deletions boards/arm/imx6/sabre-6quad/configs/citest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,15 @@ 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}
ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}

ret="$?"
echo $ret

# disable venv
deactivate

# export test results
artifacts=${ARTIFACTCONFDIR}/ntfc
mkdir -p ${artifacts}
Expand Down
8 changes: 1 addition & 7 deletions boards/arm64/qemu/qemu-armv8a/configs/citest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,15 @@ 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}
ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}

ret="$?"
echo $ret

# disable venv
deactivate

# export test results
artifacts=${ARTIFACTCONFDIR}/ntfc
mkdir -p ${artifacts}
Expand Down
8 changes: 1 addition & 7 deletions boards/arm64/qemu/qemu-armv8a/configs/citest_smp/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,15 @@ 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}
ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}

ret="$?"
echo $ret

# disable venv
deactivate

# export test results
artifacts=${ARTIFACTCONFDIR}/ntfc
mkdir -p ${artifacts}
Expand Down
8 changes: 1 addition & 7 deletions boards/risc-v/qemu-rv/rv-virt/configs/citest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,15 @@ dd if=/dev/zero of=fatfs.img bs=512 count=128K
mkfs.fat fatfs.img
chmod 777 ./fatfs.img

# 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}
ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}

ret="$?"
echo $ret

# disable venv
deactivate

# export test results
artifacts=${ARTIFACTCONFDIR}/ntfc
mkdir -p ${artifacts}
Expand Down
2 changes: 1 addition & 1 deletion boards/risc-v/qemu-rv/rv-virt/configs/citest64/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ source ${NTFCDIR}/venv/bin/activate
confpath=${CURRENTCONFDIR}/config.yaml
jsonconf=${CURRENTCONFDIR}/session.json
testpath=${NTFCDIR}/external/nuttx-testing
python3 -m ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}
ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}

ret="$?"
echo $ret
Expand Down
8 changes: 1 addition & 7 deletions boards/sim/sim/sim/configs/citest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,15 @@ 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}
ntfc test --testpath=${testpath} --confpath=${confpath} --jsonconf=${jsonconf}

ret="$?"
echo $ret

# disable venv
deactivate

# export test results
artifacts=${ARTIFACTCONFDIR}/ntfc
mkdir -p ${artifacts}
Expand Down
Loading