bugfix: Fix failure caused by unset locale
[vswitchperf.git] / conf / 00_common.conf
1 # Copyright 2015 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # ###########################
16 # Common setting potentially accessed by all components.
17 # ###########################
18
19 import os
20
21 # default language and encoding, which will be set in case
22 # that locale is not set properly
23 DEFAULT_LOCALE = 'en_US.UTF-8'
24
25 # default language and encoding, which will be used by external
26 # commands; This values will be set in case, that VSPERF parses
27 # command output.
28 DEFAULT_CMD_LOCALE = 'en_US.UTF-8'
29
30 # ############################
31 # Directories
32 # ############################
33
34 ROOT_DIR = os.path.normpath(os.path.join(
35     os.path.dirname(os.path.realpath(__file__)), '../'))
36 TRAFFICGEN_DIR = os.path.join(ROOT_DIR, 'tools/pkt_gen')
37 SYSMETRICS_DIR = os.path.join(ROOT_DIR, 'tools/collectors')
38
39 # deployment specific paths to OVS and DPDK
40 OVS_DIR_VANILLA = os.path.join(ROOT_DIR, 'src_vanilla/ovs/ovs/')
41
42 RTE_SDK_CUSE = os.path.join(ROOT_DIR, 'src_cuse/dpdk/dpdk/')
43 OVS_DIR_CUSE = os.path.join(ROOT_DIR, 'src_cuse/ovs/ovs/')
44
45 RTE_SDK_USER = os.path.join(ROOT_DIR, 'src/dpdk/dpdk/')
46 OVS_DIR_USER = os.path.join(ROOT_DIR, 'src/ovs/ovs/')
47
48 # the same qemu version is used for vanilla, vHost User and Cuse
49 QEMU_DIR = os.path.join(ROOT_DIR, 'src/qemu/qemu/')
50
51 # ############################
52 # Process configuration
53 # ############################
54
55 # shell command to use when running commands through Pexpect
56 SHELL_CMD = ['/bin/bash', '-c']
57
58 # ############################
59 # Logging configuration
60 # ############################
61
62 # default log output directory for all logs
63 LOG_DIR = '/tmp'
64
65 # default log for all "small" executables
66 LOG_FILE_DEFAULT = 'overall.log'
67
68 # log file for all commands executed on host
69 LOG_FILE_HOST_CMDS = 'host-cmds.log'
70
71 # ############################
72 # Test configuration
73 # ############################
74
75 # verbosity of output to 'stdout'
76 # NOTE: output to log files is always 'debug' level
77 VERBOSITY = 'debug'
78
79 # dictionary of test-specific parameters. These values are accessible
80 # from anywhere in the test framework so be careful with naming
81 # conventions
82 TEST_PARAMS = {}
83
84 # ############################
85 # Modules
86 # ############################
87
88 # following modules will be excluded from automatic load by LoaderServant
89 # it can be used to suppress automatic load of obsoleted or abstract modules
90 # Example:
91 #   EXCLUDE_MODULES = ['ovs_vanilla', 'qemu_virtio_net', 'pidstat']
92 EXCLUDE_MODULES = ["testcenter-rfc2544-throughput"]