mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Compare commits
9 Commits
47a3757f73
...
3cb939c9a8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cb939c9a8 | ||
|
|
4790a444d8 | ||
|
|
da924927a0 | ||
|
|
29ff2fdd43 | ||
|
|
732c04420b | ||
|
|
947abd7464 | ||
|
|
12cfe59578 | ||
|
|
4b60d18b44 | ||
|
|
dd8e59db03 |
@@ -60,6 +60,7 @@ cargo() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# shellcheck disable=2329
|
||||||
cleanup () {
|
cleanup () {
|
||||||
if [ -n "$gettext_template_dir" ] && [ -e "$gettext_template_dir" ]; then
|
if [ -n "$gettext_template_dir" ] && [ -e "$gettext_template_dir" ]; then
|
||||||
rm -r "$gettext_template_dir"
|
rm -r "$gettext_template_dir"
|
||||||
@@ -89,6 +90,7 @@ fi
|
|||||||
|
|
||||||
gettext_template_dir=$(mktemp -d)
|
gettext_template_dir=$(mktemp -d)
|
||||||
(
|
(
|
||||||
|
# shellcheck disable=2030
|
||||||
export FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir"
|
export FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir"
|
||||||
cargo build --workspace --all-targets --features=gettext-extract
|
cargo build --workspace --all-targets --features=gettext-extract
|
||||||
)
|
)
|
||||||
@@ -112,7 +114,8 @@ fi
|
|||||||
# - https://github.com/msys2/MSYS2-packages/issues/5784
|
# - https://github.com/msys2/MSYS2-packages/issues/5784
|
||||||
(
|
(
|
||||||
if $is_cygwin; then
|
if $is_cygwin; then
|
||||||
export PATH="$PATH:$(rustc --print target-libdir)"
|
PATH="$PATH:$(rustc --print target-libdir)"
|
||||||
|
export PATH
|
||||||
fi
|
fi
|
||||||
cargo test --no-default-features --workspace --all-targets
|
cargo test --no-default-features --workspace --all-targets
|
||||||
)
|
)
|
||||||
@@ -124,20 +127,24 @@ fi
|
|||||||
|
|
||||||
# Using "()" not "{}" because we do want a subshell (for the export)
|
# Using "()" not "{}" because we do want a subshell (for the export)
|
||||||
system_tests() (
|
system_tests() (
|
||||||
[ -n "$@" ] && export "$@"
|
# shellcheck disable=2163
|
||||||
|
[ -n "$*" ] && export "$@"
|
||||||
|
# shellcheck disable=2031
|
||||||
export FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir"
|
export FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir"
|
||||||
"$workspace_root/tests/test_driver.py" "$build_dir"
|
"$workspace_root/tests/test_driver.py" "$build_dir"
|
||||||
)
|
)
|
||||||
|
|
||||||
test_cmd='FISH_GETTEXT_EXTRACTION_DIR="$gettext_template_dir" "$workspace_root/tests/test_driver.py" "$build_dir"'
|
|
||||||
if $is_cygwin; then
|
if $is_cygwin; then
|
||||||
echo -e "=== Running ${green}integration tests ${yellow}with${green} symlinks${reset}"
|
# shellcheck disable=2059
|
||||||
system_tests $cygwin_var=winsymlinks
|
printf "=== Running ${green}integration tests ${yellow}with${green} symlinks${reset}\n"
|
||||||
|
system_tests "$cygwin_var"=winsymlinks
|
||||||
|
|
||||||
echo -e "=== Running ${green}integration tests ${yellow}without${green} symlinks${reset}"
|
# shellcheck disable=2059
|
||||||
system_tests $cygwin_var=winsymlinks
|
printf "=== Running ${green}integration tests ${yellow}without${green} symlinks${reset}\n"
|
||||||
|
system_tests "$cygwin_var"=
|
||||||
else
|
else
|
||||||
echo -e "=== Running ${green}integration tests${reset}"
|
# shellcheck disable=2059
|
||||||
|
printf "=== Running ${green}integration tests${reset}\n"
|
||||||
system_tests
|
system_tests
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user