test/tools/javac/4846262/Test.sh

changeset 390
f0c9fc46990b
parent 1
9a66ca7c79fa
child 404
14735c7932d7
equal deleted inserted replaced
389:0ba956343648 390:f0c9fc46990b
43 43
44 # set platform-dependent variables 44 # set platform-dependent variables
45 OS=`uname -s` 45 OS=`uname -s`
46 case "$OS" in 46 case "$OS" in
47 SunOS | Linux ) 47 SunOS | Linux )
48 NULL=/dev/null
49 PS=":"
50 FS="/" 48 FS="/"
51 ;; 49 ;;
50 CYGWIN* )
51 FS="/"
52 DIFFOPTS="--strip-trailing-cr"
53 ;;
52 Windows* ) 54 Windows* )
53 NULL=NUL
54 PS=";"
55 FS="\\" 55 FS="\\"
56 ;; 56 ;;
57 * ) 57 * )
58 echo "Unrecognized system!" 58 echo "Unrecognized system!"
59 exit 1; 59 exit 1;
66 66
67 "${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -J-Duser.language=en -J-Duser.region=US -J-Dfile.encoding=IBM1047 Test.java 2>Test.tmp 67 "${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -J-Duser.language=en -J-Duser.region=US -J-Dfile.encoding=IBM1047 Test.java 2>Test.tmp
68 68
69 "${TESTJAVA}${FS}bin${FS}native2ascii" ${TESTTOOLVMOPTS} -encoding IBM1047 Test.tmp Test.out 69 "${TESTJAVA}${FS}bin${FS}native2ascii" ${TESTTOOLVMOPTS} -encoding IBM1047 Test.tmp Test.out
70 70
71 diff -c "${TESTSRC}${FS}Test.out" Test.out 71 diff ${DIFFOPTS} -c "${TESTSRC}${FS}Test.out" Test.out
72 result=$? 72 result=$?
73 73
74 if [ $result -eq o ] 74 if [ $result -eq o ]
75 then 75 then
76 echo "Passed" 76 echo "Passed"

mercurial