From e6b460b8af1e52c6a2f0532d9169a0700c07b4de Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 6 Jul 2009 12:59:21 -0400 Subject: [PATCH] tests: add option handling to tests.sh Signed-off-by: Jean Privat --- tests/tests.sh | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index a24bf32..b975f51 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -15,14 +15,29 @@ # See the License for the specific language governing permissions and # limitations under the License. -# This shell script compile, run and verify NIT program files +# This shell script compile, run and verify Nit program files -# Ruby binary (none if you want to let the program to decide) -#RUBY= +# The default nitc compiler [ -z "$NITC" ] && NITC=../bin/nitc -# Options to use with the ruby compiler -# OPT= +usage() +{ + e=`basename "$0"` + cat<