forked from rdkcentral/networkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d225ab2
commit bbc1839
Showing
28 changed files
with
4,252 additions
and
31 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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: l1-tests | ||
name: l1-test | ||
|
||
on: | ||
push: | ||
branches: [ main, develop, 'topic/**'] | ||
branches: [ main, 'sprint/**', 'release/**' ] | ||
pull_request: | ||
branches: [ main, develop] | ||
branches: [ main, 'sprint/**', 'release/**' ] | ||
|
||
env: | ||
BUILD_TYPE: Debug | ||
THUNDER_REF: "R4.4.1" | ||
THUNDER_TOOLS_REF: "R4.4.1" | ||
INTERFACES_REF: "R4.4.1" | ||
TOOLS_REF: "R4.4.1" | ||
|
||
jobs: | ||
l1-tests: | ||
l1-tests: | ||
name: Build and run unit tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -69,27 +69,20 @@ jobs: | |
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.16.x' | ||
|
||
- name: Install packages | ||
run: > | ||
sudo apt update | ||
&& | ||
sudo apt install -y libsqlite3-dev libcurl4-openssl-dev valgrind lcov clang libsystemd-dev libboost-all-dev libwebsocketpp-dev meson libcunit1 libcunit1-dev libnm-dev pkg-config | ||
- name: Install build tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake | ||
sudo apt install -y libnm0 git pkg-config ninja-build libssl-dev libglib2.0-dev libnm-dev libcurl4-openssl-dev valgrind lcov clang | ||
- name: Checkout ThunderTools | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: rdkcentral/ThunderTools | ||
path: ThunderTools | ||
ref: ${{env.TOOLS_REF}} | ||
|
||
ref: ${{env.THUNDER_TOOLS_REF}} | ||
- name: Build ThunderTools | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: > | ||
|
@@ -104,7 +97,7 @@ jobs: | |
cmake --build build/ThunderTools -j8 | ||
&& | ||
cmake --install build/ThunderTools | ||
- name: Checkout Thunder | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v3 | ||
|
@@ -123,7 +116,7 @@ jobs: | |
-DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" | ||
-DBUILD_TYPE=${{env.BUILD_TYPE}} | ||
-DBINDING=127.0.0.1 | ||
-DPORT=9998 | ||
-DPORT=55555 | ||
-DEXCEPTIONS_ENABLE=ON | ||
&& | ||
cmake --build build/Thunder -j8 | ||
|
@@ -152,11 +145,30 @@ jobs: | |
&& | ||
cmake --install build/ThunderInterfaces | ||
- name: Checkout networkmanager | ||
- name: Checkout rdkservices | ||
uses: actions/checkout@v3 | ||
with: | ||
path: networkmanager | ||
|
||
path: rdkservices | ||
|
||
- name: Generate external headers | ||
# Empty headers to mute errors | ||
run: > | ||
cd "${{github.workspace}}/networkmanager/Tests/" | ||
&& | ||
mkdir -p | ||
headers | ||
headers/rdk/iarmbus | ||
headers/network | ||
&& | ||
cd headers | ||
&& | ||
touch | ||
rdk/iarmbus/libIARM.h | ||
rdk/iarmbus/libIBus.h | ||
rdk/iarmbus/libIBusDaemon.h | ||
network/wifiSrvMgrIarmIf.h | ||
network/netsrvmgrIarm.h | ||
- name: Set clang toolchain | ||
if: ${{ matrix.compiler == 'clang' }} | ||
run: echo "TOOLCHAIN_FILE=${{github.workspace}}/networkmanager/Tests/clang.cmake" >> $GITHUB_ENV | ||
|
@@ -165,19 +177,30 @@ jobs: | |
if: ${{ matrix.compiler == 'gcc' && matrix.coverage == 'with-coverage' && !env.ACT }} | ||
run: echo "TOOLCHAIN_FILE=${{github.workspace}}/networkmanager/Tests/gcc-with-coverage.cmake" >> $GITHUB_ENV | ||
|
||
- name: Build networkmanager | ||
- name: Build NetworkManager | ||
run: > | ||
cmake | ||
-Hnetworkmanager | ||
cmake | ||
-H networkmanager | ||
-B build/networkmanager | ||
-DCMAKE_INSTALL_PREFIX=install/usr | ||
-DCMAKE_MODULE_PATH=${PWD}/install/tools/cmake | ||
-DCMAKE_TOOLCHAIN_FILE="${{ env.TOOLCHAIN_FILE }}" | ||
-DCMAKE_INSTALL_PREFIX="${{github.workspace}}/install/usr" | ||
-DCMAKE_MODULE_PATH="${{github.workspace}}/install/tools/cmake" | ||
-DCMAKE_CXX_FLAGS=" | ||
-fprofile-arcs | ||
-ftest-coverage | ||
-DEXCEPTIONS_ENABLE=ON | ||
-I ${{github.workspace}}/networkmanagerTests/headers | ||
-I ${{github.workspace}}/networkmanager/Tests/headers/rdk/iarmbus | ||
-I ${{github.workspace}}/networkmanager/Tests/headers/network | ||
-Wall -Werror -Wno-error=format= | ||
-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog" | ||
-DCOMCAST_CONFIG=OFF | ||
-DCMAKE_DISABLE_FIND_PACKAGE_IARMBus=ON | ||
-DPLUGIN_NETWORK=OFF | ||
-DPLUGIN_WIFIMANAGER=OFF | ||
-DENABLE_GNOME_NETWORKMANAGER=ON | ||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
&& | ||
cmake --build build/networkmanager -j8 | ||
cmake --build build/networkmanager -j16 | ||
&& | ||
cmake --install build/networkmanager | ||
|
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,108 @@ | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: WebKit | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Right | ||
AlignOperands: false | ||
AlignTrailingComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: false | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
BreakBeforeBinaryOperators: All | ||
BreakBeforeBraces: WebKit | ||
BreakBeforeInheritanceComma: false | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: BeforeComma | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 0 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: false | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: false | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeCategories: | ||
- Regex: '^"config\.h"' | ||
Priority: -1 | ||
# The main header for a source file automatically gets category 0 | ||
- Regex: '.*' | ||
Priority: 1 | ||
- Regex: '^<.*\.h>' | ||
Priority: 2 | ||
IncludeIsMainRegex: '(Test)?$' | ||
IndentCaseLabels: false | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: false | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: Inner | ||
ObjCBlockIndentWidth: 4 | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Left | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
TabWidth: 4 | ||
UseTab: Never | ||
... |
Oops, something went wrong.