Skip to content

tcp lwip: added sed scripts for converting orig c code to inet, reduc… #88

tcp lwip: added sed scripts for converting orig c code to inet, reduc…

tcp lwip: added sed scripts for converting orig c code to inet, reduc… #88

Workflow file for this run

name: "Test: other"
on:
push:
branches:
- master
workflow_dispatch:
# nothing
jobs:
other-tests:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: add debug/release mode when the runtest scripts can switch between
# MODEs or executables based on command line arguments or envvars
mode: ["debug"]
testdir: ["packet", "queueing", "protocol"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
repository: omnetpp/omnetpp
path: omnetpp
- uses: actions/checkout@v3
with:
path: inet
- run: mkdir -p /home/runner/work/ccache
- uses: actions/cache/restore@v3
with:
path: /home/runner/work/ccache
key: native-${{ matrix.mode }}-ccache-${{ github.run_id }}
# See: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
restore-keys: native-${{ matrix.mode }}-ccache
- name: Build and run ${{ matrix.testdir }} test
env:
MODE: ${{ matrix.mode }}
run: |
echo "::group::Installing packages"
sudo apt update
sudo apt install -y --no-install-recommends git wget curl ca-certificates \
make ccache clang lld gdb bison flex perl doxygen graphviz libxml2-dev zlib1g-dev \
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libz3-dev libopenscenegraph-dev python3
echo "::endgroup::"
source $GITHUB_WORKSPACE/inet/_scripts/github/build-omnetpp.sh
source $GITHUB_WORKSPACE/inet/_scripts/github/build-inet.sh
echo "::group::Running ${{ matrix.testdir }} tests"
cd tests/${{ matrix.testdir }}
./runtest
echo "::endgroup::"