summaryrefslogtreecommitdiff
path: root/tools/fuzzing/rost/rerun.sh
blob: 3e751891a5ef1de5e8dbd289f9449159e443641c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

TOP_DIR="$SCRIPT_DIR/../../.."
MIN_DIR="$SCRIPT_DIR/min"


find "$MIN_DIR" -type f -name '*rost' | while read f;
do
    echo "=========== $f"

    "$TOP_DIR/src/rost" $f /bin/ls

    status=$?

    if [ $status -le 2 ]; then
        rm $f
    fi

    sleep 1s

done