aboutsummaryrefslogtreecommitdiff
path: root/testing/docker/dmgr.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2022-02-14 00:11:42 -0800
committerGitHub <noreply@github.com>2022-02-14 00:11:42 -0800
commit681aaef1f1ff39c341fdc529e0db2c14639a58d8 (patch)
treece98c2b3d9648db065d27add325370392a35d584 /testing/docker/dmgr.sh
parentba680a3e5b8c62a7c1554e71f6d09903dac95a2f (diff)
parent86c2982568de1ad4d4cc12a65b19231331484405 (diff)
downloadcrosstool-ng-681aaef1f1ff39c341fdc529e0db2c14639a58d8.tar.gz
crosstool-ng-681aaef1f1ff39c341fdc529e0db2c14639a58d8.tar.bz2
crosstool-ng-681aaef1f1ff39c341fdc529e0db2c14639a58d8.zip
Merge pull request #1674 from stilor/master
Updates to make `ct-ng build-all` pass
Diffstat (limited to 'testing/docker/dmgr.sh')
-rwxr-xr-xtesting/docker/dmgr.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/testing/docker/dmgr.sh b/testing/docker/dmgr.sh
index e6a93e70..2945fbbb 100755
--- a/testing/docker/dmgr.sh
+++ b/testing/docker/dmgr.sh
@@ -37,6 +37,8 @@ Action is one of:
enter Spawn a shell in the specified container.
root Spawn a root shell in the specified container.
clean Clean up in the specified container.
+ distclean Same as clean but also remove installed versions of
+ Crosstool-NG and the previously built toolchains.
If a special container name 'all' is used, the action is performed
on all the containers.
@@ -63,7 +65,7 @@ action_build()
msg "Cleaning up previous runs for ${cntr}"
do_cleanup ${cntr}/{build,install,xtools}
msg "Building Docker container for ${cntr}"
-set -x
+ set -x
docker build --no-cache -t "ctng-${cntr}" --build-arg CTNG_GID=`id -g` --build-arg CTNG_UID=`id -u` "${cntr}"
}
@@ -92,8 +94,9 @@ _dckr()
$prefix su -l ctng
fi
if [ $? != 0 ]; then
- global_rc=1
+ global_rc=1
fi
+ return $global_rc
}
# Run the test
@@ -105,9 +108,9 @@ action_install()
msg "Setting up crosstool-NG in ${cntr}"
do_cleanup ${cntr}/build
if ! _dckr "${cntr}" /common-scripts/ctng-install; then
- warn "Installation failed"
+ warn "Installation failed"
elif ! _dckr "${cntr}" /common-scripts/ctng-test-basic; then
- warn "Basic tests failed"
+ warn "Basic tests failed"
fi
}