SF.net SVN: jikesrvm:[15740] rvmroot/trunk/MMTk/harness/test-scripts/lang

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: jikesrvm:[15740] rvmroot/trunk/MMTk/harness/test-scripts/lang

by rgarner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 15740
          http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15740&view=rev
Author:   rgarner
Date:     2009-07-23 07:27:01 +0000 (Thu, 23 Jul 2009)

Log Message:
-----------
Add standard license headers

Modified Paths:
--------------
    rvmroot/trunk/MMTk/harness/test-scripts/lang/alloc.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/assert.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/assign.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/call.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/const.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/expr.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/fields.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/getfield.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else2.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/intrinsic.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/list.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive1.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive2.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/softref.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/type1.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/weakref.script
    rvmroot/trunk/MMTk/harness/test-scripts/lang/while.script

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/alloc.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/alloc.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/alloc.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   object a = alloc(0,0);
   a = alloc(1,0);
   a = alloc(0,1);

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/assert.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/assert.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/assert.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   assert(true,"This assertion should pass");
   assert(false,"This assertion should fail - check for exit code ",1);
 }

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/assign.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/assign.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/assign.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   int a;
   a = 1;
   print("a = ",a);

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/call.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/call.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/call.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   check (f(),1);
   check (g(1),3);
   check (g(2*3),13);

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/const.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/const.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/const.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   print(1);
   print(1,2);
   print(1," ",2);

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/expr.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/expr.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/expr.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   print("0 + 1 = ",0 + 1," : ",(0 + 1) == 1);
   print("0 * 1 = ",0 * 1," : ",(0 * 1) == 0);
   print("0 - 1 = ",0 - 1," : ",(0 - 1) == (-1));

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/fields.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/fields.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/fields.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,7 +1,20 @@
 /*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+
+ /*
  * test setting and retrieving from object fields
  */
-main() {
+void main() {
   object a = alloc(2,2);
   object b = alloc(0,0);
   object c = alloc(0,0);
@@ -16,7 +29,7 @@
   check_obj(a.object[1],c);
 }
 
-check(int actual, int expected) {
+void check(int actual, int expected) {
   if (actual == expected) {
     print("OK");
   } else {
@@ -24,7 +37,7 @@
   }
 }
 
-check_obj(object actual, object expected) {
+void check_obj(object actual, object expected) {
   if (actual == expected) {
     print("OK");
   } else {

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/getfield.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/getfield.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/getfield.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   object a = alloc(1,1);
 
   print("a.int[0] = ",a.int[0]," (0)",a.int[0] == 0);

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   int a = 0;
 
   if (a == 0) {

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else2.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else2.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/if-then-else2.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,10 +1,22 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   sub(1);
   sub(2);
   sub(3);
 }
 
-sub(int x) {
+void sub(int x) {
   if (x == 1) {
     print("if branch");
   } elif (x == 2) {

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/intrinsic.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/intrinsic.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/intrinsic.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   print(test_method(1,0==1,"hello",alloc(0,0)));
 }
 

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/list.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/list.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/list.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,8 +1,20 @@
 /*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+
+/*
  * Test functions that return objects
  */
-
-main() {
+void main() {
   object l1 = cons(1,null);
   object l2 = cons(2,l1);
   object l3 = cons(5,cons(4,cons(3,l2)));

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive1.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive1.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive1.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   int initial = 1;
   recurse(initial,10);
   print(initial);
@@ -9,7 +21,7 @@
   print(initial_o.int[0]);
 }
 
-recurse(int v1, int depth) {
+void recurse(int v1, int depth) {
   v1 = v1 * 2;
   int saved_depth = depth + 0;
   if (depth > 0) {
@@ -21,7 +33,7 @@
   }
 }
 
-recurse_o(object v1, int depth) {
+void recurse_o(object v1, int depth) {
   object v2 = alloc(0,1);
   v2.int[0] = v1.int[0] * 2;
   if (depth > 0) {

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive2.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive2.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/recursive2.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   object tree = insert(null,10);
   tree = insert(tree,5);
   tree = insert(tree,6);
@@ -48,7 +60,7 @@
 }
 
 
-printTree(object tree) {
+void printTree(object tree) {
     if (tree == null) {
       return 6;
     }

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/softref.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/softref.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/softref.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,7 +1,19 @@
 /*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+
+/*
  * Unit test script for soft reference types
  */
-
 void main() {
   setOption("fullHeapSystemGC=true");
 

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/type1.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/type1.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/type1.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,3 +1,15 @@
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
 type t1 {
  int intField;
  t1 objField;

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/weakref.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/weakref.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/weakref.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,7 +1,19 @@
 /*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+
+/*
  * Unit test script for weak reference types
  */
-
 void main() {
   setOption("fullHeapSystemGC=true");
 

Modified: rvmroot/trunk/MMTk/harness/test-scripts/lang/while.script
===================================================================
--- rvmroot/trunk/MMTk/harness/test-scripts/lang/while.script 2009-07-23 07:25:11 UTC (rev 15739)
+++ rvmroot/trunk/MMTk/harness/test-scripts/lang/while.script 2009-07-23 07:27:01 UTC (rev 15740)
@@ -1,4 +1,16 @@
-main() {
+/*
+ *  This file is part of the Jikes RVM project (http://jikesrvm.org).
+ *
+ *  This file is licensed to You under the Eclipse Public License (EPL);
+ *  You may not use this file except in compliance with the License. You
+ *  may obtain a copy of the License at
+ *
+ *      http://www.opensource.org/licenses/eclipse-1.0.php
+ *
+ *  See the COPYRIGHT.txt file distributed with this work for information
+ *  regarding copyright ownership.
+ */
+void main() {
   int n=0;
   while (n < 5) {
     n = n + 1;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits