aboutsummaryrefslogtreecommitdiffstats
path: root/fbench/util/pretest.sh
blob: 315a801998792f1844546757367caadb8ae5db57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#
# This script will be run by the 'runtests.sh' script before
# each individual test run. It will typically use the 'geturl'
# program to clear the fsearch and fdispatch caches.
#

# do not produce any output, log error messages to 'pretest.err'
exec > /dev/null 2>>pretest.err

#
# Clear fsearch and fdispatch caches. hostX and portX should be
# replaced with real host names and port numbers referring to the http
# daemons of the fsearch and fdispatch programs you are benchmarking.
#
#bin/geturl host1 port1 "/admin?command=clear_caches"
#bin/geturl host2 port2 "/admin?command=clear_caches"
#bin/geturl host3 port3 "/admin?command=clear_caches"
#bin/geturl host4 port4 "/admin?command=clear_caches"
#bin/geturl host5 port5 "/admin?command=clear_caches"
#...