annotate bin/stress.sh @ 794:e059c4e85d9f

add docker cleanup helper
author Jeff Hammel <k0scist@gmail.com>
date Wed, 19 Oct 2016 09:04:34 -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