root/trunk/ProjectFortress/testSerialization @ 546

Revision 546, 1.5 KB (checked in by dr2chase, 2 years ago)

Revived serialization tester.

  • Property svn:executable set to *
Line 
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
20if (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"
22else
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"
24fi
25
26A=testSerializationScratch
27
28rm -rf $A
29mkdir $A
30
31for i in tests/a*.fss ; do
32TFSNAME=`basename $i .fss`.tfs
33java -cp "$CP" -Xmx320m -Xms192m \
34com.sun.fortress.interpreter.drivers.fs -parseOnly -ast $i
35  mv $TFSNAME $A
36done
37
38java -cp "$CP" com.sun.fortress.interpreter.drivers.Tup -fileout=tfs $A/*.tfs
39for i in $A/*.tfs; do
40  diff $i ${i}2
41done
42
Note: See TracBrowser for help on using the browser.