File: correct.sh

package info (click to toggle)
freej 0.10git20100110-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 32,080 kB
  • ctags: 22,705
  • sloc: cpp: 156,254; ansic: 25,531; sh: 13,538; perl: 4,624; makefile: 3,278; python: 2,889; objc: 1,284; asm: 1,125; ruby: 126
file content (23 lines) | stat: -rwxr-xr-x 425 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
FAILURES="FAILED"
for i in correct/*.js; do 
    echo $i;
    echo -n interp:' '
    INTERP=`Darwin_OPT.OBJ/js -f $i`
    echo $INTERP' '
    echo -n jit:' '
    JIT=`Darwin_OPT.OBJ/js -j -f $i`
    echo $JIT' '
    if [ "$INTERP" != "true" -o "$JIT" != "true" ]
    then
        FAILURES=${FAILURES}" "${i}
    fi
done

echo
if [[ "FAILED" != "${FAILURES}" ]]
then
    echo ${FAILURES}
else
    echo "PASSED"
fi