diff options
| author | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-20 16:43:11 -0400 |
|---|---|---|
| committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-20 16:43:11 -0400 |
| commit | 5cbcbfa61aede7acbf68d9c17cd0723fba21b1c3 (patch) | |
| tree | 6a00ccf3c2e04b3b92c686273f2bc133ac4d881d | |
| parent | a863f97842f305fedc5c6c151cef1ca9f7c7b992 (diff) | |
Ignore and do not version control the configuration file.
The configuration file is different per-user. We don't want to keep it
under version control.
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | config/config.py | 46 |
2 files changed, 2 insertions, 47 deletions
| @@ -1,4 +1,5 @@ | |||
| 1 | config/config.py | ||
| 1 | *~ | 2 | *~ |
| 2 | \#*# | 3 | \#*# |
| 3 | *.pyc | 4 | *.pyc |
| 4 | .ropeproject* \ No newline at end of file | 5 | .ropeproject* |
diff --git a/config/config.py b/config/config.py deleted file mode 100644 index 5176460..0000000 --- a/config/config.py +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | from __future__ import print_function | ||
| 2 | import os | ||
| 3 | import sys | ||
| 4 | |||
| 5 | REPOS = {'liblitmus' : '/home/hermanjl/git/liblitmus', | ||
| 6 | 'sched_trace' : '/home/hermanjl/git/sched_trace', | ||
| 7 | 'analysis' : '/home/hermanjl/git/overhead-analysis-cjk', | ||
| 8 | 'ft_tools' : '/home/hermanjl/git/ft_tools/ftcat', | ||
| 9 | 'trace-cmd' : '/home/hermanjl/git/trace-cmd'} | ||
| 10 | |||
| 11 | BINS = {'bespin' : '{}/bespin'.format(REPOS['liblitmus']), | ||
| 12 | 'colorspin' : '{}/colorspin'.format(REPOS['liblitmus']), | ||
| 13 | 'rtspin' : '{}/rtspin'.format(REPOS['liblitmus']), | ||
| 14 | 'release' : '{}/release_ts'.format(REPOS['liblitmus']), | ||
| 15 | 'ftcat' : '{}/ftcat'.format(REPOS['ft_tools']), | ||
| 16 | 'st_trace' : '{}/st_trace'.format(REPOS['ft_tools']), | ||
| 17 | 'split' : '{}/split'.format(REPOS['analysis']), | ||
| 18 | 'sort' : '{}/sort-all'.format(REPOS['analysis']), | ||
| 19 | 'analyze' : '{}/analyze'.format(REPOS['analysis']), | ||
| 20 | 'trace-cmd' : '{}/trace-cmd'.format(REPOS['trace-cmd'])} | ||
| 21 | |||
| 22 | DEFAULTS = {'params_file' : 'params.py', | ||
| 23 | 'sched_file' : 'sched.py', | ||
| 24 | 'exps_file' : 'exps.py', | ||
| 25 | 'duration' : '10', | ||
| 26 | 'spin' : 'rtspin'} | ||
| 27 | |||
| 28 | FILES = {'ft_data' : 'ft.bin', | ||
| 29 | 'linux_data' : 'trace.dat', | ||
| 30 | 'sched_data' : 'st-{}.bin', | ||
| 31 | 'log_data' : 'trace.slog'} | ||
| 32 | |||
| 33 | PARAMS = {'sched' : 'scheduler', | ||
| 34 | 'dur' : 'duration'} | ||
| 35 | |||
| 36 | valid = True | ||
| 37 | for repo, loc in REPOS.items(): | ||
| 38 | if not os.path.isdir(loc): | ||
| 39 | valid = False | ||
| 40 | print("Cannot access repo '%s' at '%s'" % (repo, loc), file=sys.stderr) | ||
| 41 | for prog, loc in BINS.items(): | ||
| 42 | if not os.path.isfile(loc): | ||
| 43 | valid = False | ||
| 44 | print("Cannot access program '%s' at '%s'" % (prog, loc), file=sys.stderr) | ||
| 45 | if not valid: | ||
| 46 | print("Errors in config file", file=sys.stderr) | ||
