Skip to content

Commit aad1571

Browse files
committed
update
1 parent 470d7fd commit aad1571

4 files changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/regression_samples_rtos_test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ jobs:
3232
uses: eclipse-threadx/threadx/.github/workflows/regression_template.yml@master
3333
with:
3434
cmake_path: ./test/cmake/usbx
35-
build_script: ./scripts/build.sh samples_rtos_build
36-
test_script: ./scripts/test.sh samples_rtos_build
35+
install_script: ./scripts/install_samples_rtos.sh
36+
build_script: ./scripts/build_samples_rtos.sh
37+
test_script: ./scripts/test_samples_rtos.sh
3738
coverage_name: ${{ inputs.coverage_name }}
3839
skip_coverage: ${{ !!inputs.skip_coverage }}
3940

@@ -50,7 +51,8 @@ jobs:
5051
uses: eclipse-threadx/threadx/.github/workflows/regression_template.yml@master
5152
with:
5253
cmake_path: ./test/cmake/usbx
53-
build_script: ./scripts/build.sh samples_rtos_build
54-
test_script: ./scripts/test.sh samples_rtos_build
54+
install_script: ./scripts/install_samples_rtos.sh
55+
build_script: ./scripts/build_samples_rtos.sh
56+
test_script: ./scripts/test_samples_rtos.sh
5557
coverage_name: samples_rtos_build
5658
skip_coverage: true

scripts/build_samples_rtos.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
$(dirname `realpath $0`)/../test/cmake/usbx/run.sh build samples_rtos_build

scripts/install_samples_rtos.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
#
3+
# Install necessary softwares for Ubuntu (samples RTOS regression tests).
4+
# Coverage tools are not required as coverage is not collected for this build.
5+
6+
sudo apt-get update
7+
sudo apt-get install -y \
8+
gcc-multilib \
9+
git \
10+
g++ \
11+
python3-pip \
12+
ninja-build \
13+
unifdef \
14+
p7zip-full \
15+
tofrodos \
16+
gawk \
17+
software-properties-common
18+
19+
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
20+
CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//')
21+
sudo apt-add-repository -y "deb https://apt.kitware.com/ubuntu/ $CODENAME main"
22+
sudo apt-get -y install cmake
23+
24+
python3 -m pip install --upgrade pip
25+
pip3 install --upgrade cmake

scripts/test_samples_rtos.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
CTEST_PARALLEL_LEVEL=4 $(dirname `realpath $0`)/../test/cmake/usbx/run.sh test samples_rtos_build

0 commit comments

Comments
 (0)