2020# This file is contains code that is common among the test wrappers.
2121#
2222
23- #
24- # Source .bashrc to keep pbench happy.
25- #
2623test_cmd=$0
27- source ~/.bashrc
28-
2924# Values setting for test wrappers to use.
3025#
3126# TOOLS_BIN: points to the tool directory
3227# to_home_root: home directory
3328# to_configuration: configuration information
3429# to_times_to_run: number of times to run the test
35- # to_pbench: Run the test via pbench
36- # to_pbench_copy: Copy the pbench data, not move it.
37- # to_puser: User running pbench
38- # to_pstats: pbench stats to use
3930# to_run_label: Label for the run
4031# to_user: User on the test system running the test
4132# to_sys_type: for results info, basically aws, azure or local
@@ -56,11 +47,6 @@ gs_usage_info()
5647 echo " --iterations <value>: Number of times to run the test, defaults to 1."
5748 echo " --iteration_default <value>: Value to set iterations to, if default is not set."
5849 echo " --no_pkg_install: Test is not to use dnf/yum/apt or other such tools"
59- echo " --pbench: use pbench-user-benchmark and place information into pbench, defaults to do not use."
60- echo " --pbench_user <value>: user who started everything. Defaults to the current user."
61- echo " --pbench_copy: Copy the pbench data, not move it."
62- echo " --pbench_stats: What stats to gather. Defaults to all stats."
63- echo " --run_label: the label to associate with the pbench run. No default setting."
6450 echo " --run_user: user that is actually running the test on the test system. Defaults to user running wrapper."
6551 echo " --sys_type: Type of system working with, aws, azure, hostname. Defaults to hostname."
6652 echo " --sysname: name of the system running, used in determining config files. Defaults to hostname."
@@ -79,17 +65,12 @@ to_home_root=`echo $HOME | rev | cut -d'/' -f 2- | rev`
7965if [[ $to_home_root == "" ]]; then
8066 to_home_root="/"
8167fi
82- to_pbench=0
83- to_pbench_copy="0"
8468
85- to_puser=`whoami`
86- to_run_user=`whoami`
8769to_times_to_run=0
8870iteration_default=1
8971to_run_label=""
9072to_user=`whoami`
9173to_sysname=`hostname`
92- to_pstats="default"
9374to_no_pkg_install=0
9475
9576to_tuned_setting=""
133114 to_no_pkg_install=1
134115 shift 1
135116 ;;
136- --pbench)
137- to_pbench=1
138- i=$((i + 1))
139- shift 1
140- ;;
141- --pbench_copy)
142- to_pbench_copy=1
143- i=$((i + 1))
144- shift 1
145- ;;
146- --pbench_stats)
147- i=$((i + 2))
148- to_pstats=$value
149- shift 2
150- ;;
151- --pbench_user)
152- i=$((i + 2))
153- to_puser=$value
154- shift 2
155- ;;
156- --run_label)
157- i=$((i + 2))
158- to_run_label=$value
159- shift 2
160- ;;
161117 --run_user)
162118 i=$((i + 2))
163119 to_user=$value
0 commit comments