commit
5e53b3ec68
|
@ -0,0 +1,12 @@
|
|||
# Checklist
|
||||
|
||||
- [ ] Component contains License
|
||||
- [ ] Component contains README.md
|
||||
- [ ] Component contains idf_component.yml file with `url` field defined
|
||||
- [ ] Component was added to [upload job](https://github.com/espressif/idf-extra-components/blob/master/.github/workflows/upload_component.yml#L18)
|
||||
- [ ] Component was added to [build job](https://github.com/espressif/idf-extra-components/blob/master/test_app/CMakeLists.txt#L8)
|
||||
- [ ] _Optional:_ Component contains unit tests
|
||||
- [ ] CI passing
|
||||
|
||||
# Change description
|
||||
_Please describe your change here_
|
|
@ -89,7 +89,7 @@ jobs:
|
|||
run: pip install pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf
|
||||
- name: Run Test App on target
|
||||
working-directory: test_app
|
||||
run: pytest -s --junit-xml=./test_app_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}.xml --embedded-services esp,idf --target=${{ matrix.idf_target }}
|
||||
run: pytest --junit-xml=./test_app_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}.xml --target=${{ matrix.idf_target }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: always()
|
||||
with:
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
name: Build USB Test Application
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Once per day at midnight
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build USB Test App
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
idf_ver: ["release-v5.0", "latest"]
|
||||
idf_target: ["esp32s2", "esp32s3"]
|
||||
runs-on: ubuntu-20.04
|
||||
container: espressif/idf:${{ matrix.idf_ver }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build USB Test Application
|
||||
env:
|
||||
IDF_TARGET: ${{ matrix.idf_target }}
|
||||
shell: bash
|
||||
working-directory: usb/test_app
|
||||
run: |
|
||||
. ${IDF_PATH}/export.sh
|
||||
idf.py build
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: usb_test_app_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}
|
||||
path: |
|
||||
usb/test_app/build/bootloader/bootloader.bin
|
||||
usb/test_app/build/partition_table/partition-table.bin
|
||||
usb/test_app/build/usb_test_app.bin
|
||||
usb/test_app/build/usb_test_app.elf
|
||||
usb/test_app/build/flasher_args.json
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Upload components to component service
|
||||
uses: espressif/github-actions/upload_components@master
|
||||
uses: espressif/upload-components-ci-action@v1
|
||||
with:
|
||||
directories: "cbor;jsmn;libsodium;pid_ctrl;qrcode;nghttp;sh2lib;expat;esp_encrypted_img;coap;pcap;json_generator;json_parser;usb/usb_host_cdc_acm"
|
||||
namespace: "espressif"
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
[pytest]
|
||||
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
|
||||
python_files = pytest_*.py
|
||||
|
||||
# set traceback to "short" to prevent the overwhelming tracebacks
|
||||
addopts =
|
||||
-s
|
||||
--embedded-services esp,idf
|
||||
--tb short
|
||||
|
||||
markers =
|
||||
# target markers
|
||||
esp32: support esp32 target
|
||||
esp32s2: support esp32s2 target
|
||||
esp32s3: support esp32s3 target
|
||||
esp32c3: support esp32c3 target
|
||||
esp32c2: support esp32c2 target
|
||||
supported_targets: support all supported targets ('esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2')
|
||||
|
||||
# env markers
|
||||
usb_host: usb host runners
|
||||
|
||||
# log related
|
||||
log_cli = True
|
||||
log_cli_level = INFO
|
||||
log_cli_format = %(asctime)s %(levelname)s %(message)s
|
||||
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
||||
# junit related
|
||||
junit_family = xunit1
|
||||
## log all to `system-out` when case fail
|
||||
junit_logging = stdout
|
||||
junit_log_passing_tests = False
|
|
@ -2,10 +2,10 @@
|
|||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/peripherals/usb/host/cdc/common
|
||||
set(EXTRA_COMPONENT_DIRS ../usb_host_cdc_acm
|
||||
$ENV{IDF_PATH}/examples/peripherals/usb/host/msc/components/)
|
||||
|
||||
# Set the components to include the tests for.
|
||||
set(TEST_COMPONENTS "cdc_acm_host" "msc" CACHE STRING "List of components to test")
|
||||
set(TEST_COMPONENTS "usb_host_cdc_acm" "msc" CACHE STRING "List of components to test")
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(usb_test_app)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
idf_component_register(SRCS "test_cdc_acm_host.c" "usb_device.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES cdc_acm_host tinyusb unity)
|
||||
REQUIRES usb_host_cdc_acm tinyusb unity)
|
||||
|
|
Loading…
Reference in New Issue