| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | ################################################################################ |
|---|
| 4 | # Copyright 2007 Sun Microsystems, Inc., |
|---|
| 5 | # 4150 Network Circle, Santa Clara, California 95054, U.S.A. |
|---|
| 6 | # All rights reserved. |
|---|
| 7 | # |
|---|
| 8 | # U.S. Government Rights - Commercial software. |
|---|
| 9 | # Government users are subject to the Sun Microsystems, Inc. standard |
|---|
| 10 | # license agreement and applicable provisions of the FAR and its supplements. |
|---|
| 11 | # |
|---|
| 12 | # Use is subject to license terms. |
|---|
| 13 | # |
|---|
| 14 | # This distribution may include materials developed by third parties. |
|---|
| 15 | # |
|---|
| 16 | # Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered |
|---|
| 17 | # trademarks of Sun Microsystems, Inc. in the U.S. and other countries. |
|---|
| 18 | ################################################################################ |
|---|
| 19 | |
|---|
| 20 | if (uname | egrep -q CYGWIN) ; then |
|---|
| 21 | CP="build;third_party/junit/junit.jar;third_party/xtc/xtc.jar;third_party/FJ/concurrent.jar;third_party/dstm2/dstm2.jar;third_party/bcel/bcel-5.2.jar" |
|---|
| 22 | else |
|---|
| 23 | CP="build:third_party/junit/junit.jar:third_party/xtc/xtc.jar:third_party/FJ/concurrent.jar:third_party/dstm2/dstm2.jar:third_party/bcel/bcel-5.2.jar" |
|---|
| 24 | fi |
|---|
| 25 | |
|---|
| 26 | A=testSerializationScratch |
|---|
| 27 | |
|---|
| 28 | rm -rf $A |
|---|
| 29 | mkdir $A |
|---|
| 30 | |
|---|
| 31 | for i in tests/a*.fss ; do |
|---|
| 32 | TFSNAME=`basename $i .fss`.tfs |
|---|
| 33 | java -cp "$CP" -Xmx320m -Xms192m \ |
|---|
| 34 | com.sun.fortress.interpreter.drivers.fs -parseOnly -ast $i |
|---|
| 35 | mv $TFSNAME $A |
|---|
| 36 | done |
|---|
| 37 | |
|---|
| 38 | java -cp "$CP" com.sun.fortress.interpreter.drivers.Tup -fileout=tfs $A/*.tfs |
|---|
| 39 | for i in $A/*.tfs; do |
|---|
| 40 | diff $i ${i}2 |
|---|
| 41 | done |
|---|
| 42 | |
|---|