[asterisk-commits] mnicholson: testsuite/asterisk/trunk r126 - in /asterisk/trunk/asttest/self-t...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 24 14:40:07 CDT 2010


Author: mnicholson
Date: Wed Mar 24 14:40:04 2010
New Revision: 126

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=126
Log:
Modified self tests involving asterisk to use the new ast.exists() function to check if asterisk exists before running.

Modified:
    asterisk/trunk/asttest/self-tests/astlib_configs/test.lua
    asterisk/trunk/asttest/self-tests/astlib_load_config/test.lua
    asterisk/trunk/asttest/self-tests/astlib_load_config_in_dir/test.lua
    asterisk/trunk/asttest/self-tests/astlib_manager/test.lua
    asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua

Modified: asterisk/trunk/asttest/self-tests/astlib_configs/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/astlib_configs/test.lua?view=diff&rev=126&r1=125&r2=126
==============================================================================
--- asterisk/trunk/asttest/self-tests/astlib_configs/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/astlib_configs/test.lua Wed Mar 24 14:40:04 2010
@@ -1,4 +1,6 @@
 -- test astlib
+
+skip_if(not ast.exists(), "asterisk not found")
 
 -- generate what we expect to see
 expected_test_conf = [[

Modified: asterisk/trunk/asttest/self-tests/astlib_load_config/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/astlib_load_config/test.lua?view=diff&rev=126&r1=125&r2=126
==============================================================================
--- asterisk/trunk/asttest/self-tests/astlib_load_config/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/astlib_load_config/test.lua Wed Mar 24 14:40:04 2010
@@ -1,4 +1,6 @@
 -- test astlib
+
+skip_if(not ast.exists(), "asterisk not found")
 
 -- generate what we expect to see
 expected_test_conf = [[

Modified: asterisk/trunk/asttest/self-tests/astlib_load_config_in_dir/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/astlib_load_config_in_dir/test.lua?view=diff&rev=126&r1=125&r2=126
==============================================================================
--- asterisk/trunk/asttest/self-tests/astlib_load_config_in_dir/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/astlib_load_config_in_dir/test.lua Wed Mar 24 14:40:04 2010
@@ -1,4 +1,6 @@
 -- test astlib
+
+skip_if(not ast.exists(), "asterisk not found")
 
 -- generate what we expect to see
 expected_test_conf = [[

Modified: asterisk/trunk/asttest/self-tests/astlib_manager/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/astlib_manager/test.lua?view=diff&rev=126&r1=125&r2=126
==============================================================================
--- asterisk/trunk/asttest/self-tests/astlib_manager/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/astlib_manager/test.lua Wed Mar 24 14:40:04 2010
@@ -1,4 +1,6 @@
 -- test spawning and connecting to asterisk
+
+skip_if(not ast.exists(), "asterisk not found")
 
 a = ast.new()
 a:generate_manager_conf()

Modified: asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua?view=diff&rev=126&r1=125&r2=126
==============================================================================
--- asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/spawn_asterisk/test.lua Wed Mar 24 14:40:04 2010
@@ -1,4 +1,6 @@
 -- test spawning asterisk
+
+skip_if(not ast.exists(), "asterisk not found")
 
 a = ast.new()
 a:spawn()




More information about the asterisk-commits mailing list