mirror of
https://github.com/espressif/esp32-wifi-lib.git
synced 2025-09-20 07:18:06 +08:00
ci: wlan feature tests addition for below test suites (e1e57aa6)
1. PMF 2. WPA3 3. ASSOC 4. MEMLEAK 5. EAP 6. SCAN 7. AUTHMODE_DOWNGRADE 8. ESPNOW 9. EAPTLS
This commit is contained in:
@ -7,7 +7,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
|
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
|
||||||
MAKEFLAGS: "-j8"
|
MAKEFLAGS: "-j8"
|
||||||
ESPSIGMA_BRANCH: "master"
|
SSC_BRANCH: "master"
|
||||||
IDF_BRANCH: "master"
|
IDF_BRANCH: "master"
|
||||||
board: "esp32"
|
board: "esp32"
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This file is sourced in to the CI environment
|
# This file is sourced in to the CI environment
|
||||||
# in .gitlab-ci.yml file
|
# in .gitlab-ci.yml file
|
||||||
#
|
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
@ -12,13 +11,23 @@ die() {
|
|||||||
|
|
||||||
[ -z ${IDF_PATH} ] && die "IDF_PATH is not set."
|
[ -z ${IDF_PATH} ] && die "IDF_PATH is not set."
|
||||||
|
|
||||||
# Tool chain
|
# Set Env
|
||||||
export PATH=/wifi_ci/xtensa-esp32-elf/bin:${PATH}
|
cd ${CI_PROJECT_DIR}/esp-idf
|
||||||
|
./install.sh || { echo "Install Failure"; exit 1; }
|
||||||
|
. ./export.sh || { echo "Export Failure"; exit 1; }
|
||||||
|
|
||||||
# Sigma DUT
|
# Set Env
|
||||||
echo Running make for espsigma dut app...
|
cd ${CI_PROJECT_DIR}/SSC
|
||||||
cd ${CI_PROJECT_DIR}/espsigma/esp_sigma_dut
|
|
||||||
make ${MAKEFLAGS}
|
# SSC Dut
|
||||||
|
echo Running cmake for ssc app...
|
||||||
|
if test -f "gen_misc_ng.sh"; then
|
||||||
|
./gen_misc_ng.sh SSC
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "gen_misc_idf.sh"; then
|
||||||
|
./gen_misc_idf.sh ESP32 SSC
|
||||||
|
fi
|
||||||
|
|
||||||
# Copying binaries to create build tar ball
|
# Copying binaries to create build tar ball
|
||||||
cd $CI_PROJECT_DIR
|
cd $CI_PROJECT_DIR
|
||||||
@ -26,9 +35,10 @@ rm -rf ${board}-${CI_PIPELINE_ID}.debug
|
|||||||
mkdir -p ${board}-${CI_PIPELINE_ID}.debug/
|
mkdir -p ${board}-${CI_PIPELINE_ID}.debug/
|
||||||
|
|
||||||
echo Creating ${board}-${VERSION} app binaries debug directory...
|
echo Creating ${board}-${VERSION} app binaries debug directory...
|
||||||
cp ${CI_PROJECT_DIR}/espsigma/esp_sigma_dut/build/*.bin $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
cp ${CI_PROJECT_DIR}/SSC/build/ssc.bin $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
||||||
cp ${CI_PROJECT_DIR}/espsigma/esp_sigma_dut/build/*.elf $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
cp ${CI_PROJECT_DIR}/SSC/build/ssc.elf $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
||||||
cp ${CI_PROJECT_DIR}/espsigma/esp_sigma_dut/build/bootloader/bootloader.bin $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
cp ${CI_PROJECT_DIR}/SSC/build/bootloader/bootloader.bin $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
||||||
|
cp ${CI_PROJECT_DIR}/SSC/build/partition_table/partition-table.bin $board-${CI_PIPELINE_ID}.debug/ || { echo "Copy file Status: Failure"; exit 1; }
|
||||||
|
|
||||||
# Creating tar file (debug)
|
# Creating tar file (debug)
|
||||||
tar -zcvf $board-${CI_PIPELINE_ID}.debug.tar.gz $board-${CI_PIPELINE_ID}.debug || { echo "Create tar Status: Failure"; exit 1; }
|
tar -zcvf $board-${CI_PIPELINE_ID}.debug.tar.gz $board-${CI_PIPELINE_ID}.debug || { echo "Create tar Status: Failure"; exit 1; }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
build_espsigma:
|
build_ssc_esp32:
|
||||||
stage: build
|
stage: build
|
||||||
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
||||||
tags:
|
tags:
|
||||||
@ -26,7 +26,8 @@ build_espsigma:
|
|||||||
- cd $CI_PROJECT_DIR
|
- cd $CI_PROJECT_DIR
|
||||||
- rm -rf esp-idf/$wlan_lib_path/*
|
- rm -rf esp-idf/$wlan_lib_path/*
|
||||||
- cp -rf /tmp/esp_wifi_lib/* esp-idf/$wlan_lib_path/.
|
- cp -rf /tmp/esp_wifi_lib/* esp-idf/$wlan_lib_path/.
|
||||||
- if [[ "${BOT_CUSTOMIZED_REVISION}" ]] && [[ "$BOT_CUSTOMIZED_REVISION" == *"espsigma"* ]]; then ESPSIGMA_BRANCH=$(python -c 'import os;print eval(os.environ["BOT_CUSTOMIZED_REVISION"])["espsigma"]') ; fi
|
- if [[ "${BOT_CUSTOMIZED_REVISION}" ]] && [[ "$BOT_CUSTOMIZED_REVISION" == *"ssc"* ]]; then SSC_BRANCH=$(python -c 'import os;print eval(os.environ["BOT_CUSTOMIZED_REVISION"])["ssc"]') ; fi
|
||||||
- echo Cloning espsigma - ${ESPSIGMA_BRANCH} ...
|
- echo Cloning SSC - ${SSC_BRANCH} ...
|
||||||
- git clone --recursive --single-branch -b $ESPSIGMA_BRANCH --dissociate ${GITLAB_SSH_SERVER}/espressif/espsigma.git
|
- git clone --recursive --single-branch -b $SSC_BRANCH --dissociate ${GITLAB_SSH_SERVER}/yinling/SSC.git
|
||||||
- sh tools/ci/build_app.sh
|
- chmod +x tools/ci/build_app.sh
|
||||||
|
- ./tools/ci/build_app.sh
|
||||||
|
@ -1,25 +1,4 @@
|
|||||||
PMF:
|
include:
|
||||||
stage: feature_test
|
- project: 'espressif/wlan_ci'
|
||||||
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
ref: master
|
||||||
parallel: 5
|
file: '/ci/templates/wifi_lib_pipeline_tests.yaml'
|
||||||
tags:
|
|
||||||
- wlan_feature
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- gitlabCI-${CI_PROJECT_NAME}-${CI_BUILD_ID}.tar.gz
|
|
||||||
|
|
||||||
expire_in: 1 week
|
|
||||||
when: always
|
|
||||||
|
|
||||||
only:
|
|
||||||
refs:
|
|
||||||
- triggers
|
|
||||||
|
|
||||||
script:
|
|
||||||
- git clone ${GITLAB_SSH_SERVER}/app-frameworks/devops.git
|
|
||||||
- tar -xzvf $board-${CI_PIPELINE_ID}.debug.tar.gz
|
|
||||||
- python -u devops/automation/Runner.py wifi_pmf --id WIFI_PMF_${CI_NODE_INDEX} --build "$board-${CI_PIPELINE_ID}.debug"
|
|
||||||
- tar -zcvf gitlabCI-${CI_PROJECT_NAME}-${CI_BUILD_ID}.tar.gz gitlabCI-${CI_PROJECT_NAME}-${CI_BUILD_ID}
|
|
||||||
- exit "$(cat /tmp/gitlabCI-${CI_PROJECT_NAME}-${CI_BUILD_ID})"
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user