mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 09:06:19 +00:00
Testing works for archlinux docker
Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
0d7822e796
commit
345dc4161d
3
.gitignore
vendored
3
.gitignore
vendored
@ -28,6 +28,9 @@ build.log
|
||||
temp.*
|
||||
stamp-h1
|
||||
|
||||
# Testing
|
||||
testing/docker/build-*
|
||||
|
||||
# This is the place where toolchains are built
|
||||
.build/
|
||||
# .. and log for 'build-all'
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
cd
|
||||
rm -rf bld-ctng
|
||||
mkdir bld-ctng
|
||||
cd bld-ctng
|
||||
/crosstool-ng/configure --prefix=$HOME/inst-ctng
|
||||
make
|
||||
make install
|
12
testing/docker/common-scripts/ctng-test-all
Executable file
12
testing/docker/common-scripts/ctng-test-all
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
cd
|
||||
rm -rf bld-samples
|
||||
mkdir bld-samples
|
||||
cd bld-samples
|
||||
export PATH=$HOME/inst-ctng/bin:$PATH
|
||||
ct-ng help
|
||||
ct-ng list-samples
|
||||
ct-ng list-steps
|
||||
ct-ng build-all
|
@ -8,8 +8,9 @@ shift 4
|
||||
|
||||
groupadd -g ${gid} ${grp}
|
||||
useradd -d /home/${usr} -m -g ${gid} -u ${uid} ${usr}
|
||||
ln -sf /src /home/${usr}/src
|
||||
if [ -z "$*" ]; then
|
||||
exec su -l ${usr}
|
||||
else
|
||||
exec su -l -c "/bin/bash -c '$*'"
|
||||
exec su -l -c "/bin/bash -c '$*'" ${usr}
|
||||
fi
|
||||
|
@ -51,6 +51,7 @@ _dckr()
|
||||
-v `pwd`/common-scripts:/setup-scripts:ro \
|
||||
-v ${topdir}:/crosstool-ng:ro \
|
||||
-v `pwd`/build-${cntr}:/home \
|
||||
-v $HOME/src:/src:ro \
|
||||
ctng-${cntr} \
|
||||
/setup-scripts/su-as-user `id -un` `id -u` `id -gn` `id -g` "$@"
|
||||
}
|
||||
@ -64,7 +65,7 @@ action_test()
|
||||
msg "Setting up crosstool-NG in ${cntr}"
|
||||
_dckr "${cntr}" /setup-scripts/ctng-install
|
||||
msg "Running build-all in ${cntr}"
|
||||
_dckr "${cntr}" /setup-scripts/ctng-build-all
|
||||
_dckr "${cntr}" /setup-scripts/ctng-test-all
|
||||
}
|
||||
|
||||
# Enter the container using the same user account/environment as for testing.
|
||||
|
Loading…
x
Reference in New Issue
Block a user