예제 #1
0
파일: all.py 프로젝트: Aaron-jp/ToMaTo
def runSimpleTop(topId):
	from tests.top.simple import top
	
	print "creating topology..."
	top_modify(topId, jsonToMods(top), True)

	print "testing topology information..."
	topInformation.simpleTop_checkTopInformation(topId)

	print "testing state transitions..."
	stateTransitions.simpleTop_checkStateTransitions(topId)

	print "testing images..."
	images.simpleTop_checkImages(topId)

	print "testing tinc connectors..."
	tincConnectors.simpleTop_checkTincConnectors(topId)

	print "testing link emulation..."
	linkEmulation.simpleTop_checkLinkEmulation(topId)

	print "testing packet capturing..."
	packetCapturing.simpleTop_checkPacketCapturing(topId)

	print "testing programmable devices..."
	programmableDevices.simpleTop_checkProgrammableDevices(topId)

	print "testing periodic tasks..."
	periodicTasks.checkPeriodicTasks()

	print "destroying topology..."
	top_action(topId, "destroy", direct=True)		
예제 #2
0
파일: all.py 프로젝트: david-hock/ToMaTo
		topInformation.simpleTop_checkTopInformation(topId)

		print "testing state transitions..."
		stateTransitions.simpleTop_checkStateTransitions(topId)

		print "testing images..."
		images.simpleTop_checkImages(topId)

		print "testing tinc connectors..."
		tincConnectors.simpleTop_checkTincConnectors(topId)

		print "testing link emulation..."
		linkEmulation.simpleTop_checkLinkEmulation(topId)

		print "testing packet capturing..."
		packetCapturing.simpleTop_checkPacketCapturing(topId)

		print "testing programmable devices..."
		programmableDevices.simpleTop_checkProgrammableDevices(topId)

		print "testing periodic tasks..."
		periodicTasks.checkPeriodicTasks()

		print "destroying topology..."
		top_action(topId, "destroy", direct=True)
	except:
		import traceback
		traceback.print_exc()
		print "-" * 50
		errors_print()
		print "-" * 50