예제 #1
0
def test_skip0006():
    config = Config()
    config.SKIP = ["*:*:*"]

    assert config.should_skip("mybench:CPython:default-python")
    assert config.should_skip("myotherbench:CPython:default-python")
    assert config.should_skip("mybench:PyPy:default-python")
    assert config.should_skip("mybench:CPython:special-python")
예제 #2
0
def test_skip0006():
    config = Config()
    config.SKIP = ["*:*:*"]

    assert config.should_skip("mybench:CPython:default-python")
    assert config.should_skip("myotherbench:CPython:default-python")
    assert config.should_skip("mybench:PyPy:default-python")
    assert config.should_skip("mybench:CPython:special-python")
예제 #3
0
def test_skip0009():
    config = Config()
    config.SKIP = ["*:SomeVM:*",
                   "fasta:TruffleRuby:default-ruby",
                   "bench:*:*",
                   "bench:vm:skipvariant",
                   "*:*:skipvariant",
                   ]

    assert config.should_skip("fasta:TruffleRuby:default-ruby")
    assert not config.should_skip("fasta:TruffleRuby:default-ruby2")
    assert config.should_skip("bench:lala:hihi")
    assert config.should_skip("bench:lala:hihi2")
    assert not config.should_skip("bench1:lala:hihi")
    assert config.should_skip("bench1:lala:skipvariant")
    assert config.should_skip("bench1:lala2:skipvariant")
예제 #4
0
파일: test_config.py 프로젝트: bennn/krun
def test_skip0009():
    config = Config()
    config.SKIP = ["*:SomeVM:*",
                   "fasta:JRubyTruffle:default-ruby",
                   "bench:*:*",
                   "bench:vm:skipvariant",
                   "*:*:skipvariant",
                   ]

    assert config.should_skip("fasta:JRubyTruffle:default-ruby")
    assert not config.should_skip("fasta:JRubyTruffle:default-ruby2")
    assert config.should_skip("bench:lala:hihi")
    assert config.should_skip("bench:lala:hihi2")
    assert not config.should_skip("bench1:lala:hihi")
    assert config.should_skip("bench1:lala:skipvariant")
    assert config.should_skip("bench1:lala2:skipvariant")
예제 #5
0
def test_skip0010():
    config = Config()
    config.SKIP = ["*:SomeVM:*",
                   "fasta:TruffleRuby:default-ruby",
                   "bench:*:*",
                   "bench:vm:skipvariant",
                   "*:*:skipvariant",
                   "*:*:*",  # everything should be skipped due to this
                   ]

    import uuid
    def rand_str():
        return uuid.uuid4().hex

    for i in xrange(25):
        key = "%s:%s:%s" % tuple([rand_str() for x in xrange(3)])
        assert config.should_skip(key)
예제 #6
0
파일: test_config.py 프로젝트: bennn/krun
def test_skip0010():
    config = Config()
    config.SKIP = ["*:SomeVM:*",
                   "fasta:JRubyTruffle:default-ruby",
                   "bench:*:*",
                   "bench:vm:skipvariant",
                   "*:*:skipvariant",
                   "*:*:*",  # everything should be skipped due to this
                   ]

    import uuid
    def rand_str():
        return uuid.uuid4().hex

    for i in xrange(25):
        key = "%s:%s:%s" % tuple([rand_str() for x in xrange(3)])
        assert config.should_skip(key)
예제 #7
0
def test_skip0008():
    config = Config()
    config.SKIP = ["*:SomeVM:*", "fasta:TruffleRuby:default-ruby"]

    assert config.should_skip("fasta:TruffleRuby:default-ruby")
예제 #8
0
def test_skip0008():
    config = Config()
    config.SKIP = ["*:SomeVM:*", "fasta:TruffleRuby:default-ruby"]

    assert config.should_skip("fasta:TruffleRuby:default-ruby")