source: test/batch/multi-run.sh

Last change on this file was 15, checked in by tim, 9 years ago

.

  • Property svn:executable set to *
File size: 583 bytes
Line 
1#!/bin/sh
2
3BINARY=bin/sampler
4
5BASEPATH=$1
6shift
7RUNSIZE=$1
8shift
9HOST=$1
10shift
11PORT=$1
12shift
13DELTAS=$@
14
15BASE_DELTA=20000
16
17for D in $DELTAS; do
18{
19   
20    OUTPUT=`printf "${BASEPATH}_d%0.6d" $D`
21    CASES="{\"short\":$BASE_DELTA,\"long\":$(($BASE_DELTA+$D))}"
22    #echo "Running:" taskset -c 1 ./sampler.py -c "$CASES" "$OUTPUT" "$RUNSIZE" "$HOST" "$PORT"
23    #taskset -c 1 ./sampler.py -c "$CASES" "$OUTPUT" "$RUNSIZE" "$HOST" "$PORT"
24    echo "Running:" "$BINARY" -c "$CASES" "$OUTPUT" "$RUNSIZE" "$HOST" "$PORT"
25    $BINARY -c "$CASES" "$OUTPUT" "$RUNSIZE" "$HOST" "$PORT"
26} done
Note: See TracBrowser for help on using the repository browser.