[svn-commits] gtjoseph: testsuite/asterisk/trunk r4731 - /asterisk/trunk/run-local

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Feb 24 10:24:09 CST 2014


Author: gtjoseph
Date: Mon Feb 24 10:24:04 2014
New Revision: 4731

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4731
Log:
testsuite:  Add a test for Lua >=5.2 in run-local

asttest won't even compile if the Lua version is 5.2 or greater.
This patch skips the compile in 'run-local setup'.


Modified:
    asterisk/trunk/run-local

Modified: asterisk/trunk/run-local
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/run-local?view=diff&rev=4731&r1=4730&r2=4731
==============================================================================
--- asterisk/trunk/run-local (original)
+++ asterisk/trunk/run-local Mon Feb 24 10:24:04 2014
@@ -13,7 +13,8 @@
 }
 
 setup() {
-	(
+	# If getfenv fails the Lua version is >=5.2 and asttest won't compile
+	lua -e "getfenv()" 2>/dev/null && (
 		cd asttest
 		make
 		make install DESTDIR="$HERE/root"




More information about the svn-commits mailing list