File: runloop.bash

package info (click to toggle)
prrte 3.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,128 kB
  • sloc: ansic: 80,431; sh: 4,289; perl: 3,195; makefile: 1,829; lex: 352; python: 239
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