diff --git a/qa/bin/functional b/qa/bin/functional index d6951f020..ae85285f4 100755 --- a/qa/bin/functional +++ b/qa/bin/functional @@ -14,53 +14,13 @@ import sys import glob import time import signal +import argparse import itertools import subprocess PROGRAM = os.path.realpath(__file__) ROOT = os.path.abspath(os.path.join(os.path.dirname(PROGRAM), os.path.join('..', '..'))) -LIBRARY = os.path.join(ROOT, 'lib') - -try: - import docopt -except ImportError as exc: - # PROGRAM = os.path.abspath(os.path.join(os.getcwd(),sys.argv[0])) - LIBRARY = os.path.abspath(os.path.join(os.path.dirname(PROGRAM), os.path.join('..', '..', 'lib'))) - sys.path.append(LIBRARY) - from exabgp.vendoring import docopt - - -USAGE = """\ -usage: - functional help|--help - functional listing - functional all [--timeout ][--port ] - functional client [--dry] [--timeout ][--port ] - functional server [--dry] [--timeout ][--port ] - functional run [] [--timeout ][--port ][--steps ] - functional explain [--timeout ][--port ] - functional decode - functional edit - -The BGP swiss army knife of networking functional testing tool - -commands: - listing list all functional test available - all run all available test - explain show what command for a test are run - run run a particular test - client start the client for a specific test - server start the server for a specific test - decode use the cond - edit start $EDITOR to edit a specific test - -optional arguments: - --help, -h this page - --dry, -d show what command would be run but does nothing - --port , -p base port to use [default: 1790] - --timeout