-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (29 loc) · 1 KB
/
loadtest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Loadtest
on:
push:
branches:
- "main"
pull_request:
jobs:
robot-loadtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v1
- name: Install robotframework libraries
run: sudo pip install robotframework robotframework-requests robotframework-run-keyword-async python-can
- name: Install robotframework-scapylibrary fork
run: sudo pip install git+https://github.com/kade-ddnkv/robotframework-ScapyLibrary@master
- name: Raw UPF Presetup
uses: ./.github/actions/raw-upf-presetup
id: raw-upf-presetup
- name: Install tcpreplay
run: sudo apt install tcpreplay
- name: Build
run: go build -v -o bin/eupf ./cmd
- name: Run eUPF and sleep
run: sudo ./bin/eupf &
- name: Run robot Loadtest
run: sudo robot -v TCPREPLAY_LIMIT:2000000 -v TCPREPLAY_THREADS:8 ./robot/Loadtest.robot
- name: Stop eUPF
run: sudo killall eupf