Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve latency tests #104

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 0 additions & 170 deletions latency-tests-analysis/scripts/generate_latency_report.py

This file was deleted.

17 changes: 14 additions & 3 deletions launch-yocto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,20 @@ test_latency() {
-e "pcap_loop=${PCAP_LOOP}"
echo "Latency tests launched succesfully"

# Launch script
cp "${WORK_DIR}/ci/latency-tests-analysis/scripts/generate_latency_report.py" ci_latency_tests/results/
cqfd run python3 ci_latency_tests/results/generate_latency_report.py -o "${WORK_DIR}/ansible/ci_latency_tests/results"
# Analyse SV timestamps with sv_timestamp_analysis
sv_timestamp_path="${WORK_DIR}/ansible/ci_latency_tests/sv-timestamp-analysis"

git clone -q "https://${SEAPATH_BASE_REPO}/sv-timestamp-analysis" ${sv_timestamp_path}
cqfd -d "${sv_timestamp_path}/.cqfd" -f "${sv_timestamp_path}/.cqfdrc" init

cqfd -d "${sv_timestamp_path}/.cqfd" -f "${sv_timestamp_path}/.cqfdrc" run \
python3 ${sv_timestamp_path}/sv_timestamp_analysis.py \
--sub "${WORK_DIR}/ansible/ci_latency_tests/results/ts_guest0.txt" \
--pub "${WORK_DIR}/ansible/ci_latency_tests/results/ts_sv_publisher.txt" \
--subscriber_name "guest0" \
--stream "0..7" \
--max_latency "2000" \
-o "${WORK_DIR}/ansible/ci_latency_tests/results"

# Check if latency tests passed
if grep -q "FAILED" "${WORK_DIR}/ansible/ci_latency_tests/results/latency_tests.adoc"; then
Expand Down