diff --git a/tests.sh b/tests.sh index 231c33c..f3fe664 100755 --- a/tests.sh +++ b/tests.sh @@ -89,7 +89,7 @@ results=() for t in tests/*.sh; do tests+=("${t}") echo "========================= ${t} =========================" &>> tests.log - bash ${t} "${cmd}" "${version}" &>> tests.log + bash "${t}" "${cmd}" "${version}" &>> tests.log results+=(${?}) done echo diff --git a/tests/export-ods-utf8.sh b/tests/export-ods-utf8.sh index 4f720f8..288a236 100644 --- a/tests/export-ods-utf8.sh +++ b/tests/export-ods-utf8.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.ods" -(cd tmp/${t} && - ssconvert -S ${t}.ods ${t}.csv && - mv ${t}.csv.1 ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.ods" "${t}.csv" && + mv "${t}.csv.1" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-ods.sh b/tests/export-ods.sh index 07ae030..f637684 100644 --- a/tests/export-ods.sh +++ b/tests/export-ods.sh @@ -38,9 +38,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.ods" -(cd tmp/${t} && - ssconvert -S ${t}.ods ${t}.csv && - mv ${t}.csv.1 ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.ods" "${t}.csv" && + mv "${t}.csv.1" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xls-utf8.sh b/tests/export-xls-utf8.sh index 732a32f..40a269e 100644 --- a/tests/export-xls-utf8.sh +++ b/tests/export-xls-utf8.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xls" -(cd tmp/${t} && - ssconvert -S ${t}.xls ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xls" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xls.sh b/tests/export-xls.sh index 0116b5e..c298c6e 100644 --- a/tests/export-xls.sh +++ b/tests/export-xls.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xls" -(cd tmp/${t} && - ssconvert -S ${t}.xls ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xls" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xlsx-utf8.sh b/tests/export-xlsx-utf8.sh index 927dec8..9875b7e 100644 --- a/tests/export-xlsx-utf8.sh +++ b/tests/export-xlsx-utf8.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx" -(cd tmp/${t} && - ssconvert -S ${t}.xlsx ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xlsx" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xlsx.sh b/tests/export-xlsx.sh index a106efc..2d9d397 100644 --- a/tests/export-xlsx.sh +++ b/tests/export-xlsx.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx" -(cd tmp/${t} && - ssconvert -S ${t}.xlsx ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xlsx" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== #