root/trunk/ProjectFortress/testSerialization @ 588

Revision 588, 2.0 KB (checked in by dlsmith, 2 years ago)

Updated classpath of scripts to point to plt.jar

  • 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
20# This script reads a "bunch" of tests (currently, all who name begins
21# with the letter "a"), writes their ASTs to disk, then runs a program that
22# reads ASTs and writes them to disk, and then compares that the twice-written
23# AST does not differ from the once-written AST.  Notice that AST writing itself
24# might omit information, so what this is really testing is AST reading.
25
26if (uname | egrep -q CYGWIN) ; then
27  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;third_party/plt/plt.jar"
28else
29  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:third_party/plt/plt.jar"
30fi
31
32A=testSerializationScratch
33
34rm -rf $A
35mkdir $A
36
37for i in tests/a*.fss ; do
38TFSNAME=`basename $i .fss`.tfs
39java -cp "$CP" -Xmx320m -Xms192m \
40com.sun.fortress.interpreter.drivers.fs -parseOnly -ast $i
41  mv $TFSNAME $A
42done
43
44# Tup is an old testing driver that reads ASTs, in bunches, and writes them
45# back to disk, in bunches.
46java -cp "$CP" com.sun.fortress.interpreter.drivers.Tup -fileout=tfs $A/*.tfs
47for i in $A/*.tfs; do
48  diff $i ${i}2
49done
50
Note: See TracBrowser for help on using the browser.