[asterisk-commits] pabelanger: branch pabelanger/run_tests r373400 - in /team/pabelanger/run_tes...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Sep 22 19:33:34 CDT 2012


Author: pabelanger
Date: Sat Sep 22 19:33:31 2012
New Revision: 373400

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373400
Log:
Start running some tests

Added:
    team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh   (with props)
Modified:
    team/pabelanger/run_tests/tests/test_astobj2.c
    team/pabelanger/run_tests/tools/compile.sh

Modified: team/pabelanger/run_tests/tests/test_astobj2.c
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tests/test_astobj2.c?view=diff&rev=373400&r1=373399&r2=373400
==============================================================================
--- team/pabelanger/run_tests/tests/test_astobj2.c (original)
+++ team/pabelanger/run_tests/tests/test_astobj2.c Sat Sep 22 19:33:31 2012
@@ -424,7 +424,7 @@
 	struct ao2_iterator *mult_it;
 	struct test_obj *obj;
 	ao2_callback_fn *cmp_fn;
-	int n_buckets;
+	int n_buckets = 0;
 	int increment = 0;
 	int destructor_count = 0;
 	int count;

Modified: team/pabelanger/run_tests/tools/compile.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/compile.sh?view=diff&rev=373400&r1=373399&r2=373400
==============================================================================
--- team/pabelanger/run_tests/tools/compile.sh (original)
+++ team/pabelanger/run_tests/tools/compile.sh Sat Sep 22 19:33:31 2012
@@ -4,7 +4,34 @@
 
 cd $1
 
+set +e
+./contrib/scripts/get_mp3_source.sh
+set -e
 ./configure --enable-dev-mode
-make
-make install
-make sample
+
+make NOISY_BUILD=yes clean
+make NOISY_BUILD=yes menuselect.makeopts
+
+menuselect/menuselect --enable DONT_OPTIMIZE menuselect.makeopts
+menuselect/menuselect --enable DEBUG_THREADS menuselect.makeopts
+menuselect/menuselect --enable TEST_FRAMEWORK menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_TESTS menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_ADDONS menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_BRIDGES menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_CEL menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_CDR menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_CHANNELS menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_CODECS menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_FORMATS menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_FUNCS menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_PBX menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_RES menuselect.makeopts
+menuselect/menuselect --enable-category MENUSELECT_UTILS menuselect.makeopts
+
+cat menuselect.makeopts
+
+make NOISY_BUILD=yes
+make NOISY_BUILD=yes install
+make NOISY_BUILD=yes samples
+make NOISY_BUILD=yes clean
+make NOISY_BUILD=yes distclean

Added: team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh?view=auto&rev=373400
==============================================================================
--- team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh (added)
+++ team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh Sat Sep 22 19:33:31 2012
@@ -1,0 +1,28 @@
+#!/bin/bash
+
+PACKAGES=""
+
+function common_packages {
+    PACKAGES="$PACKAGES build-essential subversion wget xmlstarlet libssl-dev"
+    PACKAGES="$PACKAGES unixodbc-dev libasound2-dev libpq-dev libmysqlclient-dev"
+    PACKAGES="$PACKAGES libbluetooth-dev libvpb-dev libnewt-dev libsqlite0-dev"
+    PACKAGES="$PACKAGES libspeex-dev libspeexdsp-dev libcurl4-openssl-dev"
+    PACKAGES="$PACKAGES libncurses5-dev libxml2-dev libsqlite3-dev libiksemel-dev"
+    PACKAGES="$PACKAGES libradiusclient-ng-dev libsnmp-dev freetds-dev"
+    PACKAGES="$PACKAGES libc-client2007e-dev libgmime-2.6-dev libjack-dev liblua5.1-0-dev"
+    PACKAGES="$PACKAGES libcap-dev libspandsp-dev libopenr2-dev libresample1-dev"
+    PACKAGES="$PACKAGES libopenais-dev libneon27-gnutls-dev libical-dev libsrtp0-dev"
+    PACKAGES="$PACKAGES zlib1g-dev"
+}
+
+function precise_packages {
+    common_packages
+}
+
+RELEASE=`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -f 2 -d '='`
+
+case "${RELEASE}" in
+    precise) precise_packages;;
+esac
+
+apt-get install -y ${PACKAGES}

Propchange: team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/pabelanger/run_tests/tools/hook.d/F20Prerequisites.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list