* Removed all Id tags.
[cacao.git] / tests / regression / resolving / Makefile.am
index 560f993c61a1c985beffaeec04699e3651055bd2..91f45fcfeaa1c88eb1a6cd4006fd5a0312f6ae0d 100644 (file)
@@ -1,25 +1,50 @@
+## tests/regression/resolving/Makefile.am
+##
+## Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
+## C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
+## E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
+## J. Wenninger, Institut f. Computersprachen - TU Wien
+##
+## This file is part of CACAO.
+##
+## This program is free software; you can redistribute it and/or
+## modify it under the terms of the GNU General Public License as
+## published by the Free Software Foundation; either version 2, or (at
+## your option) any later version.
+##
+## This program is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+## 02110-1301, USA.
+
+
 SUBDIRS = \
-    classes1 \
+       classes1 \
        classes2 \
        classes3
 
 HARNESS_SOURCE_FILES = \
-       TestController.java \
-       TestLoader.java
+       $(srcdir)/TestController.java \
+       $(srcdir)/TestLoader.java
 
 HARNESS_CLASS_FILES = \
        TestController.class \
        TestLoader.class
 
 TEST_SOURCE_FILES = \
-       test_instance_subtype_violated.java \
-       test_param_loading_constraint_violated_derived.java \
-       test_param_loading_constraint_violated.java \
-       test_param_subtype_violated.java \
-       test_retval_loading_constraint_violated.java \
-       test_return_subtype_ok.java \
-       test_return_subtype_violated.java \
-       test_simple_lazy_load.java
+       $(srcdir)/test_instance_subtype_violated.java \
+       $(srcdir)/test_param_loading_constraint_violated_derived.java \
+       $(srcdir)/test_param_loading_constraint_violated.java \
+       $(srcdir)/test_param_subtype_violated.java \
+       $(srcdir)/test_retval_loading_constraint_violated.java \
+       $(srcdir)/test_return_subtype_ok.java \
+       $(srcdir)/test_return_subtype_violated.java \
+       $(srcdir)/test_simple_lazy_load.java
 
 TEST_NAMES = \
        test_instance_subtype_violated \
@@ -45,8 +70,8 @@ JAVAFLAGS = -Xbootclasspath:$(CLASSPATH_CLASSES)
 endif
 
 check: $(HARNESS_CLASS_FILES)
-       for t in $(TEST_NAMES) ; do echo "TEST $$t" ; { $(JAVAC) $$t.java && $(JAVA) $$t ; } || exit 1 ; done
+       @for t in $(TEST_NAMES) ; do echo "TEST $$t" ; { $(JAVAC) -d . -classpath . $(srcdir)/$$t.java && LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVA) $(JAVAFLAGS) $$t ; } || exit 1 ; done
 
 $(HARNESS_CLASS_FILES): $(HARNESS_SOURCE_FILES)
-       $(JAVAC) $(HARNESS_SOURCE_FILES)
+       $(JAVAC) -d . $(HARNESS_SOURCE_FILES)