Skip to content

create a script directory and add a script to run test program and collect data

Insop Song yocto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1create a script directory and add a script to run test program and collect datadocs/00-INDEX docs/00-README scripts/README +1 more+94 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [meta-realtime][PATCH 0/1] create a script directory and add a script to run test program and collect data

create a script directory and add a script to run test program and collect data

- test scripts will help to run and collect the data, automate the test and re-producible by others

- run_rt-app.py runs rt-app on the target machine and collects the output log to host

- how to run:
$ fab -f run_rt-app.py run_app

Note: requires fabric (python program) on the host

--------------
Run example
--------------

 $ fab -f run_rt-app.py run_app
[[email protected]] Executing task 'run_app'

===========================================================
1. Conecting remote : [email protected]
===========================================================

running script on host [fri2], OS[Linux fri2 3.8.1-yocto-standard #1 SMP PREEMPT Sat Mar 16 03:20:59 PDT 2013 i686 GNU/Linux]

===========================================================
2. Running rt-app 1 times..
===========================================================

[[email protected]] run: echo "test log (period = 100000, execution time 20000) run 1 times on each 10 sec

" > /home/root/rt-app_run_log-2013-03-19-03-52.txt
[[email protected]] run: /usr/bin/rt-app -t 100000:20000:d -D 10 >> /home/root/rt-app_run_log-2013-03-19-03-52.txt [[email protected]] out: [rt-app] <notice> [0] Using SCHED_DEADLINE policy:
[[email protected]] out: [rt-app] <notice> [0] starting thread with period: 100000, exec: 20000,deadline: 100000, priority: 10 [[email protected]] out: [rt-app] <notice> [0] Locking pages in memory
[[email protected]] out: [rt-app] <notice> [0] Exiting.
[[email protected]] out:

[localhost] local: /usr/bin/scp [email protected]:/home/root/rt-app_run_log-2013-03-19-03-52.txt .
rt-app_run_log-2013-03-19-03-52.txt 100% 7552 7.4KB/s 00:00

==============================================================================
3. Run finished, and log file rt-app_run_log-2013-03-19-03-52.txt is copied to host.
==============================================================================

Done.
Disconnecting from [email protected]... done.

--------------
Log file output
--------------

cat /home/root/rt-app_run_log-2013-03-19-03-52.txt
test log (period = 100000, execution time 20000) run 1 times on each 10 sec

#idx period min_et max_et rel_st start end deadline dur. slack Budget Used Budget
0 100000 20000 20000 33061 1859244267 1859264275 1859344264 20008 79989
0 100000 20000 20000 133176 1859344382 1859364389 1859444264 20007 79876
0 100000 20000 20000 233177 1859444383 1859464391 1859544264 20009 79873
0 100000 20000 20000 333174 1859544380 1859564389 1859644264 20009 79875
0 100000 20000 20000 433186 1859644392 1859664402 1859744264 20010 79862
...
0 100000 20000 20000 9533182 1868744388 1868764398 1868844264 20009 79867
0 100000 20000 20000 9633185 1868844391 1868864400 1868944264 20010 79864
0 100000 20000 20000 9733182 1868944388 1868964398 1869044264 20010 79867
0 100000 20000 20000 9833141 1869044347 1869064356 1869144264 20009 79908
0 100000 20000 20000 9933162 1869144368 1869164375 1869244264 20007 79889
$

Insop Song (1):
create a script directory and add a script to run test program and
collect data

 docs/00-INDEX         |    4 +--
 docs/00-README        |    6 ++--
 scripts/README        |    1 +
 scripts/run_rt-app.py |   88 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 94 insertions(+), 5 deletions(-)
 create mode 100644 scripts/README
 create mode 100644 scripts/run_rt-app.py
Signature · 1 line
1.7.9.5