summaryrefslogtreecommitdiff
path: root/test/bin
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-07-27 17:35:03 +0000
committerpaltherr <paltherr@epfl.ch>2004-07-27 17:35:03 +0000
commitcbe17005ad6d9ec0559c10e74d237b6be702202c (patch)
tree00d5416fcfb3ab843dc9015aee0734afe48d322f /test/bin
parentb6078ccf178d35530e7460510f78a5687539b16a (diff)
downloadscala-cbe17005ad6d9ec0559c10e74d237b6be702202c.tar.gz
scala-cbe17005ad6d9ec0559c10e74d237b6be702202c.tar.bz2
scala-cbe17005ad6d9ec0559c10e74d237b6be702202c.zip
- Fixed computation of output directory
Diffstat (limited to 'test/bin')
-rwxr-xr-xtest/bin/scala-test22
1 files changed, 12 insertions, 10 deletions
diff --git a/test/bin/scala-test b/test/bin/scala-test
index 1735b0b158..325fd62e98 100755
--- a/test/bin/scala-test
+++ b/test/bin/scala-test
@@ -126,7 +126,7 @@ test_shell() {
}
test_compilation() {
- output="$OBJDIR"/`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
+ output="$OBJDIR"`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
classpath="$output";
if $CYGWIN; then
classpath=`cygpath -w -p "$classpath"`;
@@ -142,7 +142,7 @@ test_compilation() {
}
test_xml() {
- output="$OBJDIR"/`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
+ output="$OBJDIR"`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
dtdfile="`expr "$source" : "\(.*\)\\.scala"`.dtd";
xmlfile="`expr "$source" : "\(.*\)\\.scala"`.xml";
nsfile="`expr "$source" : "\(.*\)\\.scala"`.namespace";
@@ -169,7 +169,7 @@ test_disassembler() {
else
SCALAP_ARGS="";
fi;
- output="$OBJDIR"/`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
+ output="$OBJDIR"`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
classpath="$output";
if $CYGWIN; then
classpath=`cygpath -w -p "$classpath"`;
@@ -185,7 +185,7 @@ test_disassembler() {
}
test_compilation_success() {
- output="$OBJDIR"/`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
+ output="$OBJDIR"`expr "$source" : "\(.*\)\\.scala"`-$KIND.obj;
if $CYGWIN; then
os_output=`cygpath -w "$output"`;
else
@@ -199,7 +199,7 @@ test_compilation_success() {
test_compilation_failure() {
(
- OBJDIR="$OBJDIR/"`dirname "$source"`;
+ OBJDIR="$OBJDIR"`dirname "$source"`;
cd `dirname "$source"`;
source=`basename "$source"`;
if test_compilation_success "$@"; then false; else
@@ -489,7 +489,7 @@ main() {
SUCCESS_COUNT=0;
FAILURE_COUNT=0;
SRCDIR="$PREFIX/files";
- OBJDIR=".";
+ OBJDIR="";
TEST_ALL="true";
TEST_TYPE="auto";
@@ -599,10 +599,12 @@ main() {
esac;
fi;
- if [ -d "$OBJDIR" ]; then
- OBJDIR=`cd "$OBJDIR"; pwd`;
- else
- abort "could not access directory '$OBJDIR'";
+ if [ -n "$OBJDIR" ]; then
+ if [ -d "$OBJDIR" ]; then
+ OBJDIR=`cd "$OBJDIR"; pwd`/;
+ else
+ abort "could not access directory '$OBJDIR'";
+ fi
fi
test_all;