Example #1
0
    caller = None
    print(
        "Ensure you had started app runner server on host {} listening port {}"
        .format([host, "127.0.0.1"][host is None], [port,
                                                    53575][port is None]))
    print("""
To start server clone this repo to desired host and start app runner server
by running script from demo folder like this:

  python ./start_calc_runner.py [<listening_port>]
  
  Default listening port value is 53575

""")

run(
    'python3',
    [
        'run_test.py',
        'envs/calc/calc_test.yaml',  # Test Environment
        'ip_tests',  # Tests package location (tests kind)
        'arith',  # Test package
        'main',  # Test module
        'RootTest',  # Test class
    ] + args + generics,
    '../src',
    'python')

if caller is not None:
    caller = None
Example #2
0
    print(
        "Ensure you had started app runner server on host {} listening port {}"
        .format([host, "127.0.0.1"][host is None], [port,
                                                    53575][port is None]))
    print("""
To start server clone this repo to desired host and start app runner server
by running script from demo folder like this:

  python ./start_calc_runner.py [<listening_port>]
  
  Default listening port value is 53575

""")

run(
    'python3',
    [
        'run_test.py',
        'envs/calc/calc_crt.yaml',  # Test Environment
        'ip_tests',  # Tests package location (tests kind)
        'arith',  # Test package
        'main',  # Test module
        'RootTest',  # Test class
        '-k=crt:True'  # keyworded argument for Test class constructor to use crt test set
    ] + args + generics,
    '../src',
    'python')

if caller is not None:
    caller = None
Example #3
0
specified.

You may specify:
 * test name like "test_sum" and/or others
 * -v to print more verbose messages
 * -re to print elapsed time for tests
 * -vt to timestamp messages with real time (seconds past since 1970-01-01...)

To get info for more options run 'python ../src/run_test.py -h'
"""
import sys

from _run_helper import run

if len(sys.argv) == 2 and sys.argv[1] == '-h':
    print(h)
    exit(0)

run(
    'python3',
    [
        'run_test.py',
        'envs/calc/calc_test_mocked.yaml',  # Test Environment
        'ip_tests',  # Tests package location (tests kind)
        'arith',  # Test package
        'main',  # Test module
        'RootTest',  # Test class
    ] + sys.argv[1:],
    '../src',
    'python')
Example #4
0
#!/bin/python
h = """
Starts app runner server for running calc app.

Usage: python ./00-run_calc_caller.py [<port>]

 * <port> - Listening port for app runner server
"""
import sys
from _run_helper import run, run_background

if len(sys.argv) == 2 and sys.argv[1] == '-h':
    print(h)
    exit(0)

if len(sys.argv) >= 2:
    port = sys.argv[1]
else:
    port = '53575'

run('python3', ['caller.py', 'calc', port, 'python3', '../calc/calc.py'],
    '../src/comealongs/caller', 'python',
    ['caller.py', 'calc', port, 'python', '../calc/calc.py'])