mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
build: skip missing executables in testwaf.sh
This commit is contained in:
parent
2eab1d7fdc
commit
eda5888492
@ -48,6 +48,11 @@ echo "testing python portability"
|
|||||||
pushd lib/talloc
|
pushd lib/talloc
|
||||||
versions="python2.4 python2.5 python2.6 python3.0 python3.1"
|
versions="python2.4 python2.5 python2.6 python3.0 python3.1"
|
||||||
for p in $versions; do
|
for p in $versions; do
|
||||||
|
ret=$(which $p || echo "failed")
|
||||||
|
if [ $ret == "failed" ]; then
|
||||||
|
echo "$p not found, skipping"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
echo "Testing $p"
|
echo "Testing $p"
|
||||||
$p ../../buildtools/bin/waf configure -C --enable-developer --prefix=$PREFIX
|
$p ../../buildtools/bin/waf configure -C --enable-developer --prefix=$PREFIX
|
||||||
$p ../../buildtools/bin/waf build install
|
$p ../../buildtools/bin/waf build install
|
||||||
@ -56,6 +61,11 @@ popd
|
|||||||
|
|
||||||
echo "testing cross compiling"
|
echo "testing cross compiling"
|
||||||
pushd lib/talloc
|
pushd lib/talloc
|
||||||
CC=arm-linux-gnueabi-gcc ./configure -C --prefix=$PREFIX --cross-compile --cross-execute='runarm'
|
ret=$(which arm-linux-gnueabi-gcc || echo "failed")
|
||||||
make && make install
|
if [ $ret != "failed" ]; then
|
||||||
|
CC=arm-linux-gnueabi-gcc ./configure -C --prefix=$PREFIX --cross-compile --cross-execute='runarm'
|
||||||
|
make && make install
|
||||||
|
else
|
||||||
|
echo "Cross-compiler not installed, skipping test"
|
||||||
|
fi
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user