From 526917486633c5f69aab6fe64021b2c0998b74c6 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Sat, 30 Jul 2005 23:18:59 +0000 Subject: userExclude feature for build and test infrastr... userExclude feature for build and test infrastructure --- .cvsignore | 2 ++ ant-build-nsc.sh | 8 +++++- ant-common.sh | 19 +++++++++++++ ant-test-nsc.sh | 9 +++++- test-nsc.xml | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 122 insertions(+), 2 deletions(-) create mode 100755 ant-common.sh create mode 100644 test-nsc.xml diff --git a/.cvsignore b/.cvsignore index 182cf49d52..e4e7dba551 100644 --- a/.cvsignore +++ b/.cvsignore @@ -11,3 +11,5 @@ objects tmp build-nsc.properties env.sh +concrete-build-nsc.xml +concrete-test-nsc.xml diff --git a/ant-build-nsc.sh b/ant-build-nsc.sh index 6b15ce300e..0769f443b8 100755 --- a/ant-build-nsc.sh +++ b/ant-build-nsc.sh @@ -14,5 +14,11 @@ export CLASSPATH # for debugging your classpath #echo $CLASSPATH +if [ -f developer/${USER}/build-nsc-excludes.xml ]; then + sed -e "s/userExcludes\ \"\"/userExcludes\ SYSTEM\ \"developer\/${USER}\/build-nsc-excludes.xml\"/" < build-nsc.xml > concrete-build-nsc.xml; + else + ln -s build-nsc.xml concrete-build-nsc.xml; +fi -ant -f build-nsc.xml $* +ant -f concrete-build-nsc.xml $* +rm -f concrete-build-nsc.xml diff --git a/ant-common.sh b/ant-common.sh new file mode 100755 index 0000000000..7da266bd54 --- /dev/null +++ b/ant-common.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +export ANT_OPTS=-Xmx256m + +awk '/^$/ {next;} /^#/ {next;} {print "export " $1 $2 $3}' build-nsc.properties > env.sh + +. env.sh + +# ------- don't change these, change build-nsc.properties instead + +function addJar() { # string -> void + if [ -f $1 ]; then + CLASSPATH=$1:$CLASSPATH; + return 0; + else + echo you supplied $1 for $2, but it does not exists; + return -1; + fi +} diff --git a/ant-test-nsc.sh b/ant-test-nsc.sh index 556d75bf00..93f130ef63 100755 --- a/ant-test-nsc.sh +++ b/ant-test-nsc.sh @@ -15,5 +15,12 @@ export CLASSPATH # for debugging your classpath #echo $CLASSPATH +if [ -f developer/${USER}/test-nsc-excludes.xml ]; then + sed -e "s/userExcludes\ \"\"/userExcludes\ SYSTEM\ \"developer\/${USER}\/test-nsc-excludes.xml\"/" < test-nsc.xml > concrete-test-nsc.xml; + else + ln -s test-nsc.xml concrete-test-nsc.xml; +fi + +ant -f concrete-test-nsc.xml $* +rm -f concrete-test-ncs.xml -ant -f test-nsc.xml $* diff --git a/test-nsc.xml b/test-nsc.xml new file mode 100644 index 0000000000..5fbe1eec2b --- /dev/null +++ b/test-nsc.xml @@ -0,0 +1,86 @@ + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + Hi, I am your helpful test script. Passing options to nsc? + Either, add a line to developer/${user.name}/custom.properties + nscArgs = -check:term;-debug + or set a property nscArgs on the cmd line + sh ant-test-nsc.sh -DnscArgs="-check:term;-debug" + + Note the hyphens, the quotes on the cmd line, no spaces between options, the ';' separator + + + + + + + ==== running nsc on predef and runtime + + + + + + + ===== running nsc on the rest + + + + + + + + + + &userExcludes; + + + + + -- cgit v1.2.3