annotate more/bisectinate.sh @ 1432:ee0e4f2f4bdb

Fiddle with the downloads/binaries layout yet again, and update README for it.
author Rob Landley <rob@landley.net>
date Tue, 23 Aug 2011 08:21:48 -0500
parents aabc07905de3
children ad5303b6d35a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
3 # Development script: bisect a git repository to find the first broken commit
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
4 # since the last known good version.
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
5
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
6 # If any of the pipe segments fail, treat that as a fail.
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
7
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
8 set -o pipefail
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
9
1261
e093423880fc Replace bisectinate's built-in tests with a test specified on the command line.
Rob Landley <rob@landley.net>
parents: 1214
diff changeset
10 if [ $# -lt 4 ]
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
11 then
1417
aabc07905de3 Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents: 1361
diff changeset
12 echo "usage: bisectinate ARCH PACKAGE REPO[@BAD] GOOD [TEST...]" >&2
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
13 echo >&2
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
14 echo "Bisect PACKAGE for ARCH, from START to BAD within REPO" >&2
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 exit 1
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 fi
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
17
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
18 # Parse command line options
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
19
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
20 ARCH="$1"
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
21 PKG="$2"
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
22 REPO="${3/@*/}"
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
23 BRANCH="${3/*@/}"
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
24 [ "$BRANCH" == "$3" ] && BRANCH=master
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
25 START="$4"
1261
e093423880fc Replace bisectinate's built-in tests with a test specified on the command line.
Rob Landley <rob@landley.net>
parents: 1214
diff changeset
26 shift 4
e093423880fc Replace bisectinate's built-in tests with a test specified on the command line.
Rob Landley <rob@landley.net>
parents: 1214
diff changeset
27 TEST="$1"
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
28
986
fb0152b485f4 Give bisectinate.sh overrideable SRCDIR and BUILD.
Rob Landley <rob@landley.net>
parents: 985
diff changeset
29 TOP="$(pwd)"
fb0152b485f4 Give bisectinate.sh overrideable SRCDIR and BUILD.
Rob Landley <rob@landley.net>
parents: 985
diff changeset
30 [ -z "$SRCDIR" ] && SRCDIR="$TOP/packages"
fb0152b485f4 Give bisectinate.sh overrideable SRCDIR and BUILD.
Rob Landley <rob@landley.net>
parents: 985
diff changeset
31 [ -z "$BUILD" ] && BUILD="$TOP/build"
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
32
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
33 if [ ! -d "$REPO/.git" ]
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
34 then
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
35 echo "No git repo at $REPO"
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
36 exit 1
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
37 fi
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
38
1417
aabc07905de3 Now that the control-images have their own repository, remove them from this one.
Rob Landley <rob@landley.net>
parents: 1361
diff changeset
39 [ -z "$TEST" ] && TEST=true
1261
e093423880fc Replace bisectinate's built-in tests with a test specified on the command line.
Rob Landley <rob@landley.net>
parents: 1214
diff changeset
40
995
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
41 # For kernel and busybox bisects, only redo part of the build
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
42
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
43 if [ "$PKG" == linux ] && [ -e "$BUILD/root-filesystem-$ARCH".tar.bz2 ]
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
44 then
1361
1ce33f5b5fec Make bisectinate actually use the LONG=1 test.
Rob Landley <rob@landley.net>
parents: 1261
diff changeset
45 ZAPJUST=linux-kernel
995
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
46 elif [ "$PKG" == busybox ] &&
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
47 [ -e "$BUILD/simple-cross-compiler-$ARCH.tar.bz2" ]
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
48 then
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
49 ZAPJUST=root-filesystem
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
50 else
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
51 ZAPJUST=
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
52 fi
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
53
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
54 # Initialize bisection repository
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
55
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
56 rm -rf "$BUILD/packages/alt-$PKG" "$SRCDIR/alt-$PKG-0.tar.bz2" &&
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
57 mkdir -p "$BUILD"/{logs,packages} &&
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
58 cd "$BUILD/packages" &&
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
59 git clone "$REPO" "alt-$PKG" &&
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
60 cd "alt-$PKG" &&
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
61 git bisect start &&
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
62 git bisect good "$START" || exit 1
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
63
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
64 RESULT="bad $BRANCH"
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
65
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
66 # Loop through bisection results
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
67
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
68 while true
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
69 do
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
70 # Bisect repository to prepare next version to build. Exit if done.
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
71
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
72 cd "$BUILD/packages/alt-$PKG" &&
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
73 git clean -fdx &&
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
74 git checkout -f || exit 1
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
75
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
76 RESULT="$(git bisect $RESULT)"
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
77 echo "$RESULT"
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
78 [ ! "$(echo "$RESULT" | head -n 1 | grep "^Bisecting:")" ] && exit
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
79
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
80 # Update log
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
81
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
82 git show > "$BUILD/logs/bisectinate-${ARCH}.txt"
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
83 git bisect log > "$BUILD/logs/bisectinate-${ARCH}.log"
986
fb0152b485f4 Give bisectinate.sh overrideable SRCDIR and BUILD.
Rob Landley <rob@landley.net>
parents: 985
diff changeset
84 # The "cat" bypasses git's stupid overengineered built-in call to less.
fb0152b485f4 Give bisectinate.sh overrideable SRCDIR and BUILD.
Rob Landley <rob@landley.net>
parents: 985
diff changeset
85 git log HEAD -1 | cat
fb0152b485f4 Give bisectinate.sh overrideable SRCDIR and BUILD.
Rob Landley <rob@landley.net>
parents: 985
diff changeset
86 echo "Testing..."
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
87
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
88 cd "$TOP" || exit 1
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
89
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
90 # Figure out how much ./build.sh needs to rebuild
995
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
91
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
92 [ ! -z "$ZAPJUST" ] &&
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
93 rm -rf "$BUILD/${ZAPJUST}-$ARCH"{,.tar.bz2} ||
c867d05d8c4d Optimize the linux and busybox bisects to not rebuild earlier sections unnecessarily.
Rob Landley <rob@landley.net>
parents: 994
diff changeset
94 rm -rf "$BUILD"/*-"$ARCH"{,.tar.bz2}
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
95
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
96 # Try the build
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
97
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
98 EXTRACT_ALL=1 ALLOW_PATCH_FAILURE=1 USE_UNSTABLE="$PKG" \
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
99 ./build.sh "$ARCH" 2>&1 | tee -a "$BUILD"/logs/bisectinate-"$ARCH".txt
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
100
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
101 # Did it work?
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
102
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
103 RESULT=bad
994
4a02bb65fe0c Fix a typo that broke the script completely.
Rob Landley <rob@landley.net>
parents: 986
diff changeset
104 if [ -e "$BUILD"/system-image-"$ARCH".tar.bz2 ]
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
105 then
1261
e093423880fc Replace bisectinate's built-in tests with a test specified on the command line.
Rob Landley <rob@landley.net>
parents: 1214
diff changeset
106 set -o pipefail
1361
1ce33f5b5fec Make bisectinate actually use the LONG=1 test.
Rob Landley <rob@landley.net>
parents: 1261
diff changeset
107 ARCH="$ARCH" more/timeout.sh 60 "$TEST" 2>&1 | \
1ce33f5b5fec Make bisectinate actually use the LONG=1 test.
Rob Landley <rob@landley.net>
parents: 1261
diff changeset
108 tee -a "$BUILD/logs/bisectinate-$ARCH".txt
1261
e093423880fc Replace bisectinate's built-in tests with a test specified on the command line.
Rob Landley <rob@landley.net>
parents: 1214
diff changeset
109 [ $? -eq 0 ] && RESULT=good
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
110 fi
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
111
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
112 # Keep the last "good" and "bad" logs, separately.
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
113
1214
cfcb4ee310b0 Stab at updating bisectinate to use git clone into build/packages (instead of lots of redundant "git archive | tar x" passes, which pointlessly waste disk and cpu). Still issues around alt-patches and around LONG=1 tests (should be separate "expect" style and hdc control image style test levels).
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
114 mv "$BUILD"/logs/bisectinate{,-$RESULT}-"$ARCH".txt
957
44483a915e13 Script to track down breakage in a USE_UNSTABLE package via git bisect.
Rob Landley <rob@landley.net>
parents:
diff changeset
115 done