File: run-bench

package info (click to toggle)
wreport 3.23-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 18,084 kB
  • sloc: cpp: 18,225; sh: 4,327; python: 634; makefile: 375
file content (57 lines) | stat: -rwxr-xr-x 1,345 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh

set -ue

make -C wreport benchmark
./testenv wreport/benchmark

##!/usr/bin/env python3
#
#import shutil
#import os
#import shlex
#import subprocess
#import sys
#
#env = dict(os.environ)
#
#def read_conffile(fd):
#    for line in fd:
#        line = line.strip()
#        if not line or line.startswith("#"): continue
#        if '=' in line:
#            key, val = line.split("=", 1)
#            val = shlex.split(val)[0]
#            if val.startswith("$"):
#                val = env[val[1:]]
#            env[key] = val
#
#for conffile in ("./run-check.conf", ".git/run-check.conf"):
#    if not os.path.exists(conffile): continue
#    with open(conffile, "rt") as fd:
#        read_conffile(fd)
#
#subprocess.check_call(["make", "-C", "dballe"])
#subprocess.check_call(["make", "-C", "dballe", "bench-run"])
#
#for arg in sys.argv[1:]:
#    if '=' in arg:
#        key, val = arg.split("=", 1)
#        env[key] = val
#
#os.chdir("dballe")
#os.execve("../extra/runtest", ["../extra/runtest", "bench-run"], env)
#
#if [ -d .svn ]
#then
#	SVNID=$(svn info | sed -nre 's/^Revision: //p')
#elif [ -d .git ]
#then
#	SVNID=$(git svn info | sed -nre 's/^Revision: //p')
#else
#	echo "No .svn or .git directory found" >&2
#	exit 1
#fi
#
#cd src
#eatmydata ../run-local ./benchmark > "bench/$SVNID-`hostname`-`date +%Y%m%d-%H%M%S`.csv"