File: run_frob_test

package info (click to toggle)
frobby 0.9.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 11,616 kB
  • sloc: cpp: 30,134; sh: 1,184; makefile: 306; ansic: 102; lisp: 10
file content (24 lines) | stat: -rwxr-xr-x 703 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

testName="$1"
shift

if [ ! -e "$testName.frobInstance" ]; then exit 0; fi

inputFile="$testName.test $testName.frobInstance"
outputFile="$testName.frobNumber"

if [ "$1" = "_full" ]; then
  shift;

  # Test the legacy frobgrob action.
  ../testScripts/testhelper frobgrob "$inputFile" $outputFile $*
  if [ $? != 0 ]; then exit 1; fi

  # Try it without the bound optimization.
  ../testScripts/testhelper optimize "$inputFile" $outputFile $* -maxStandard -displayLevel 0 -chopFirstAndSubtract -bound off
  if [ $? != 0 ]; then exit 1; fi
fi

../testScripts/testhelper optimize "$inputFile" $outputFile $* -maxStandard -displayLevel 0 -chopFirstAndSubtract
if [ $? != 0 ]; then exit 1; fi