blob: 4082847ba1e6dcb262a1ac8ff1eaf12656a076d6 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = 'The Chromium OS Authors'
DOC = """
This test puts the network interfaces through hundred(s) of
connect/disconnect cycles and verifies that flimflam properly detects
that the service is either in online or portal state.
Use with --args=service_name=cell to test the
portal code on cellular devices.
NAME = 'network_PortalStress'
PURPOSE = 'Stress test the portal detection code.'
Fails if portal code detects portal state when is accessible or if portal code detects online
when is not accessible.
TEST_CLASS = 'network'
TEST_TYPE = 'client'
import logging'args = %s' % args)
if args:
args = args[0].split(':')
if args:
dict_args = dict([x.split('=') for x in args])
dict_args = {}
# Run online cycle for hundred(s) of iterations because this is fast
force_portal=False, tag='online', test_iterations=100, **dict_args)
# Run the portal cycle for fewer iterations because each test must time
# out and that makes it exceedingly slow (15 seconds/iteration)
force_portal=True, tag='portal', test_iterations=20, **dict_args)