mirror of https://github.com/aria2/aria2
2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added a test for libz. Quoted where it is necessary. * build_test.shpull/1/head
parent
3e4b748412
commit
bf1f56481d
|
@ -1,3 +1,8 @@
|
||||||
|
2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Added a test for libz. Quoted where it is necessary.
|
||||||
|
* build_test.sh
|
||||||
|
|
||||||
2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Added GZip to `Enabled Features' list.
|
Added GZip to `Enabled Features' list.
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
||||||
BUILD_TEST_DIR=/tmp/aria2_build_test
|
BUILD_TEST_DIR=/tmp/aria2_build_test
|
||||||
LOG=build_test.log
|
|
||||||
|
|
||||||
if [ ! -d $BUILD_TEST_DIR ]; then
|
if [ ! -d "$BUILD_TEST_DIR" ]; then
|
||||||
mkdir $BUILD_TEST_DIR || echo "Failed to create directory $BUILD_TEST_DIR" \
|
mkdir "$BUILD_TEST_DIR" \
|
||||||
|
|| echo "Failed to create directory $BUILD_TEST_DIR" \
|
||||||
&& exit -1
|
&& exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -19,20 +19,21 @@ build()
|
||||||
echo -n "new build() started at "
|
echo -n "new build() started at "
|
||||||
echo `date`
|
echo `date`
|
||||||
echo "*** configure opts=$1"
|
echo "*** configure opts=$1"
|
||||||
BIN_NAME=aria2c_$2
|
BIN_NAME="aria2c_$2"
|
||||||
if [ -f $BUILD_TEST_DIR/$BIN_NAME ]; then
|
if [ -f "$BUILD_TEST_DIR/$BIN_NAME" ]; then
|
||||||
echo "$BIN_NAME exists, skipping"
|
echo "$BIN_NAME exists, skipping"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
./configure $1 && make -j2 check && \
|
./configure $1 \
|
||||||
cp src/aria2c $BUILD_TEST_DIR/aria2c_$2 && \
|
&& cp config.log "$BUILD_TEST_DIR/config.log_$2" \
|
||||||
cp config.log $BUILD_TEST_DIR/config.log_$2
|
&& LANG=C make -j2 check > "$BUILD_TEST_DIR/aria2c_$2.log" \
|
||||||
|
&& cp src/aria2c "$BUILD_TEST_DIR/aria2c_$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
clear()
|
clear()
|
||||||
{
|
{
|
||||||
for file in `ls $BUILD_TEST_DIR`; do
|
for file in `ls $BUILD_TEST_DIR`; do
|
||||||
rm -f $BUILD_TEST_DIR/$file;
|
rm -f "$BUILD_TEST_DIR/$file";
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,11 +42,13 @@ case "$1" in
|
||||||
clear
|
clear
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
# Library combinations
|
||||||
build "--without-gnutls" "openssl"
|
build "--without-gnutls" "openssl"
|
||||||
build "--without-gnutls --without-openssl" "nossl"
|
build "--without-gnutls --without-openssl" "nossl"
|
||||||
build "--without-libcares" "nocares"
|
build "--without-libcares" "nocares"
|
||||||
build "--without-libxml2" "nolibxml2"
|
build "--without-libxml2" "nolibxml2"
|
||||||
build "--without-libxml2 --without-libexpat" "noxml"
|
build "--without-libxml2 --without-libexpat" "noxml"
|
||||||
|
build "--without-libz" "nozlib"
|
||||||
# Feature combinations
|
# Feature combinations
|
||||||
build "--disable-bittorrent" "nobt"
|
build "--disable-bittorrent" "nobt"
|
||||||
build "--disable-metalink" "noml"
|
build "--disable-metalink" "noml"
|
||||||
|
|
Loading…
Reference in New Issue