OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [bench/] [go1/] [_testmain.go] - Blame information for rev 700

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 700 jeremybenn
package main
2
 
3
import target "go1"
4
import "testing"
5
import "regexp"
6
 
7
var tests = []testing.InternalTest{
8
}
9
 
10
var benchmarks = []testing.InternalBenchmark{
11
        {"go1.BenchmarkBinaryTree17", target.BenchmarkBinaryTree17},
12
        {"go1.BenchmarkFannkuch11", target.BenchmarkFannkuch11},
13
        {"go1.BenchmarkGobDecode", target.BenchmarkGobDecode},
14
        {"go1.BenchmarkGobEncode", target.BenchmarkGobEncode},
15
        {"go1.BenchmarkGzip", target.BenchmarkGzip},
16
        {"go1.BenchmarkGunzip", target.BenchmarkGunzip},
17
        {"go1.BenchmarkJSONEncode", target.BenchmarkJSONEncode},
18
        {"go1.BenchmarkJSONDecode", target.BenchmarkJSONDecode},
19
        {"go1.BenchmarkRevcomp25M", target.BenchmarkRevcomp25M},
20
        {"go1.BenchmarkTemplate", target.BenchmarkTemplate},
21
}
22
var examples = []testing.InternalExample{}
23
 
24
var matchPat string
25
var matchRe *regexp.Regexp
26
 
27
func matchString(pat, str string) (result bool, err error) {
28
        if matchRe == nil || matchPat != pat {
29
                matchPat = pat
30
                matchRe, err = regexp.Compile(matchPat)
31
                if err != nil {
32
                        return
33
                }
34
        }
35
        return matchRe.MatchString(str), nil
36
}
37
 
38
func main() {
39
        testing.Main(matchString, tests, benchmarks, examples)
40
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.