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 8 DIR=`pwd`/"full_bisect_test" 9 10 GOOD_BUILD=${DIR}/good-objects 11 BAD_BUILD=${DIR}/bad-objects 12 13 mkdir -p ${DIR}/work 14 15 WORK_BUILD=${DIR}/work 16 17 rm -f ${WORK_BUILD}/* 18 19 COMMON_FILE="${DIR}/common.sh" 20 21 cat <<-EOF > ${COMMON_FILE} 22 23 BISECT_GOOD_BUILD=${GOOD_BUILD} 24 BISECT_BAD_BUILD=${BAD_BUILD} 25 BISECT_WORK_BUILD=${WORK_BUILD} 26 27 BISECT_GOOD_SET=${GOOD_BUILD}/_LIST 28 BISECT_BAD_BAD=${BAD_BUILD}/_LIST 29 30 BISECT_STAGE="TRIAGE" 31 32 EOF 33 34 chmod 755 ${COMMON_FILE} 35 36 exit 0 37