[yocto] [meta-realtime][PATCH 0/1] create a script directory and add a script to run test program and collect data
Insop Song
insop.song at gmail.com
Tue Mar 19 04:14:19 PDT 2013
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
[root at 192.168.1.78] Executing task 'run_app'
===========================================================
1. Conecting remote : root at 192.168.1.78
===========================================================
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..
===========================================================
[root at 192.168.1.78] 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
[root at 192.168.1.78] run: /usr/bin/rt-app -t 100000:20000:d -D 10 >> /home/root/rt-app_run_log-2013-03-19-03-52.txt
[root at 192.168.1.78] out: [rt-app] <notice> [0] Using SCHED_DEADLINE policy:
[root at 192.168.1.78] out: [rt-app] <notice> [0] starting thread with period: 100000, exec: 20000,deadline: 100000, priority: 10
[root at 192.168.1.78] out: [rt-app] <notice> [0] Locking pages in memory
[root at 192.168.1.78] out: [rt-app] <notice> [0] Exiting.
[root at 192.168.1.78] out:
[localhost] local: /usr/bin/scp root at 192.168.1.78:/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 root at 192.168.1.78... 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
--
1.7.9.5
More information about the yocto
mailing list