[mocotest-tf] Test script runnable from any directory (#6529)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Tue, 13 Aug 2019 04:50:54 +0000 (13:50 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Tue, 13 Aug 2019 04:50:54 +0000 (13:50 +0900)
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 <ch.bahk@samsung.com>
compiler/mocotest-tf/runall.sh

index 6405c90..9aa2335 100755 (executable)
@@ -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"