}
}
+ // Test to make sure things are in the expected state
+
+ return true
+}
+
+func GlobalInit(t *testing.T) bool {
+ //args := []string{"xsatool", "global", "update"}
+ QuerySetResponses([]string{"4.4"})
+ if MainHarness("global", "update") != 0 {
+ return false
+ }
+
+ // Check to see that we have the expected
+ versions := map[XenVersion]bool{
+ "4.8": false,
+ "4.7": false,
+ "4.6": false,
+ "4.5": false,
+ "4.4": false,
+ }
+
+ for v := range G.config.Security.Versions {
+ _, prs := versions[v]
+ if !prs {
+ t.Errorf("Unexpected version: %v\n", v)
+ } else {
+ versions[v] = true
+ }
+ }
+
+ for v, seen := range versions {
+ if !seen {
+ t.Errorf("Didn't find expected xenversion %v\n", v)
+ }
+ }
return true
}
return
}
- goto out
+ // Initialize global state
+ // xsatool global update
+ if !GlobalInit(t) {
+ goto out
+ }
+
+ //// xsa 206 "story"
+ // xsatool 206 init
+
+ // Fake-up xsa/206/master
+
+ // 206 Backport (should fail at 4.8. 4.7, and 4.6; NOT 4.5)
+
+ // 206 sync-patches
+
+ // 206 test
+
+ //// xsa 211 "story"
+
+ //// Drop 4.4 support, update to 4.8.1
+
+ //// xsa 212-215 "story"
out:
os.Chdir(topdir)