]> xenbits.xensource.com Git - osstest.git/commitdiff
cr-*, ap-*: Facilities for testing linux-next flight-25976 flight-25986 flight-25987 flight-25988 flight-25989 flight-25991 flight-25992 flight-25993 flight-25994 flight-25995 flight-25996 flight-25997 flight-25998 flight-25999 flight-26000 flight-26001 flight-26002 flight-26003 flight-26004 flight-26005 flight-26006 flight-26007 flight-26008 flight-26009 flight-26011 flight-26012 flight-26013 flight-26014 flight-26015 flight-26016 flight-26017 flight-26018 flight-26019 flight-26021 flight-26022 flight-26023 flight-26024 flight-26025 flight-26026 flight-26027 flight-26029 flight-26030 flight-26031 flight-26032 flight-26034 flight-26035 flight-26036 flight-26037 flight-26038 flight-26039 flight-26040 flight-26041 flight-26043 flight-26045 flight-26046 flight-26048 flight-26049 flight-26051 flight-26054 flight-26055 flight-26056 flight-26057 flight-26058 flight-26059 flight-26060 flight-26061 flight-26062 flight-26063 flight-26065 flight-26066 flight-26067 flight-26068 flight-26070 flight-26071 flight-26072 flight-26074 flight-26075 flight-26076 flight-26077 flight-26078 flight-26079 flight-26080 flight-26081 flight-26083 flight-26084 flight-26085 flight-26087 flight-26088 flight-26089 flight-26090 flight-26091
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 10 Apr 2014 17:20:18 +0000 (18:20 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 24 Apr 2014 14:25:17 +0000 (15:25 +0100)
* Define the new branch's git source repo in ap-common.

* Provide a branch-settings file which disables running additional
  baseline tests, listing changesets in flight reports, pushing,
  and which arranges for the baseline revision for the flight
  report to be determined "late", ie after the to-be-tested
  versions of everything have been decided.

* When the baseline revision is to be determined "late", run
  the new script ap-fetch-version-baseline-late.  This is another
  collection of per-branch rules.  We introduce currently one
  per-branch rule, for linux-next:

* The baseline version for a test of linux-next is
    - the version tested by the most recent flight on the
      linux-linus branch;
    - provided that said version is an ancestor of the linux-next
      version under test;
    - otherwise we try an earlier linux-linus flight.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
ap-common
ap-fetch-version-baseline-late [new file with mode: 0755]
branch-settings.linux-next [new file with mode: 0644]
cr-daily-branch

index cb0cfffcd20501369cb8c6ff897ccf248721d23e..254eaf42a66b11039833ca04258db28c47dce318 100644 (file)
--- a/ap-common
+++ b/ap-common
@@ -87,6 +87,11 @@ info_linux_tree () {
                : ${GITFORCEFLAG_TREE_LINUX_THIS:=-f}
                ;;
 
+       linux-next)
+               : ${TREE_LINUX_THIS:=${KERNEL_SCM}/next/linux-next.git}
+               : ${GITFORCEFLAG_TREE_LINUX_THIS:=-f}
+               ;;
+
        *)
                return 1
                ;;
diff --git a/ap-fetch-version-baseline-late b/ap-fetch-version-baseline-late
new file mode 100755 (executable)
index 0000000..ef1a8b1
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2013 Citrix Inc.
+# 
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+# 
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+
+set -e
+
+branch=$1
+new=$2
+
+. cri-lock-repos
+. cri-common
+select_xenbranch
+. ap-common
+
+case "$branch" in
+
+linux-next)
+       GIT_DIR=$repos/linux \
+       ./sg-check-tested --branch=linux-linus \
+               --blessings=${OSSTEST_BLESSING-real} \
+               --git-ancestor-of=$new --print-revision=linux
+       exit 0
+       ;;
+
+*)
+       echo >&2 "branch $branch ?"
+       exit 1
+       ;;
+esac
diff --git a/branch-settings.linux-next b/branch-settings.linux-next
new file mode 100644 (file)
index 0000000..e9bf926
--- /dev/null
@@ -0,0 +1,4 @@
+OSSTEST_NO_BASELINE=y
+OSSTEST_PUSH=false
+OLD_REVISION=determine-late
+GITFORCEFLAG=--fail
index 1d5ceb34385d3b78d04e014ae0387e93122fb096..25be1945a103f301b9358a903543e0d73e3a0f23 100755 (executable)
@@ -171,6 +171,10 @@ linuxfirmware)
        ;;
 esac
 
+if [ "x$OLD_REVISION" = xdetermine-late ]; then
+       OLD_REVISION="`./ap-fetch-version-baseline-late $branch $NEW_REVISION`"
+fi
+
 if [ "x$NEW_REVISION" = "x$OLD_REVISION" ]; then
         wantpush=false
        for checkbranch in x $BRANCHES_ALWAYS; do