49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
diff -ur yuicompressor-2.4.8.orig/tests/suite.sh yuicompressor-2.4.8/tests/suite.sh
|
|
--- yuicompressor-2.4.8.orig/tests/suite.sh 2013-05-15 09:23:58.000000000 +0200
|
|
+++ yuicompressor-2.4.8/tests/suite.sh 2017-12-07 03:45:47.374338608 +0100
|
|
@@ -1,7 +1,7 @@
|
|
-#!/usr/bin/env bash
|
|
+#!/bin/sh
|
|
|
|
cd $(dirname $0)
|
|
-
|
|
+
|
|
# Get the jar to use.
|
|
jar="$(ls ../build/*.jar | sort | tail -n1)"
|
|
echo "jar: $jar"
|
|
@@ -15,18 +15,11 @@
|
|
filetype="$(
|
|
echo $testfile | egrep -o '(cs|j)s'
|
|
)"
|
|
-
|
|
- if [ "$2" == "cssminjs" ]; then
|
|
- actual="$(
|
|
- java -jar ../lib/rhino-1.7R2.jar suite.rhino $testfile
|
|
- )"
|
|
-
|
|
- else
|
|
- actual="$(
|
|
- java -jar $jar --type $filetype $testfile
|
|
- )"
|
|
- fi
|
|
-
|
|
+
|
|
+ actual="$(
|
|
+ java -cp $(build-classpath jargs):$jar com.yahoo.platform.yui.compressor.Bootstrap --type $filetype $testfile
|
|
+ )"
|
|
+
|
|
if [ "$expected" == "$actual" ]; then
|
|
echo "Passed: $testfile" > /dev/stderr
|
|
else
|
|
@@ -52,11 +45,3 @@
|
|
ls *.{css,js} | while read testfile; do
|
|
runtest $testfile || exit 1
|
|
done
|
|
-
|
|
-echo
|
|
-echo "now testing the JS port of CSSMIN..."
|
|
-ls *.css | while read testfile; do
|
|
- runtest $testfile "cssminjs" || exit 1
|
|
-done
|
|
-
|
|
-exit 0
|