• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#
3# This script creates common.sh, which will be sourced by all the other
4# scripts, to set up the necessary environment variables for the bisection
5# to work properly.  It is called from main-bisect-test.sh.
6#
7
8DIR=`pwd`/"full_bisect_test"
9
10GOOD_BUILD=${DIR}/good-objects
11BAD_BUILD=${DIR}/bad-objects
12
13mkdir -p ${DIR}/work
14
15WORK_BUILD=${DIR}/work
16
17rm -f ${WORK_BUILD}/*
18
19COMMON_FILE="${DIR}/common.sh"
20
21cat <<-EOF > ${COMMON_FILE}
22
23BISECT_GOOD_BUILD=${GOOD_BUILD}
24BISECT_BAD_BUILD=${BAD_BUILD}
25BISECT_WORK_BUILD=${WORK_BUILD}
26
27BISECT_GOOD_SET=${GOOD_BUILD}/_LIST
28BISECT_BAD_BAD=${BAD_BUILD}/_LIST
29
30BISECT_STAGE="TRIAGE"
31
32EOF
33
34chmod 755 ${COMMON_FILE}
35
36exit 0
37