mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 04:24:48 +00:00
Add Azure DevOps pipelines for ThreadX test
This commit is contained in:
22
scripts/install.sh
Executable file
22
scripts/install.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Install necessary softwares for Ubuntu.
|
||||
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
gcc-multilib \
|
||||
git \
|
||||
g++ \
|
||||
python3-pip \
|
||||
ninja-build \
|
||||
unifdef \
|
||||
p7zip-full \
|
||||
tofrodos \
|
||||
gawk \
|
||||
cmake \
|
||||
software-properties-common
|
||||
|
||||
python3 -m pip install --upgrade pip
|
||||
pip3 install artifacts-keyring
|
||||
pip3 install gcovr==4.1 $INDEX_URL
|
||||
|
||||
19
scripts/sdl_check.sh
Executable file
19
scripts/sdl_check.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
# !/bin/bash
|
||||
dir_list="common common_smp common_modules ports ports_module ports_smp samples"
|
||||
exclude_list="-path TX"
|
||||
file_list=$(find $dir_list \( $exclude_list \) -prune -o -type f -name '*.[ch]' -print)
|
||||
cd $(dirname `realpath $0`)/..
|
||||
echo "Checking for unexpected usage of memcpy..."
|
||||
echo ""
|
||||
echo "Excluding:"
|
||||
echo $exclude_list | grep -P "[^\s]*/[^\s]*" -o
|
||||
echo ""
|
||||
echo "Result:"
|
||||
grep -i "memcpy(" -i $file_list -n | grep -i "use case of .* is verified" -v
|
||||
if [ "$?" -eq "1" ];
|
||||
then
|
||||
echo "CLEAN"
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user