File: try_one.sh

package info (click to toggle)
auto-multiple-choice 1.4.0-2~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 18,520 kB
  • sloc: perl: 23,839; xml: 20,920; cpp: 1,791; makefile: 472; ansic: 186; sh: 80
file content (13 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13

try_one() {
  t=$1
  if $t --to-stdout $ARGS $@ > $RESULT_FILE
  then
      echo -e "[ \e[0;32mOK\e[0m ] $t"
      return 0
  else
      echo -e "[\e[0;31mFAIL\e[0m] $t"
      sed ' s/^/       /;' $RESULT_FILE
      return 1
  fi
}