aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test_script
blob: 1bef33a2af611af5ecbd86aa7b29a6444f3c22ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
#
# Original script by John Calandrino 2008
# Changes by Andrea Bastoni 2010
#
# Batch script for running all benchmarking experiments.
# Run it as root!
#
#for A in "PFAIR" "GSN-EDF" "C-EDF" "PSN-EDF";
for A in "GSN-EDF";
do
	echo "Setting plugin $A..."
#	./setsched $A
	sleep 1

	for W in 1024;
	do
		echo "Experiments for WSS of `expr $W`KB"
		DEFINE=-DWSS=$W make
		sleep 1
		for X in `seq -w 50 50 450`; # Number of tasks
		do
			for Y in `seq 0 9`; # Taskset number
			do
				# Read task set from some source and start all tasks.
				TASK=0
				while read inputline;
				do
					e=`echo $inputline | awk -F' ' '{print $1}'`
					p=`echo $inputline | awk -F' ' '{print $2}'`
					c=`echo $inputline | awk -F' ' '{print $3}'`
					./rt_launch -w $e $p -p $c ./pm_task ../pm_raw_results/results_`expr $A`_`expr $W`_`expr $X`_`expr $Y`_`expr $TASK`.raw
					TASK=`expr $TASK + 1`
				done < `expr $A`-ts/uni1_`expr $X`_`expr $Y`.ts
				./release_ts -d 5000
				# Sleep for 150 seconds. This includes ~60 seconds
				# of run time followed by 90 seconds of "tear down" time.
				# NOTE: may need to sleep longer than this...
				sleep 150
				killall pm_task
			done
		done
        done
done