Skip to content

Use more Jim Tcl versions for testing, contd. 2 #163

Use more Jim Tcl versions for testing, contd. 2

Use more Jim Tcl versions for testing, contd. 2 #163

name: Integration tests
on:
push:
schedule:
- cron: '42 20 * * 2,4,6'
jobs:
integration_tests_linux:
name: OpenOCD on Linux
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
openocd_version:
- vanilla-0.10.0
- vanilla-0.11.0
- vanilla-0.12.0
- vanilla-master-libjim-from-apt
- vanilla-master-libjim-internal
- vanilla-master-libjim-0.79
- vanilla-master-libjim-0.83
- riscv-master-libjim-from-apt
steps:
- name: Check out the repository code
uses: actions/checkout@v4
- name: Build OpenOCD ${{ matrix.openocd_version }}
run: |
mkdir -p oocd-build && cd oocd-build
python3 ../tests_integration/build_openocd.py ${{ matrix.openocd_version }}
- name: Install pytest
run: |
python3 -m pip install --user pytest
- name: Run integration test
run: |
python3 run_tests.py integration \
--force-pythonpath \
--openocd-path oocd-build/install/${{ matrix.openocd_version }}/openocd/bin/openocd
integration_test_windows:
name: OpenOCD on Windows
runs-on: windows-2022
steps:
- name: Check out the repository code
uses: actions/checkout@v4
- name: Download OpenOCD
run: |
Invoke-WebRequest -Uri "https://github.com/xpack-dev-tools/openocd-xpack/releases/download/v0.12.0-6/xpack-openocd-0.12.0-6-win32-x64.zip" -OutFile "openocd.zip"
- name: Unzip OpenOCD
run: |
unzip openocd.zip
- name: Install pytest
run: |
python3 -m pip install pytest
- name: Run integration testing
run: |
python3 run_tests.py integration --force-pythonpath --openocd-path xpack-openocd-0.12.0-6\\bin\\openocd