From: 박천교/On-Device Lab(SR)/Engineer/삼성전자 Date: Tue, 13 Aug 2019 04:50:54 +0000 (+0900) Subject: [mocotest-tf] Test script runnable from any directory (#6529) X-Git-Tag: accepted/tizen/unified/20190903.052428~443 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05e8775e5d72a2104c5473d13374117f8ade4089;p=platform%2Fcore%2Fml%2Fnnfw.git [mocotest-tf] Test script runnable from any directory (#6529) Previously test script partially assumes it runs on WORKDIR, which makes no harm at all. This commit just explicitly call file path including WORKDIR to be matched with other lines convention and to be runnable from any directory. Signed-off-by: Cheongyo Bahk --- diff --git a/compiler/mocotest-tf/runall.sh b/compiler/mocotest-tf/runall.sh index 6405c90..9aa2335 100755 --- a/compiler/mocotest-tf/runall.sh +++ b/compiler/mocotest-tf/runall.sh @@ -49,18 +49,18 @@ while [[ $# -ne 0 ]]; do --backend-arg "${WORKDIR}/${PREFIX}.info" \ --pre "${RANDOMIZE_ACTION_PATH}" \ --pre "${HDF5_EXPORT_ACTION_PATH}" \ - --pre-arg "${PREFIX}.input.h5" \ + --pre-arg "${WORKDIR}/${PREFIX}.input.h5" \ --post "${HDF5_EXPORT_ACTION_PATH}" \ - --post-arg "${PREFIX}.expected.h5" + --post-arg "${WORKDIR}/${PREFIX}.expected.h5" "${NNKIT_RUN_PATH}" \ --backend "${MOCO_TF_BACKEND_PATH}" \ --backend-arg "${WORKDIR}/${PREFIX}.pb" \ --backend-arg "${WORKDIR}/${PREFIX}.info" \ --pre "${HDF5_IMPORT_ACTION_PATH}" \ - --pre-arg "${PREFIX}.input.h5" \ + --pre-arg "${WORKDIR}/${PREFIX}.input.h5" \ --post "${HDF5_EXPORT_ACTION_PATH}" \ - --post-arg "${PREFIX}.obtained.h5" + --post-arg "${WORKDIR}/${PREFIX}.obtained.h5" h5diff -d 0.001 "${PREFIX}.expected.h5" "${PREFIX}.obtained.h5"