# HG changeset patch # User anatofuz # Date 1541343030 -32400 # Node ID 665fb2069aec6e14f8815265cea7c08d2bbe9aa8 # Parent 752703db4caf06de512dcf48e8b621af61b36f67 add logs2.pl diff -r 752703db4caf -r 665fb2069aec check-cbc-nqp-test.sh diff -r 752703db4caf -r 665fb2069aec check-nqp-test.sh diff -r 752703db4caf -r 665fb2069aec dotest --- a/dotest Sun Nov 04 13:45:43 2018 +0900 +++ b/dotest Sun Nov 04 23:50:30 2018 +0900 @@ -1,13 +1,18 @@ #!/bin/zsh -if [ $# -ne 1 ]; then - echo 'useage:) $cbc-tools/this.sh vmtest/nqp' +if [ $# -lt 1 ]; then + echo 'useage:) $cbc-tools/this.sh vmtest/nqp origin' exit 1 fi NQP_ORIGINAL="/mnt/dalmore-home/one/src/MoarVM_Original/nqp" TARGET_DIR=$1 +MOAR="../MoarVM/moar" +if [ $# -eq 2 ]; then + MOAR="../../build_perl6/MoarVM_Orig/bin/moar" +fi +echo "*use ${MOAR}" foreach testmoar (${TARGET_DIR}/*.moarvm) echo $testmoar - ../MoarVM/moar --libpath=${NQP_ORIGINAL}/gen/moar/stage2 $testmoar + ${MOAR} --libpath=${NQP_ORIGINAL}/gen/moar/stage2 $testmoar end diff -r 752703db4caf -r 665fb2069aec logs2.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/logs2.pl Sun Nov 04 23:50:30 2018 +0900 @@ -0,0 +1,34 @@ +use strict; +use warnings; + +my $originlog = shift; +my $cbclog = shift; + +open my $ofh, '<', $originlog; +open my $cfh, '<', $cbclog; + +while (1){ + my $orig_line; + do { + $orig_line = <$ofh>; + } while (!($orig_line =~ /\$\d+ \= (\d+)/)); + + $orig_line = $1; + + my $c_line; + + do { + $c_line = <$cfh>; + } while (!($c_line !~ /\$\d+ \= (\d+)/)); + + $c_line = $1; + + if ($c_line != $orig_line){ + print "*"; + print "$orig_line : $c_line\n"; + exit 0; + } + + print "$orig_line : $c_line\n"; + +}