annotate bin/stress.sh @ 785:205dd903e4c8

add some mediocre workflow
author Jeff Hammel <k0scist@gmail.com>
date Mon, 12 Sep 2016 14:11:49 -0700
parents 1b8ea3a0cc9e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
768
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 #!/bin/bash
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 # stress test a program
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 export I=0
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 while "$@"
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 do
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 echo ${I}
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9 I=$((I+1))
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 sleep 5
1b8ea3a0cc9e stress.sh
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 done