summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-06-20 13:34:53 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-06-20 13:34:53 +0000
commit9dda6c4b6915020aaa4cef76b2cd6f83eca3fb76 (patch)
tree6f18882ac12a3faa5e274b686f5bc0037ac771e6
parenta8596a8e389087884f3a84415ecfb62f4ab70634 (diff)
2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added build test script * build_test.sh
-rw-r--r--ChangeLog5
-rwxr-xr-xbuild_test.sh56
2 files changed, 61 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 007c2a49..a3860244 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+ Added build test script
+ * build_test.sh
+
+2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+
Updated ja.po
* src/ja.po
diff --git a/build_test.sh b/build_test.sh
new file mode 100755
index 00000000..66c7c9bd
--- /dev/null
+++ b/build_test.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+exec 2>&1
+
+BUILD_TEST_DIR=/tmp/aria2_build_test
+LOG=build_test.log
+
+if [ ! -d $BUILD_TEST_DIR ]; then
+ mkdir $BUILD_TEST_DIR || echo "Failed to create directory $BUILD_TEST_DIR" \
+ && exit -1
+fi
+
+echo -n "Starting build test "
+echo `date`
+
+# build CONFIGURE_OPTS BIN_SUFFIX DESC
+build()
+{
+ echo -n "new build() started at "
+ echo `date`
+ echo "*** configure opts=$1"
+ BIN_NAME=aria2c_$2
+ if [ -f $BUILD_TEST_DIR/$BIN_NAME ]; then
+ echo "$BIN_NAME exists, skipping"
+ return
+ fi
+ ./configure $1 && make -j2 check && \
+ cp src/aria2c $BUILD_TEST_DIR/aria2c_$2 && \
+ cp config.log $BUILD_TEST_DIR/config.log_$2
+}
+
+clear()
+{
+ for file in `ls $BUILD_TEST_DIR`; do
+ rm -f $BUILD_TEST_DIR/$file;
+ done
+}
+
+case "$1" in
+ clear)
+ clear
+ ;;
+ *)
+ build "--without-gnutls" "openssl"
+ build "--without-gnutls --without-openssl" "nossl"
+ build "--without-libcares" "nocares"
+ build "--without-libxml2" "nolibxml2"
+ build "--without-libxml2 --without-libexpat" "noxml"
+ # Feature combinations
+ build "--disable-bittorrent" "nobt"
+ build "--disable-metalink" "noml"
+ build "--disable-bittorrent --disable-metalink" "nobt_noml"
+ build "--disable-epoll" "noepoll"
+ build "--disable-epoll --without-libcares" "noepoll_nocares"
+ ;;
+esac