Skip to content

Commit

Permalink
Fixed some shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Apr 6, 2024
1 parent d2c0281 commit b42714a
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/cfg/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -453,91 +453,91 @@ function check_file {
case $f in
boost.cpp)
boost_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
bsd.c)
bsd_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
cairo.c)
cairo_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
cppunit.cpp)
cppunit_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
gnu.c)
gnu_fn
# TODO: posix needs to specified first or it has a different mmap() config
# TODO: get rid of posix dependency
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=posix,$lib ${DIR}gnu.c
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library=posix,"$lib" "${DIR}"gnu.c
;;
googletest.cpp)
googletest_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
gtk.c)
gtk_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
kde.cpp)
# TODO: "kde-4config" is no longer commonly available in recent distros
#kde_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
libcurl.c)
libcurl_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
libsigc++.cpp)
libsigcpp_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
lua.c)
lua_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
mfc.cpp)
mfc_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --platform=win64 --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --platform=win64 --library="$lib" "${DIR}""$f"
;;
opencv2.cpp)
# TODO: "opencv.pc" is not commonly available in distros
#opencv2_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
openmp.c)
openmp_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
openssl.c)
openssl_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
posix.c)
posix_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
python.c)
python_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
qt.cpp)
qt_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
sqlite3.c)
sqlite3_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" --library=$lib ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" --library="$lib" "${DIR}""$f"
;;
std.c)
std_c_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" "${DIR}""$f"
;;
std.cpp)
std_cpp_fn
${CPPCHECK} "${CPPCHECK_OPT[@]}" ${DIR}$f
"${CPPCHECK}" "${CPPCHECK_OPT[@]}" "${DIR}""$f"
;;
windows.cpp)
windows_fn
Expand Down

0 comments on commit b42714a

Please sign in to comment.