mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
kodev: pass correct --lpath for base test (#4973)
This commit is contained in:
8
kodev
8
kodev
@@ -749,16 +749,18 @@ OPTIONS:
|
||||
|
||||
make "${EMU_DIR}/.busted"
|
||||
pushd "${EMU_DIR}" && {
|
||||
test_path="./spec/$1/unit"
|
||||
rm -rf "${test_path}"/data/*.sdr
|
||||
test_path_basedir="./spec/$1/unit"
|
||||
rm -rf "${test_path_basedir}"/data/*.sdr
|
||||
|
||||
test_path="${test_path_basedir}"
|
||||
if [ -n "${2}" ]; then
|
||||
test_path="${test_path}/$2"
|
||||
test_path="${test_path_basedir}/$2"
|
||||
fi
|
||||
|
||||
echo "Running tests in" "${test_path}"
|
||||
busted --lua="./luajit" "${opts}" \
|
||||
--output=gtest \
|
||||
--lpath="${test_path_basedir}/?.lua" \
|
||||
--exclude-tags=notest "${test_path}"
|
||||
} && popd || exit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user