Lines Matching full:config
103 local config=$1
105 local line=`perf daemon --config ${config} -x: | head -1`
112 perf daemon stop --config ${config}
120 local config=$1
123 perf daemon start --config ${config}
126 trap "echo 'FAILED: Signal caught'; daemon_exit ${config}; exit 1" SIGINT SIGTERM
132 state=`perf daemon ping --config ${config} --session ${session} | awk '{ print $1 }'`
137 daemon_exit ${config}
147 local config=$(mktemp /tmp/perf.daemon.config.XXX)
150 cat <<EOF > ${config}
161 sed -i -e "s|BASE|${base}|" ${config}
164 daemon_start ${config} size
168 local line=`perf daemon --config ${config} -x: | head -1`
173 local line=`perf daemon --config ${config} -x: | head -2 | tail -1`
180 local line=`perf daemon --config ${config} -x: | head -3 | tail -1`
186 daemon_exit ${config}
189 rm -f ${config}
196 local config=$(mktemp /tmp/perf.daemon.config.XXX)
199 # prepare config
200 cat <<EOF > ${config}
211 sed -i -e "s|BASE|${base}|" ${config}
214 daemon_start ${config} size
218 local line=`perf daemon --config ${config} -x: | head -3 | tail -1`
223 # prepare new config
224 local config_new=${config}.new
236 # TEST 1 - change config
239 cp ${config_new} ${config}
247 state=`perf daemon ping --config ${config} --session time | awk '{ print $1 }'`
252 local line=`perf daemon --config ${config} -x: | head -3 | tail -1`
256 # TEST 2 - empty config
258 local config_empty=${config}.empty
264 # change config
266 cp ${config_empty} ${config}
271 state=`perf daemon ping --config ${config} --session time | awk '{ print $1 }'`
276 state=`perf daemon ping --config ${config} --session size | awk '{ print $1 }'`
279 local one=`perf daemon --config ${config} -x: | wc -l`
286 # TEST 3 - config again
288 cp ${config_new} ${config}
293 state=`perf daemon ping --config ${config} --session size | awk '{ print $1 }'`
299 state=`perf daemon ping --config ${config} --session time | awk '{ print $1 }'`
303 daemon_exit ${config}
306 rm -f ${config}
315 local config=$(mktemp /tmp/perf.daemon.config.XXX)
318 # prepare config
319 cat <<EOF > ${config}
330 sed -i -e "s|BASE|${base}|" ${config}
333 daemon_start ${config} size
335 …local pid_size=`perf daemon --config ${config} -x: | head -2 | tail -1 | awk 'BEGIN { FS = ":" } ;…
336 …local pid_time=`perf daemon --config ${config} -x: | head -3 | tail -1 | awk 'BEGIN { FS = ":" } ;…
348 daemon_exit ${config}
360 rm -f ${config}
367 local config=$(mktemp /tmp/perf.daemon.config.XXX)
370 # prepare config
371 cat <<EOF > ${config}
379 sed -i -e "s|BASE|${base}|" ${config}
382 daemon_start ${config} test
385 perf daemon signal --config ${config} --session test
386 perf daemon signal --config ${config}
389 daemon_exit ${config}
399 rm -f ${config}
406 local config=$(mktemp /tmp/perf.daemon.config.XXX)
409 # prepare config
410 cat <<EOF > ${config}
421 sed -i -e "s|BASE|${base}|" ${config}
424 daemon_start ${config} size
426 size=`perf daemon ping --config ${config} --session size | awk '{ print $1 }'`
427 type=`perf daemon ping --config ${config} --session time | awk '{ print $1 }'`
435 daemon_exit ${config}
438 rm -f ${config}
445 local config=$(mktemp /tmp/perf.daemon.config.XXX)
448 # prepare config
449 cat <<EOF > ${config}
457 sed -i -e "s|BASE|${base}|" ${config}
460 daemon_start ${config} size
462 # start second daemon over the same config/base
463 failed=`perf daemon start --config ${config} 2>&1 | awk '{ print $1 }'`
472 daemon_exit ${config}
475 rm -f ${config}