Sha256: 73f9e6f6dee6f2a1296bef7dd52638e252e5fa5e6c7fece5928148fc247c31bf
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
#!/bin/sh #set -v function nop_ruby() { (echo "BEGIN{exit};"; exec $1 $2); } function ruby_parsedump() { md5sum -c $1.md5 2>/dev/null && return #do nothing if input unchanged ruby -w -y < $1 2>&1 | grep ^Shift|cut -d" " -f3 >$2 md5sum $1 > $1.md5 } cmdpath=`which $0` cd `dirname $cmdpath`/.. cmddir=`dirname $cmdpath` base=testresults/`basename $1` origfile=$base.nop.prs _ttfile=$base.tt mttfile=$base.mtt p_ttfile=$_ttfile.prs pmttfile=$mttfile.prs nopfile=$base.nop #if awk "BEGIN{if(\"$1\" ~! /\.gz$/) exit(1)}"; then if ruby -e "'$1'[/\.gz\$/] or exit 1"; then nop_ruby zcat $1 > $nopfile ; else nop_ruby cat $1 > $nopfile ; fi echo executing: testcode/tokentest.rb --ruby --keepws $1 '\|' testcode/tokentest.rb --ruby --keepws $nopfile > $_ttfile testcode/tokentest.rb --ruby --maxws $nopfile > $mttfile ruby_parsedump $nopfile $origfile ruby_parsedump $_ttfile $p_ttfile ruby_parsedump $mttfile $pmttfile [ -e $p_ttfile ] && (diff -ub $origfile $p_ttfile | \ testcode/deletewarns.rb > $p_ttfile.diff rm $p_ttfile ) [ -e $pmttfile ] && (diff -ub $origfile $pmttfile | \ testcode/deletewarns.rb > $pmttfile.diff rm $pmttfile ) head $p_ttfile.diff test -s $p_ttfile.diff || head $pmttfile.diff test -s $p_ttfile.diff && test -s $pmttfile.diff && echo omitting $pmttfile.diff test -z $p_ttfile.diff && test -z $pmttfile.diff && exit 0 exit 1
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubylexer-0.6.2 | testcode/rubylexervsruby.sh |