diff --git a/test/feature/self-install.sh b/test/feature/self-install.sh index c254a27..4172d20 100755 --- a/test/feature/self-install.sh +++ b/test/feature/self-install.sh @@ -10,11 +10,11 @@ out1="$($GITPACK -H install "$URL=$HASH")" test "$out1" = ">>> running install for $URL=$HASH <<< done; successfully installed" -out2="$(sh "$HOME/.local/bin/gitpack" -H status "$URL=$HASH")" +out2="$(sh -x "$HOME/.local/bin/gitpack" -H status "$URL=$HASH")" test "$out2" = ">>> running status for $URL=$HASH <<< candidate $HASH already installed" -out3="$(sh "$HOME/.local/bin/gitpack" -H uninstall "$URL")" +out3="$(sh -x "$HOME/.local/bin/gitpack" -H uninstall "$URL")" test "$out3" = ">>> running uninstall for $URL <<< done; successfully uninstalled" @@ -24,11 +24,11 @@ if [ "$USE_SUDO" = true ]; then test "$out4" = ">>> running install for $URL=$HASH <<< done; successfully installed" - out5="$(sudo sh /usr/local/bin/gitpack -H status "$URL=$HASH")" + out5="$(sudo sh -x /usr/local/bin/gitpack -H status "$URL=$HASH")" test "$out5" = ">>> running status for $URL=$HASH <<< candidate $HASH already installed" - out6="$(sudo sh /usr/local/bin/gitpack -H uninstall "$URL")" + out6="$(sudo sh -x /usr/local/bin/gitpack -H uninstall "$URL")" test "$out6" = ">>> running uninstall for $URL <<< done; successfully uninstalled" fi diff --git a/test/run.sh b/test/run.sh index 22022b2..a5eaadf 100755 --- a/test/run.sh +++ b/test/run.sh @@ -40,8 +40,8 @@ export HASH="${GITHUB_SHA:?}" && # current commit hash SHORT_HASH="$(echo "$HASH" | cut -c 1-7)" && export SHORT_HASH && -export GITPACK='sh src/gitpack' && # GitPack with tracing enabled -export SUDO_GITPACK='sudo sh src/gitpack' && # root permissions +export GITPACK='sh -x src/gitpack' && # GitPack with tracing enabled +export SUDO_GITPACK='sudo sh -x src/gitpack' && # root permissions export URL=github.com/dominiksalvet/gitpack && export VERSION=1.1.0 && # latest GitPack version export VERSION_HASH=d6cf61871c93e89b5c622d77ff8fa517da5d3ce0 &&