|
|
@ -749,16 +749,18 @@ OPTIONS:
|
|
|
|
|
|
|
|
|
|
|
|
make "${EMU_DIR}/.busted"
|
|
|
|
make "${EMU_DIR}/.busted"
|
|
|
|
pushd "${EMU_DIR}" && {
|
|
|
|
pushd "${EMU_DIR}" && {
|
|
|
|
test_path="./spec/$1/unit"
|
|
|
|
test_path_basedir="./spec/$1/unit"
|
|
|
|
rm -rf "${test_path}"/data/*.sdr
|
|
|
|
rm -rf "${test_path_basedir}"/data/*.sdr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test_path="${test_path_basedir}"
|
|
|
|
if [ -n "${2}" ]; then
|
|
|
|
if [ -n "${2}" ]; then
|
|
|
|
test_path="${test_path}/$2"
|
|
|
|
test_path="${test_path_basedir}/$2"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "Running tests in" "${test_path}"
|
|
|
|
echo "Running tests in" "${test_path}"
|
|
|
|
busted --lua="./luajit" "${opts}" \
|
|
|
|
busted --lua="./luajit" "${opts}" \
|
|
|
|
--output=gtest \
|
|
|
|
--output=gtest \
|
|
|
|
|
|
|
|
--lpath="${test_path_basedir}/?.lua" \
|
|
|
|
--exclude-tags=notest "${test_path}"
|
|
|
|
--exclude-tags=notest "${test_path}"
|
|
|
|
} && popd || exit
|
|
|
|
} && popd || exit
|
|
|
|
}
|
|
|
|
}
|
|
|
|