[Asterisk-code-review] Improvements for ./run-local setup. (testsuite[master])
    Corey Farrell 
    asteriskteam at digium.com
       
    Sun Jun  7 19:53:52 CDT 2015
    
    
  
Corey Farrell has uploaded a new change for review.
  https://gerrit.asterisk.org/599
Change subject: Improvements for ./run-local setup.
......................................................................
Improvements for ./run-local setup.
This change allows setting an alternate source directory using the
variable ASTSRCDIR.  If unset or blank it defaults to the location
previously used, "..".
This also adds support for ./tests/custom to define setup actions.
If the script ./tests/custom/custom-setup exists, it will be run
after installation of Asterisk.
Change-Id: I85b525b6069ffdc4ff5fecab2151bf2d0cacbf36
---
M run-local
1 file changed, 7 insertions(+), 1 deletion(-)
  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/99/599/1
diff --git a/run-local b/run-local
index 3844cc6..5371c1e 100755
--- a/run-local
+++ b/run-local
@@ -20,7 +20,10 @@
 		make install DESTDIR="$HERE/astroot"
 	)
 	(
-		cd ..
+		if test -z $ASTSRCDIR; then
+			ASTSRCDIR=..
+		fi
+		cd $ASTSRCDIR
 		# The user may have already run ./configure and make
 		if [ ! -f config.status ]; then
 			./configure --enable-dev-mode
@@ -30,6 +33,9 @@
 		make
 		make install samples DESTDIR="$HERE/astroot"
 	)
+	if [ -x tests/custom/custom-setup ]; then
+		./tests/custom/custom-setup
+	fi
 }
 
 mktemp_symlink() {
-- 
To view, visit https://gerrit.asterisk.org/599
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I85b525b6069ffdc4ff5fecab2151bf2d0cacbf36
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Corey Farrell <git at cfware.com>
    
    
More information about the asterisk-code-review
mailing list