[kaffe] CVS kaffe (guilhem): New compile_time regression test.

Kaffe CVS cvs-commits at kaffe.org
Sun Jan 25 09:44:02 PST 2004


PatchSet 4367 
Date: 2004/01/25 17:41:21
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
New compile_time regression test.

Members: 
	ChangeLog:1.1952->1.1953 
	test/regression/compile_time/CompileScript.in:1.1->1.2 
	test/regression/compile_time/Makefile.am:1.2->1.3 
	test/regression/compile_time/Makefile.in:1.17->1.18 
	test/regression/compile_time/VarInit.java:INITIAL->1.1 
	test/regression/compile_time/VarInit2.java:INITIAL->1.1 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1952 kaffe/ChangeLog:1.1953
--- kaffe/ChangeLog:1.1952	Sat Jan 24 22:03:01 2004
+++ kaffe/ChangeLog	Sun Jan 25 17:41:21 2004
@@ -1,3 +1,15 @@
+2004-01-25  Jim Pick  <jim at kaffe.org>
+
+	* test/regression/compile_time/CompileScript.in: Make the script
+	accepts many parameters.
+
+	* test/regression/compile_time/Makefile.am,
+	test/regression/compile_time/VarInit.java,
+	test/regression/compile_time/VarInit2.java:
+	Added a new compilation test for KJC.
+
+	* test/regression/compile_time/Makefile.in: Regenerated.
+
 2004-01-24  Jim Pick  <jim at kaffe.org>
 
 	* libraries/javalib/essential.files:
Index: kaffe/test/regression/compile_time/CompileScript.in
diff -u kaffe/test/regression/compile_time/CompileScript.in:1.1 kaffe/test/regression/compile_time/CompileScript.in:1.2
--- kaffe/test/regression/compile_time/CompileScript.in:1.1	Sun Aug 31 22:09:27 2003
+++ kaffe/test/regression/compile_time/CompileScript.in	Sun Jan 25 17:41:23 2004
@@ -14,4 +14,4 @@
 test -z "@JIKES@" || : ${JIKES="@JIKES@ -nowarn"}
 : ${JAVAC=${JIKES-"env CLASSPATH=$CLASSPATH $JAVA -noverify at.dms.kjc.Main"}" -classpath \"$CLASSPATH\""}
 
-exec $JAVAC -classpath $CLASSPATH -d . $1
+exec $JAVAC -classpath $CLASSPATH -d . $*
Index: kaffe/test/regression/compile_time/Makefile.am
diff -u kaffe/test/regression/compile_time/Makefile.am:1.2 kaffe/test/regression/compile_time/Makefile.am:1.3
--- kaffe/test/regression/compile_time/Makefile.am:1.2	Sun Sep 14 20:09:40 2003
+++ kaffe/test/regression/compile_time/Makefile.am	Sun Jan 25 17:41:23 2004
@@ -21,7 +21,9 @@
 	a/PublicToPackage.class \
 	a/PublicToProtected.class \
 	PublicToPrivate.class \
-	StaticToInst.class
+	StaticToInst.class \
+	VarInit.class \
+	VarInit2.class
 
 SETUP_ENVIRONMENT = env `. $(top_builddir)/BUILD_ENVIRONMENT; sed 's/.*export \(.*\)/echo \1=$$\1/' < $(top_builddir)/BUILD_ENVIRONMENT | sh`
 
@@ -61,6 +63,9 @@
 StaticToInst.class: StaticToInst.java
 	@$(SETUP_ENVIRONMENT) $(SHELL) CompileScript $(srcdir)/StaticToInst.java
 
+VarInit.class VarInit2.class: VarInit.java VarInit2.java
+	@$(SETUP_ENVIRONMENT) $(SHELL) CompileScript $(srcdir)/VarInit.java $(srcdir)/VarInit2.java
+
 all-am: CompileScript $(CLASS_FILES)
 
 check-am: all-am
@@ -78,4 +83,6 @@
 	a/PublicToPackage.java \
 	a/PublicToProtected.java \
 	PublicToPrivate.java \
-	StaticToInst.java
+	StaticToInst.java \
+	VarInit.java \
+	VarInit2.java
Index: kaffe/test/regression/compile_time/Makefile.in
diff -u kaffe/test/regression/compile_time/Makefile.in:1.17 kaffe/test/regression/compile_time/Makefile.in:1.18
--- kaffe/test/regression/compile_time/Makefile.in:1.17	Thu Jan 22 14:39:34 2004
+++ kaffe/test/regression/compile_time/Makefile.in	Sun Jan 25 17:41:23 2004
@@ -335,7 +335,9 @@
 	a/PublicToPackage.class \
 	a/PublicToProtected.class \
 	PublicToPrivate.class \
-	StaticToInst.class
+	StaticToInst.class \
+	VarInit.class \
+	VarInit2.class
 
 SETUP_ENVIRONMENT = env `. $(top_builddir)/BUILD_ENVIRONMENT; sed 's/.*export \(.*\)/echo \1=$$\1/' < $(top_builddir)/BUILD_ENVIRONMENT | sh`
 CLEANFILES = $(CLASS_FILES)
@@ -350,7 +352,9 @@
 	a/PublicToPackage.java \
 	a/PublicToProtected.java \
 	PublicToPrivate.java \
-	StaticToInst.java
+	StaticToInst.java \
+	VarInit.java \
+	VarInit2.java
 
 all: all-am
 
@@ -549,6 +553,9 @@
 
 StaticToInst.class: StaticToInst.java
 	@$(SETUP_ENVIRONMENT) $(SHELL) CompileScript $(srcdir)/StaticToInst.java
+
+VarInit.class VarInit2.class: VarInit.java VarInit2.java
+	@$(SETUP_ENVIRONMENT) $(SHELL) CompileScript $(srcdir)/VarInit.java $(srcdir)/VarInit2.java
 
 all-am: CompileScript $(CLASS_FILES)
 
===================================================================
Checking out kaffe/test/regression/compile_time/VarInit.java
RCS:  /home/cvs/kaffe/kaffe/test/regression/compile_time/VarInit.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/test/regression/compile_time/VarInit.java	Sun Jan 25 17:43:47 2004
@@ -0,0 +1,5 @@
+public interface VarInit
+{
+	int c = VarInit2.BASE_INT + 1;
+	int a = 2 + c;
+}
===================================================================
Checking out kaffe/test/regression/compile_time/VarInit2.java
RCS:  /home/cvs/kaffe/kaffe/test/regression/compile_time/VarInit2.java,v
VERS: 1.1
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/test/regression/compile_time/VarInit2.java	Sun Jan 25 17:43:48 2004
@@ -0,0 +1,14 @@
+public class VarInit2
+{
+	static final int BASE_INT = 10;
+
+	public static void a(int b)
+	{
+		switch (b)
+		{
+			case VarInit.c:
+			default:
+				break;
+		}
+	}
+}




More information about the kaffe mailing list