You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- TEST_DIR="`pwd`/tests/"
-
- make test
-
- for file in `find $TEST_DIR -name "*.diff" 2>/dev/null`
- do
- grep "\-\-XFAIL--" ${file/%diff/phpt} >/dev/null 2>&1
- if [ $? -gt 0 ]
- then
- FAILS[${#FAILS[@]}]="$file"
- fi
- done
-
- if [ ${#FAILS[@]} -gt 0 ]
- then
- for fail in "${FAILS[@]}"
- do
- sh -xc "cat $fail"
- done
- exit 1
- else
- exit 0
- fi
|