Example #1
0
def test_extension(extension_name):
	result=None
	try:
		installer=Naive_Installer()
		installer.set_instance(target_wiki)
		installer.install(extension_name)
		result=wiki_works.wiki_works(target_wiki)
		print "result=",result
		installer.uninstall(extension_name)
	except Exception,e:
		print e
Example #2
0
def test_extension(extension_name):
    result = None
    try:
        installer = Naive_Installer()
        installer.set_instance(target_wiki)
        installer.install(extension_name)
        result = wiki_works.wiki_works(target_wiki)
        print "result=", result
        installer.uninstall(extension_name)
    except Exception, e:
        print e
Example #3
0
    result = None
    try:
        installer = Naive_Installer()
        installer.set_instance(target_wiki)
        installer.install(extension_name)
        result = wiki_works.wiki_works(target_wiki)
        print "result=", result
        installer.uninstall(extension_name)
    except Exception, e:
        print e

    return result


if __name__ == "__main__":
    installer = Naive_Installer()
    installer.set_instance(target_wiki)
    naive_extensions = installer.get_installers()
    for extension_name in naive_extensions:
        print extension_name,
        result = test_extension(extension_name)
        print result
        r = "Unknown"
        if result:
            r = "NAIVE_INSTALL_SEEMS_OK"
        else:
            r = "NAIVE_INSTALL_BREAKS"
        resultfile.write("* " + extension_name + " " + r + "\n")
        resultfile.flush()
    resultfile.close()
Example #4
0
def test_extension(extension_name):
	result=None
	try:
		installer=Naive_Installer()
		installer.set_instance(target_wiki)
		installer.install(extension_name)
		result=wiki_works.wiki_works(target_wiki)
		print "result=",result
		installer.uninstall(extension_name)
	except Exception,e:
		print e

	return result

if __name__=="__main__":
	installer=Naive_Installer()
	installer.set_instance(target_wiki)
	naive_extensions=installer.get_installers()
	for extension_name in naive_extensions:
		print extension_name,
		result=test_extension(extension_name)
		print result
		r="Unknown"
		if result:
			r="NAIVE_INSTALL_SEEMS_OK"
		else:
			r="NAIVE_INSTALL_BREAKS"
		resultfile.write("* "+extension_name+" "+r+"\n")
		resultfile.flush()	
	resultfile.close()