예제 #1
0
def test_validate_benchmarks_invalid_benchmark():
    """Tests that validate_benchmarks does not validate invalid benchmarks."""
    with pytest.raises(Exception):
        run_experiment.validate_benchmarks('fake_benchmark')
    with pytest.raises(Exception):
        run_experiment.validate_benchmarks('common.sh')
예제 #2
0
def test_validate_benchmarks_valid_benchmarks():
    """Tests that validate_benchmarks properly validates and parses a list of
    valid benchmarks."""
    # It won't raise an exception if everything is valid.
    run_experiment.validate_benchmarks(['freetype2-2017', 'libxml2-v2.9.2'])