diff options
| author | Bo Chen <[email protected]> | 2023-11-30 10:16:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-30 10:16:04 +0800 |
| commit | 9c9cddd2ff3aceec36f9340311bc5652efbbec2f (patch) | |
| tree | f79c4f83a45598cf2530d78fb67feaa0db41884d /scripts | |
| parent | 837b032b9c773ea32f78dfa6339a76f2df3568fb (diff) | |
| parent | c505fcd28b818f95f38d82f040263738e555eae6 (diff) | |
Merge pull request #209 from wenhui-xie/master
Add NetXDuo regression test.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build_nxd.sh | 3 | ||||
| -rwxr-xr-x | scripts/install.sh | 32 | ||||
| -rwxr-xr-x | scripts/test_nxd.sh | 3 |
3 files changed, 38 insertions, 0 deletions
diff --git a/scripts/build_nxd.sh b/scripts/build_nxd.sh new file mode 100755 index 00000000..2512fb67 --- /dev/null +++ b/scripts/build_nxd.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +$(dirname `realpath $0`)/../test/cmake/netxduo/run.sh build all diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 00000000..25da84ce --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# + +# Remove large folder +rm -rf /opt/hostedtoolcache + +# Install necessary softwares for Ubuntu. + +sudo dpkg --add-architecture i386 +sudo apt-get update +sudo apt-get install -y \ + gcc-multilib \ + git \ + g++ \ + python3-pip \ + ninja-build \ + unifdef \ + p7zip-full \ + tofrodos \ + dos2unix \ + gawk \ + libssl-dev:i386 \ + software-properties-common + +wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add - +CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//') +apt-add-repository "deb https://apt.kitware.com/ubuntu/ $CODENAME main" + +python3 -m pip install --upgrade pip +pip3 install gcovr==4.1 +pip install --upgrade cmake + diff --git a/scripts/test_nxd.sh b/scripts/test_nxd.sh new file mode 100755 index 00000000..e0de4019 --- /dev/null +++ b/scripts/test_nxd.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +CTEST_PARALLEL_LEVEL=4 $(dirname `realpath $0`)/../test/cmake/netxduo/run.sh test all |
