]>
Commit | Line | Data |
---|---|---|
6d2010ae A |
1 | #!/bin/sh |
2 | ||
3 | EXECUTABLES="exit.nodyld \ | |
4 | exit.nopie.dyld-but-no-Libsystem exit.pie.dyld-but-no-Libsystem \ | |
5 | exit.nopie.dyld-and-Libsystem exit.pie.dyld-and-Libsystem \ | |
6 | exit.nopie exit.pie" | |
7 | ||
8 | RUN=run | |
9 | PRODUCT=`sw_vers -productName` | |
10 | COUNT= | |
11 | ||
12 | case "$PRODUCT" in | |
13 | "iPhone OS") | |
14 | COUNT=1000 | |
15 | ;; | |
16 | *) | |
17 | COUNT=10000 | |
18 | ;; | |
19 | esac | |
20 | ||
21 | for j in 1 2 3; do | |
22 | for i in ${EXECUTABLES}; do | |
23 | echo "Running $i" | |
24 | /usr/bin/time ./${RUN} $j $((${COUNT}/$j)) ./$i | |
25 | if [ $? -ne 0 ]; then | |
26 | echo "Failed $i, exit status $?" | |
27 | exit 1 | |
28 | fi | |
29 | done | |
30 | done |