[svn-commits] pabelanger: branch pabelanger/sandbox r1582 - in /asterisk/team/pabelanger/sa...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon May 23 11:37:09 CDT 2011
Author: pabelanger
Date: Mon May 23 11:37:05 2011
New Revision: 1582
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1582
Log:
Compile asterisk using live_ast
Added:
asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py (with props)
asterisk/team/pabelanger/sandbox/sandbox/
asterisk/team/pabelanger/sandbox/tarballs/
Modified:
asterisk/team/pabelanger/sandbox/runtests.py
Added: asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py?view=auto&rev=1582
==============================================================================
--- asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py (added)
+++ asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py Mon May 23 11:37:05 2011
@@ -1,0 +1,30 @@
+#!/usr/bin/env python
+'''
+Copyright (C) 2011, Digium, Inc.
+Paul Belanger <pabelanger at digium.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+'''
+
+import sys
+import os
+import logging
+
+from asterisk import Asterisk
+
+log = logging.getLogger('Builder')
+
+class Builder(object):
+ def __init__(self, version=None):
+ os.chdir('sandbox/asterisk-%s' % version)
+ self. _compile()
+
+ def _compile(self):
+ self._live_ast('configure')
+ os.system('make')
+ self._live_ast('install')
+ self._live_ast('samples')
+
+ def _live_ast(self, command):
+ os.system('./contrib/scripts/live_ast %s' % command)
Propchange: asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/pabelanger/sandbox/lib/python/asterisk/Builder.py
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: asterisk/team/pabelanger/sandbox/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/sandbox/runtests.py?view=diff&rev=1582&r1=1581&r2=1582
==============================================================================
--- asterisk/team/pabelanger/sandbox/runtests.py (original)
+++ asterisk/team/pabelanger/sandbox/runtests.py Mon May 23 11:37:05 2011
@@ -20,6 +20,7 @@
from asterisk.version import AsteriskVersion
from asterisk.asterisk import Asterisk
+from asterisk.Builder import Builder
from asterisk import utils
from sipp.version import SIPpVersion
@@ -410,19 +411,8 @@
help="Run Asterisk under valgrind.")
(options, args) = parser.parse_args(argv)
- # Check to see if this has been executed within a sub directory of an
- # Asterisk source tree. This is required so that we can execute
- # install and uninstall targets of the Asterisk Makefile in between
- # tests.
- if os.path.exists("../main/asterisk.c") is False:
- print "*** ERROR ***\n" \
- "runtests has not been executed from within a\n" \
- "subdirectory of an Asterisk source tree. This\n" \
- "is required for being able to uninstall and install\n" \
- "Asterisk in between tests.\n" \
- "***************\n"
- return 1
-
+ x = Builder('1.8.4')
+ exit
ast_version = AsteriskVersion()
test_suite = TestSuite(ast_version, options)
More information about the svn-commits
mailing list