aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test_script
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_script')
-rwxr-xr-xscripts/test_script44
1 files changed, 44 insertions, 0 deletions
diff --git a/scripts/test_script b/scripts/test_script
new file mode 100755
index 0000000..1bef33a
--- /dev/null
+++ b/scripts/test_script
@@ -0,0 +1,44 @@
1#!/bin/bash
2#
3# Original script by John Calandrino 2008
4# Changes by Andrea Bastoni 2010
5#
6# Batch script for running all benchmarking experiments.
7# Run it as root!
8#
9#for A in "PFAIR" "GSN-EDF" "C-EDF" "PSN-EDF";
10for A in "GSN-EDF";
11do
12 echo "Setting plugin $A..."
13# ./setsched $A
14 sleep 1
15
16 for W in 1024;
17 do
18 echo "Experiments for WSS of `expr $W`KB"
19 DEFINE=-DWSS=$W make
20 sleep 1
21 for X in `seq -w 50 50 450`; # Number of tasks
22 do
23 for Y in `seq 0 9`; # Taskset number
24 do
25 # Read task set from some source and start all tasks.
26 TASK=0
27 while read inputline;
28 do
29 e=`echo $inputline | awk -F' ' '{print $1}'`
30 p=`echo $inputline | awk -F' ' '{print $2}'`
31 c=`echo $inputline | awk -F' ' '{print $3}'`
32 ./rt_launch -w $e $p -p $c ./pm_task ../pm_raw_results/results_`expr $A`_`expr $W`_`expr $X`_`expr $Y`_`expr $TASK`.raw
33 TASK=`expr $TASK + 1`
34 done < `expr $A`-ts/uni1_`expr $X`_`expr $Y`.ts
35 ./release_ts -d 5000
36 # Sleep for 150 seconds. This includes ~60 seconds
37 # of run time followed by 90 seconds of "tear down" time.
38 # NOTE: may need to sleep longer than this...
39 sleep 150
40 killall pm_task
41 done
42 done
43 done
44done