test/jdk/sun/tools/jrunscript/jrunscriptTest.sh
changeset 50878 fb7800b66c92
parent 47216 71c04702a3d5
equal deleted inserted replaced
50877:700fffd3c871 50878:fb7800b66c92
    38     echo "No js engine found and engine not required; test vacuously passes."
    38     echo "No js engine found and engine not required; test vacuously passes."
    39     exit 0
    39     exit 0
    40 fi
    40 fi
    41 
    41 
    42 rm -f jrunscriptTest.out 2>/dev/null
    42 rm -f jrunscriptTest.out 2>/dev/null
    43 ${JRUNSCRIPT} -J-Djava.awt.headless=true -l nashorn > jrunscriptTest.out 2>&1 <<EOF
    43 ${JRUNSCRIPT} -J-Dnashorn.args.prepend=--no-deprecation-warning -J-Djava.awt.headless=true -l nashorn > jrunscriptTest.out 2>&1 <<EOF
    44 v = 2 + 5;
    44 v = 2 + 5;
    45 v *= 5; v.doubleValue();
    45 v *= 5; v.doubleValue();
    46 v = v + " is the value";
    46 v = v + " is the value";
    47 if (v != 0) { println('yes v != 0'); }
    47 if (v != 0) { println('yes v != 0'); }
    48 java.lang.System.out.println('hello world from script');
    48 java.lang.System.out.println('hello world from script');