File: bench-tests

package info (click to toggle)
cctools 9.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 44,624 kB
  • sloc: ansic: 192,539; python: 20,827; cpp: 20,199; sh: 11,719; perl: 4,106; xml: 3,688; makefile: 1,224
file content (24 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

source "$(dirname "$0")"/test-common.bash

DIR="bench-tests.workflow"

if ! [ -d "$DIR" ]; then
	weaver -N -O "$DIR" "$(dirname "$0")/bench-tests.py"
fi

for i in 1 2 3 4 5; do
	for pull in $(for g in $((1+1*2**10)) 0; do printf '%012d\t' "$g"; done); do
		for scheduler in fifo-0 fifo-1; do
			for replication in push-async-1 push-async-0; do
				if [ "$pull" -eq 1024 -a ! \( "$scheduler" = 'fifo-1' -a "$replication" = 'push-async-0' \) ]; then
					continue
				fi
				testrun "$DIR" "$(pwd)/test.${pull}.${scheduler}.${replication}.${i}" "scheduler=${scheduler}&replication=${replication}&pull-threshold=${pull}"
			done
		done
	done
done

# vim: set noexpandtab tabstop=4: