Jens Geyer | d629ea0 | 2015-09-23 21:16:50 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | if [ -z $1 ]; then |
| 4 | echo Usage: $0 LANGUAGE |
| 5 | echo Re-list all failures of a specific LANGUAGE into known_failures_Linux.json |
| 6 | echo LANGUAGE should be library name like cpp, java, py etc |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | if [ -z $PYTHON]; then |
| 11 | PYTHON=python |
| 12 | fi |
| 13 | |
| 14 | TARGET_LANG=$1 |
| 15 | OUT_FILE=known_failures_Linux.json |
| 16 | echo Rebuilding known failures for $TARGET_LANG |
| 17 | |
| 18 | TMPFILE=.__tmp__rebuild__ |
| 19 | grep -v -e "\"$1-" -e "\-$1_" $OUT_FILE > $TMPFILE |
| 20 | mv $TMPFILE $OUT_FILE |
| 21 | $PYTHON test.py --client $1 |
| 22 | $PYTHON test.py -U merge |
| 23 | $PYTHON test.py --server $1 |
| 24 | $PYTHON test.py -U merge |