From 8989c3eb3ec1bd42b84eb11e016d3db762227cb4 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Tue, 21 Apr 2020 20:18:21 +0200 Subject: [PATCH] Show detected system crate after installation test (#107) --- scripts/gh-build-crate.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/gh-build-crate.sh b/scripts/gh-build-crate.sh index 2234c7a7..0a180048 100755 --- a/scripts/gh-build-crate.sh +++ b/scripts/gh-build-crate.sh @@ -43,7 +43,7 @@ for file in $CHANGES; do fi # Checks passed, this is a crate we must test - list_exes=true # unless it's a system crate + is_system=false crate=$(basename $file .toml) echo Testing crate: $crate @@ -94,7 +94,7 @@ for file in $CHANGES; do continue elif grep -q 'Origin: system package' <<< $crateinfo ; then echo INSTALLING detected system crate - list_exes=false + is_system=true elif grep -q 'Not found:' <<< $crateinfo && \ grep -q 'There are external definitions' <<< $crateinfo then @@ -110,15 +110,16 @@ for file in $CHANGES; do # Actual checks echo DEPLOYING CRATE - alr get --build -n $crate + alr get -d --build -n $crate - if $list_exes; then + if $is_system; then + echo DETECTING INSTALLED PACKAGE + alr show -d --external-detect $crate + else echo LISTING EXECUTABLES cd ${crate}_* - alr run --list + alr run -d --list cd .. - else - echo SKIPPING executable listing for system crate fi echo CRATE BUILD ENDED SUCCESSFULLY