mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-11-04 18:06:24 +01:00
Makefile: All images are tested. Remove ALL_IMAGES and DEFAULT_IMAGES vars.
To confirm that the Makefiles works as expected after this patch, the
list of executed commands before and after has been compared.
Before:
```
make --dry-run > ../dockcross-make-baseline
make test --dry-run > ../dockcross-make-test-baseline
```
After:
```
make --dry-run > ../dockcross-make-current;
make test --dry-run > ../dockcross-make-test-current
for target in make make-test; do
diff --ignore-trailing-space ../dockcross-$target-baseline ../dockcross-$target-current> /dev/null 2>&1
[[ $? == 1 ]] && \
echo "" && \
echo "-------------------------------" && \
echo "Here is output of:" && \
echo " diff --ignore-trailing-space ../dockcross-$target-baseline ../dockcross-$target-current" && \
echo "" && \
diff --ignore-trailing-space ../dockcross-$target-baseline ../dockcross-$target-current
done
```
Output:
```
-------------------------------
Here is output of:
diff --ignore-trailing-space ../dockcross-make-baseline ../dockcross-make-current
8a9
> docker build -t dockcross/linux-ppc64le linux-ppc64le
10a12,14
> cp -r test browser-asmjs/
> docker build -t dockcross/browser-asmjs browser-asmjs
> rm -rf browser-asmjs/test
-------------------------------
Here is output of:
diff --ignore-trailing-space ../dockcross-make-test-baseline ../dockcross-make-test-current
24a25,27
> docker build -t dockcross/linux-ppc64le linux-ppc64le
> docker run --rm dockcross/linux-ppc64le > bin/dockcross-linux-ppc64le && chmod +x bin/dockcross-linux-ppc64le
> bin/dockcross-linux-ppc64le python test/run.py --languages C
30a34,38
> cp -r test browser-asmjs/
> docker build -t dockcross/browser-asmjs browser-asmjs
> rm -rf browser-asmjs/test
> docker run --rm dockcross/browser-asmjs > bin/dockcross-browser-asmjs && chmod +x bin/dockcross-browser-asmjs
> bin/dockcross-browser-asmjs python test/run.py --exe-suffix ".js"
```
This commit is contained in:
@@ -183,11 +183,10 @@ source cross-compiler Docker image or the dockcross script itself.
|
||||
Download all images
|
||||
-------------------
|
||||
|
||||
To easily download all images, the convenience target ``display_all_images`` or ``display_default_images``
|
||||
could be used::
|
||||
To easily download all images, the convenience target ``display_images`` could be used::
|
||||
|
||||
curl https://raw.githubusercontent.com/dockcross/dockcross/master/Makefile -o dockcross-Makefile
|
||||
for image in $(make -f dockcross-Makefile display_all_images); do
|
||||
for image in $(make -f dockcross-Makefile display_images); do
|
||||
echo "Pulling dockcross/$image"
|
||||
docker pull dockcross/$image
|
||||
done
|
||||
@@ -196,10 +195,10 @@ Install all dockcross scripts
|
||||
-----------------------------
|
||||
|
||||
To automatically install in ``~/bin`` the dockcross scripts for each images already downloaded, the
|
||||
convenience target ``display_all_images`` or ``display_default_images`` could be used::
|
||||
convenience target ``display_images`` could be used::
|
||||
|
||||
curl https://raw.githubusercontent.com/dockcross/dockcross/master/Makefile -o dockcross-Makefile
|
||||
for image in $(make -f dockcross-Makefile display_all_images); do
|
||||
for image in $(make -f dockcross-Makefile display_images); do
|
||||
if [[ $(docker images -q dockcross/$image) == "" ]]; then
|
||||
echo "~/bin/dockcross-$image skipping: image not found locally"
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user