Skip to content

Commit

Permalink
Use the most recent jar in the test script. Update the charset test t…
Browse files Browse the repository at this point in the history
…o remove the added semicolons.
  • Loading branch information
isaacs committed Sep 27, 2009
1 parent d45df6c commit eefafc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/concat-charset.css.min
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@charset "utf-8";#foo{border-width:1px;}#bar{border-width:10px;}
@charset "utf-8";#foo{border-width:1px}#bar{border-width:10px}
4 changes: 3 additions & 1 deletion tests/suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
cd $(dirname $0)

ls *.{css,js} | egrep -v '\.min$' | while read testfile; do
# Get the jar to use.
jar="$(ls ../build/*.jar | sort | tail -n1)"

expected="$(
cat $( ls $testfile* | egrep '\.min$' )
)"
actual="$(
java -jar ../build/yuicompressor*.jar $testfile
java -jar $jar $testfile
)"

if [ "$expected" == "$actual" ]; then
Expand Down

0 comments on commit eefafc3

Please sign in to comment.