-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from wenhui-xie/master
Add NetXDuo regression test.
- Loading branch information
Showing
1,828 changed files
with
708,603 additions
and
1,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"image": "ghcr.io/tiejunms/azure_rtos_docker", | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cmake-tools" | ||
], | ||
|
||
"remoteUser": "vscode", | ||
|
||
"runArgs": [ "--cap-add=NET_ADMIN"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: regression_test | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
NetXDuo: | ||
permissions: | ||
contents: read | ||
issues: read | ||
checks: write | ||
pull-requests: write | ||
pages: write | ||
id-token: write | ||
uses: azure-rtos/threadx/.github/workflows/regression_template.yml@master | ||
with: | ||
build_script: ./scripts/build_nxd.sh | ||
test_script: ./scripts/test_nxd.sh | ||
cmake_path: ./test/cmake/netxduo | ||
result_affix: NetXDuo | ||
skip_deploy: true | ||
Deploy: | ||
permissions: | ||
contents: read | ||
issues: read | ||
checks: write | ||
pull-requests: write | ||
pages: write | ||
id-token: write | ||
needs: [NetXDuo] | ||
uses: azure-rtos/threadx/.github/workflows/regression_template.yml@master | ||
with: | ||
skip_test: true | ||
deploy_list: "NetXDuo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /bin/bash | ||
|
||
$(dirname `realpath $0`)/../test/cmake/netxduo/run.sh build all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /bin/bash | ||
|
||
CTEST_PARALLEL_LEVEL=4 $(dirname `realpath $0`)/../test/cmake/netxduo/run.sh test all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) | ||
|
||
project(libs LANGUAGES C) | ||
|
||
if($ENV{ENABLE_64}) | ||
message(STATUS "Building for 64bit") | ||
else() | ||
add_compile_options(-m32) | ||
add_link_options(-m32) | ||
message(STATUS "Building for 32bit") | ||
endif() | ||
message(STATUS "Using toolchain file: ${CMAKE_TOOLCHAIN_FILE}.") | ||
|
||
set(TX_USER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/tx_user.h) | ||
get_filename_component( | ||
externals ${CMAKE_CURRENT_SOURCE_DIR}/../.. ABSOLUTE) | ||
add_subdirectory(${externals}/threadx threadx) | ||
add_subdirectory(${externals}/filex filex) | ||
target_compile_options(threadx PRIVATE -DTX_ENABLE_EVENT_TRACE) | ||
if(NOT DEFINED ENV{ENABLE_IDLE}) | ||
target_compile_options(threadx PRIVATE -DTX_LINUX_NO_IDLE_ENABLE) | ||
endif() | ||
|
||
foreach(lib threadx filex) | ||
get_target_property(dirs ${lib} INCLUDE_DIRECTORIES) | ||
execute_process(COMMAND mkdir -p ${CMAKE_BINARY_DIR}/inc) | ||
foreach(dir ${dirs}) | ||
file(GLOB header_files ${dir}/*.h) | ||
foreach(header_file ${header_files}) | ||
execute_process(COMMAND ln -sf ${header_file} ${CMAKE_BINARY_DIR}/inc) | ||
endforeach() | ||
endforeach() | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/**************************************************************************/ | ||
/* */ | ||
/* Copyright (c) Microsoft Corporation. All rights reserved. */ | ||
/* */ | ||
/* This software is licensed under the Microsoft Software License */ | ||
/* Terms for Microsoft Azure RTOS. Full text of the license can be */ | ||
/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ | ||
/* and in the root directory of this software. */ | ||
/* */ | ||
/**************************************************************************/ | ||
|
||
|
||
/**************************************************************************/ | ||
/**************************************************************************/ | ||
/** */ | ||
/** ThreadX Component */ | ||
/** */ | ||
/** User Specific */ | ||
/** */ | ||
/**************************************************************************/ | ||
/**************************************************************************/ | ||
|
||
|
||
/**************************************************************************/ | ||
/* */ | ||
/* PORT SPECIFIC C INFORMATION RELEASE */ | ||
/* */ | ||
/* tx_user.h PORTABLE C */ | ||
/* 6.0 */ | ||
/* */ | ||
/* AUTHOR */ | ||
/* */ | ||
/* William E. Lamie, Microsoft Corporation */ | ||
/* */ | ||
/* DESCRIPTION */ | ||
/* */ | ||
/* This file contains user defines for configuring ThreadX in specific */ | ||
/* ways. This file will have an effect only if the application and */ | ||
/* ThreadX library are built with TX_INCLUDE_USER_DEFINE_FILE defined. */ | ||
/* Note that all the defines in this file may also be made on the */ | ||
/* command line when building ThreadX library and application objects. */ | ||
/* */ | ||
/* RELEASE HISTORY */ | ||
/* */ | ||
/* DATE NAME DESCRIPTION */ | ||
/* */ | ||
/* 05-19-2020 William E. Lamie Initial Version 6.0 */ | ||
/* */ | ||
/**************************************************************************/ | ||
|
||
#ifndef TX_USER_H | ||
#define TX_USER_H | ||
|
||
#define TX_THREAD_USER_EXTENSION int bsd_errno; | ||
|
||
#endif |
Oops, something went wrong.