aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/full_bisect_test/setup.sh
blob: 1214de925e5637b7d614755aca02cb29dfacce94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#
# This script creates common.sh, which will be sourced by all the other
# scripts, to set up the necessary environment variables for the bisection
# to work properly.  It is called from main-bisect-test.sh.
#

DIR=`pwd`/"full_bisect_test"

GOOD_BUILD=${DIR}/good-objects
BAD_BUILD=${DIR}/bad-objects

mkdir -p ${DIR}/work

WORK_BUILD=${DIR}/work

rm -f ${WORK_BUILD}/*

COMMON_FILE="${DIR}/common.sh"

cat <<-EOF > ${COMMON_FILE}

BISECT_GOOD_BUILD=${GOOD_BUILD}
BISECT_BAD_BUILD=${BAD_BUILD}
BISECT_WORK_BUILD=${WORK_BUILD}

BISECT_GOOD_SET=${GOOD_BUILD}/_LIST
BISECT_BAD_BAD=${BAD_BUILD}/_LIST

BISECT_STAGE="TRIAGE"

EOF

chmod 755 ${COMMON_FILE}

exit 0