Mercurial > hg > Members > anatofuz > nqp-cbc-tools
diff dotest @ 3:665fb2069aec
add logs2.pl
author | anatofuz |
---|---|
date | Sun, 04 Nov 2018 23:50:30 +0900 |
parents | b8fca1c0f503 |
children |
line wrap: on
line diff
--- 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