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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Sep 22 17:36:38 CDT 2012


Author: pabelanger
Date: Sat Sep 22 17:36:34 2012
New Revision: 373395

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=373395
Log:
Start adding some hooks

Added:
    team/pabelanger/run_tests/tools/compile.sh   (with props)
    team/pabelanger/run_tests/tools/hook.d/
    team/pabelanger/run_tests/tools/hook.d/D10Repository.sh   (with props)
    team/pabelanger/run_tests/tools/hook.d/D15Apt.sh   (with props)
    team/pabelanger/run_tests/tools/hook.d/F10Repository.sh   (with props)
    team/pabelanger/run_tests/tools/hook.d/F15Apt.sh   (with props)
Modified:
    team/pabelanger/run_tests/run_tests.sh
    team/pabelanger/run_tests/tools/pbuilderrc

Modified: team/pabelanger/run_tests/run_tests.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/run_tests.sh?view=diff&rev=373395&r1=373394&r2=373395
==============================================================================
--- team/pabelanger/run_tests/run_tests.sh (original)
+++ team/pabelanger/run_tests/run_tests.sh Sat Sep 22 17:36:34 2012
@@ -25,8 +25,8 @@
 force=0
 never_venv=0
 
-DISTS="precise lucid"
-ARCHS="i386 amd64"
+DISTS="precise"
+ARCHS="i386"
 
 function process_option {
     case "$1" in
@@ -95,6 +95,11 @@
 }
 
 function run_tests {
+    for dist in ${DISTS}; do
+        for arch in ${ARCHS}; do
+            sudo DIST=${dist} ARCH=${arch} pbuilder execute --configfile tools/pbuilderrc tools/compile.sh `pwd`
+        done;
+    done;
     sanity_check
 }
 

Added: team/pabelanger/run_tests/tools/compile.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/compile.sh?view=auto&rev=373395
==============================================================================
--- team/pabelanger/run_tests/tools/compile.sh (added)
+++ team/pabelanger/run_tests/tools/compile.sh Sat Sep 22 17:36:34 2012
@@ -1,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+cd $1
+
+./configure --enable-dev-mode
+make
+make install
+make sample

Propchange: team/pabelanger/run_tests/tools/compile.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/pabelanger/run_tests/tools/compile.sh
------------------------------------------------------------------------------
    svn:executable = *

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

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

Added: team/pabelanger/run_tests/tools/hook.d/D10Repository.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/hook.d/D10Repository.sh?view=auto&rev=373395
==============================================================================
--- team/pabelanger/run_tests/tools/hook.d/D10Repository.sh (added)
+++ team/pabelanger/run_tests/tools/hook.d/D10Repository.sh Sat Sep 22 17:36:34 2012
@@ -1,0 +1,8 @@
+#!/bin/sh
+
+RELEASE=`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -f 2 -d '='`
+MIRROR=`cat /etc/apt/sources.list | head -1`
+
+for x in updates security; do
+    echo ${MIRROR} | sed -e "s/${RELEASE}/${RELEASE}-${x}/g" >> /etc/apt/sources.list
+done

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

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

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

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

Added: team/pabelanger/run_tests/tools/hook.d/D15Apt.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/hook.d/D15Apt.sh?view=auto&rev=373395
==============================================================================
--- team/pabelanger/run_tests/tools/hook.d/D15Apt.sh (added)
+++ team/pabelanger/run_tests/tools/hook.d/D15Apt.sh Sat Sep 22 17:36:34 2012
@@ -1,0 +1,4 @@
+#!/bin/sh
+
+apt-get update
+apt-get -y dist-upgrade

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

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

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

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

Added: team/pabelanger/run_tests/tools/hook.d/F10Repository.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/hook.d/F10Repository.sh?view=auto&rev=373395
==============================================================================
--- team/pabelanger/run_tests/tools/hook.d/F10Repository.sh (added)
+++ team/pabelanger/run_tests/tools/hook.d/F10Repository.sh Sat Sep 22 17:36:34 2012
@@ -1,0 +1,1 @@
+link D10Repository.sh

Propchange: team/pabelanger/run_tests/tools/hook.d/F10Repository.sh
------------------------------------------------------------------------------
    svn:special = *

Added: team/pabelanger/run_tests/tools/hook.d/F15Apt.sh
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/hook.d/F15Apt.sh?view=auto&rev=373395
==============================================================================
--- team/pabelanger/run_tests/tools/hook.d/F15Apt.sh (added)
+++ team/pabelanger/run_tests/tools/hook.d/F15Apt.sh Sat Sep 22 17:36:34 2012
@@ -1,0 +1,1 @@
+link D15Apt.sh

Propchange: team/pabelanger/run_tests/tools/hook.d/F15Apt.sh
------------------------------------------------------------------------------
    svn:special = *

Modified: team/pabelanger/run_tests/tools/pbuilderrc
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/run_tests/tools/pbuilderrc?view=diff&rev=373395&r1=373394&r2=373395
==============================================================================
--- team/pabelanger/run_tests/tools/pbuilderrc (original)
+++ team/pabelanger/run_tests/tools/pbuilderrc Sat Sep 22 17:36:34 2012
@@ -1,11 +1,11 @@
 PBUILDER_DIR=/var/cache/pbuilder
 mkdir -p ${PBUILDER_DIR}/ccache
-mkdir -p ${PBUILDER_DIR}/hook.d
 
 export CCACHE_DIR="${PBUILDER_DIR}/ccache"
 export PATH="/usr/lib/ccache:${PATH}"
 EXTRAPACKAGES="ccache"
 BINDMOUNTS="${CCACHE_DIR} ${PWD}"
+HOOKDIR="`pwd`/tools/hook.d"
  
 # Codenames for Debian suites according to their alias. Update these when
 # needed.




More information about the asterisk-commits mailing list