Skip to content

Commit

Permalink
Adding rt test plan (New) (canonical#1170)
Browse files Browse the repository at this point in the history
* Added short cyclictest in real time tests

* New sru for real time devices

* Increased cyclictest_rt duration to 1 minute

* Adding more information to the rt-performance jobs
  • Loading branch information
fernando79513 authored and LiaoU3 committed Apr 17, 2024
1 parent 3b49e75 commit d144f8d
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
24 changes: 24 additions & 0 deletions providers/base/units/rt-performance-tests/jobs.pxu
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
id: rt-performance-tests/cyclictest_rt_latency
category_id: rt-performance-tests
estimated_duration: 24h
_summary:
Run cyclictest to test scheduling latency. Default run time is 24 hours.
_purpose:
This test executes the cyclictest command for a long period of time to
evaluate the system's ability to maintain scheduling latency. It checks
that the maximum latency did not exceed the threshold and that there are no
overflows (scheduling misses) for each thread.
plugin: shell
requires:
package.name == 'rt-tests'
user: root
environ: CYCLICTEST_DURATION
command:
run_cyclictest.py --duration "${CYCLICTEST_DURATION:-86400}"


id: rt-performance-tests/cyclictest_rt
category_id: rt-performance-tests
estimated_duration: 60s
_summary:
A short-duration cyclictest to validate the system's real-time capabilities.
_purpose:
This test runs for 60 seconds to provide a rapid assessment of the system's
real-time performance. It uses the cyclictest tool to measure the scheduling
latency and overflow occurrences. The goal is to ensure that basic real-time
functions can be executed without latency spikes.
plugin: shell
requires:
package.name == 'rt-tests'
user: root
command:
run_cyclictest.py --duration 60
1 change: 1 addition & 0 deletions providers/base/units/rt-performance-tests/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ id: rt-performance-tests-automated
_name: Realtime Performance Tests (Automated)
unit: test plan
include:
rt-performance-tests/cyclictest_rt
bootstrap_include:

id: rt-performance-tests-stress
Expand Down
39 changes: 39 additions & 0 deletions providers/sru/units/sru-rt.pxu
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
id: sru-rt
_name: All SRU Tests (Ubuntu Real-time)
unit: test plan
_description:
This test plan contains tests that are useful for validating a Stable
Release Update (SRU) on Ubuntu Certified systems. This test plan is not
recommended for, nor will it be accepted for self-testing purposes.
include:
# Following jobs all run first before the nested parts
# Please keep it short and avoid jobs triggering suspend or reboots
# Whenever possible prefer the use of nested parts instead
audio/alsa_record_playback_automated
recovery_info_attachment
miscellanea/submission-resources
info/systemd-analyze
info/systemd-analyze-critical-chain
net_if_management_attachment
install/apt-get-gets-updates
miscellanea/dkms_build_validation
networking/http
networking/gateway_ping
thunderbolt3/storage-preinserted
nested_part:
sru
rt-performance-tests-automated
bootstrap_include:
device
graphics_card
net_if_management
exclude:
cpu/clocktest
disk/stats_.*
disk/storage_device_.*
installer_debug.gz
stress/memory_stress_ng
audio/valid-sof-firmware-sig
miscellanea/check_prerelease
suspend/bluetooth_obex_.*
miscellanea/debsums

0 comments on commit d144f8d

Please sign in to comment.