All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.10] scripts: add a script for build testing
@ 2017-10-20 17:32 Wei Liu
  2017-10-23  8:24 ` Jan Beulich
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Wei Liu @ 2017-10-20 17:32 UTC (permalink / raw)
  To: Xen-devel
  Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk, George Dunlap,
	Andrew Cooper, Ian Jackson, Tim Deegan, Julien Grall, Jan Beulich

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Tim Deegan <tim@xen.org>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Julien Grall <julien.grall@arm.com>

The risk for this is zero, hence the for-4.10 tag.
---
 scripts/build-test.sh | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100755 scripts/build-test.sh

diff --git a/scripts/build-test.sh b/scripts/build-test.sh
new file mode 100755
index 0000000000..a08468e83b
--- /dev/null
+++ b/scripts/build-test.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# WARNING: Always backup the branch by creating another reference to it if
+# you're not familiar with git-rebase(1).
+#
+# Use `git rebase` to run command or script on every commit within the range
+# specified. If no command or script is provided, use the default one to clean
+# and build the whole tree.
+#
+# If something goes wrong, the script will stop at the commit that fails.  Fix
+# the failure and run `git rebase --continue`.
+#
+# If for any reason the tree is screwed, use `git rebase --abort` to restore to
+# original state.
+
+if ! test -f xen/Kconfig; then
+    echo "Please run this script from top-level directory"
+    exit 1
+fi
+
+if test $# -lt 2 ; then
+    echo "Usage: $0 <BASE> <TIP> [CMD|SCRIPT]"
+    exit 1
+fi
+
+BASE=$1
+TIP=$2
+CMD=${3:-git clean -fdx && ./configure && make -j4}
+
+echo "Running command \"$CMD\" on every commit from $BASE to $TIP"
+echo -n "Starting in "
+
+for i in `seq 5 -1 1`; do
+    echo -n "$i ... "
+    sleep 1
+done
+
+echo
+
+git rebase $BASE $TIP -x "$CMD"
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-10-23 15:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-20 17:32 [PATCH for-4.10] scripts: add a script for build testing Wei Liu
2017-10-23  8:24 ` Jan Beulich
2017-10-23 11:41   ` Wei Liu
2017-10-23 12:02     ` Ian Jackson
2017-10-23 12:03       ` Wei Liu
2017-10-23 12:07         ` Ian Jackson
2017-10-23 12:20           ` Wei Liu
2017-10-23 12:09     ` Jan Beulich
2017-10-23 12:15     ` Ian Jackson
2017-10-23 11:12 ` Julien Grall
2017-10-23 11:30 ` Anthony PERARD
2017-10-23 11:37   ` Anthony PERARD
2017-10-23 11:50   ` Wei Liu
2017-10-23 13:02 ` George Dunlap
2017-10-23 14:50   ` Anthony PERARD
2017-10-23 15:04     ` Wei Liu
2017-10-23 15:09       ` Ian Jackson
2017-10-23 15:11         ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.