File: runloop.bash

package info (click to toggle)
prrte 4.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 9,108 kB
  • sloc: ansic: 81,373; sh: 4,289; perl: 3,150; makefile: 1,878; python: 610; lex: 352
file content (22 lines) | stat: -rwxr-xr-x 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

for i in {1..100} ; do
    rm -rf ~/tmp/prte*
    if [ $(expr $i % 2) == "0" ]; then
        echo "================================"
        echo "================================ Iteration $i"
        echo "================================"
    fi
    gtimeout -k 27 25 prterun -n 1 ./qspawn
    #timeout -k 133 130 mpiexec -n 1 python test/runtests.py -v -i test_spawn
    RTN=$?
    if [[ $RTN != 0 ]] ; then
        echo "=-=-=-=->> Error: Failed with $RTN"
        exit 1
    fi
    if [ $(expr $i % 2) == "0" ]; then
        echo ""
    fi
done

exit 0