Skip to content

Commit

Permalink
Update 02-Run_Unit_Test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Silabs-ThieuVu authored Nov 15, 2024
1 parent 9af8de1 commit fe07c38
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/02-Run_Unit_Test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,17 @@ jobs:
export PATH=$PATH:~/slc_cli
export PATH=$PATH:/usr/bin/
export PATH=$PATH:~/amazon-corretto-17.0.12.7.1-linux-x64/bin
export TOOL_DIRS=$TOOL_DIRS_RUN
export LST_PATH=$PWD/build/test/integration_test/build/${BOARD_NAME}/integration_test_iec60730_watchdog/S
slc configuration --sdk=${SDK_PATH_RUN}
ninja --version
slc signature trust --sdk $SDK_PATH_RUN
echo "TOOL_DIRS=$TOOL_DIRS"
#slc configuration -gcc=$TOOL_DIRS
slc signature trust -extpath $SDK_PATH_RUN/extension/$REPO_NAME
slc configuration -gcc=$TOOL_DIRS_RUN
# make prepare
echo "Run unit test for MG12"
cd build
cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_UNIT_TESTING=ON -DBOARD_NAME=$BOARD_NAME_MG12
make unit_test_info -j4
slc signature trust -extpath $SDK_PATH_RUN/extension/$REPO_NAME
cd ../test
if [ -z "${{ github.event.inputs.ADAPTER_SN_MG12 }}" ]; then
ADAPTER_SN_MG12=440189400
Expand All @@ -391,7 +389,6 @@ jobs:
#echo 'bash execute_unit_test.sh $BOARD_NAME $TASK $COMPONENTS $ADAPTER_SN $COMPILER "-DENABLE_CRC_USE_SW=ON -DENABLE_SW_CRC_TABLE=ON"' > log/Test_integration_$BOARD_NAME_GCC_4.txt
#echo 'bash execute_unit_test.sh $BOARD_NAME $TASK $COMPONENTS $ADAPTER_SN $COMPILER "-DENABLE_CRC_USE_SW=ON -DENABLE_SW_CRC_TABLE=ON -DENABLE_CAL_CRC_32=ON"' > log/Test_integration_$BOARD_NAME_GCC_5.txt
#echo 'bash execute_unit_test.sh $BOARD_NAME $TASK $COMPONENTS $ADAPTER_SN $COMPILER "-DENABLE_CRC_USE_SW=ON -DENABLE_CAL_CRC_32=ON"' > log/Test_integration_$BOARD_NAME_GCC_5.txt
echo "Run unit test for MG24"
cd ${{ github.workspace }}
ls -la
Expand All @@ -401,9 +398,9 @@ jobs:
unzip ./build/firmware_mg24_gcc.zip -d ./build/
ls -R
cd build
slc signature trust -extpath $SDK_PATH_RUN/extension/$REPO_NAME
cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_UNIT_TESTING=ON -DBOARD_NAME=$BOARD_NAME_MG24
make unit_test_info -j4
slc signature trust -extpath $SDK_PATH_RUN/extension/$REPO_NAME
cd ../test
if [ -z "${{ github.event.inputs.ADAPTER_SN_MG12 }}" ]; then
ADAPTER_SN_MG12=440189400
Expand Down

0 comments on commit fe07c38

Please sign in to comment.