Mercurial > hg > Members > anatofuz > nqp-cbc-tools
changeset 2:752703db4caf
create_test2moarvm.zsh
author | anatofuz |
---|---|
date | Sun, 04 Nov 2018 13:45:43 +0900 |
parents | b743d32b9363 |
children | 665fb2069aec |
files | create_test2moarvm.zsh |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/create_test2moarvm.zsh Sat Nov 03 23:18:19 2018 +0900 +++ b/create_test2moarvm.zsh Sun Nov 04 13:45:43 2018 +0900 @@ -1,17 +1,17 @@ #!/bin/zsh CURRENT_DIR=$PWD -TARGET_TESTS=$1 +TARGET_TESTS=$1 #t/nativecall + ORIGIN_PERL6="/mnt/dalmore-home/one/src/MoarVM_Original" ORIGIN_MOAR="${ORIGIN_PERL6}/MoarVM" ORIGIN_NQP="${ORIGIN_PERL6}/nqp" -TARGET_NAMESPACE= #last dirname set... use perl ? -GENERATE_TESTS="${CURRENT_DIR}/vmtest/${TARGET_TESTS}" +TARGET_NAMESPACE=`basename ${TARGET_TESTS}` -#mkdir -p ${GENERATE_TESTS} +GENERATE_TESTS="${CURRENT_DIR}/vmtest/${TARGET_NAMESPACE}" +mkdir -p ${GENERATE_TESTS} cd ${ORIGIN_NQP} -echo $PWD -echo $TARGET_NAMESPACE -foreach test (`ls ${CURRENT_DIR}/${TARGET_TESTS}*.t`) - #echo $test +foreach test (`ls ${CURRENT_DIR}/${TARGET_TESTS}/*.t`) + TESTFILE=`basename ${test}` + ${ORIGIN_NQP}/nqp --target=mbc --output="${GENERATE_TESTS}/${TESTFILE}.moarvm" ${test} end