[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST v2 3/3] Stash debug symbols for build results



Specifically xen-syms (<1M compressed) and the vmlinux (~13M compressed) files.
---
 Osstest/TestSupport.pm |   18 +++++++++++++++++-
 ts-kernel-build        |    2 ++
 ts-xen-build           |    2 ++
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index dba5cef..1ac4cf7 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -67,7 +67,8 @@ BEGIN {
                       propname_massage
          
                       get_stashed open_unique_stashfile compress_stashed
-                      dir_identify_vcs build_clone built_stash 
+                      dir_identify_vcs build_clone built_stash built_stash_file
+                      built_compress_stashed
                       hg_dir_revision git_dir_revision vcs_dir_revision
                       store_revision store_vcs_revision
 
@@ -1050,6 +1051,21 @@ END
     store_runvar("path_$item", $stashleaf);
 }
 
+sub built_stash_file ($$$$) {
+    my ($ho, $builddir, $item, $fname) = @_;
+    my $build= "build";
+    my $stashleaf= "$build/$item";
+    ensuredir("$stash/$build");
+    target_getfile($ho, 300,
+                   "$builddir/$fname",
+                   "$stash/$stashleaf");
+}
+
+sub built_compress_stashed($) {
+    my ($path) = @_;
+    compress_stashed("build/$path");
+}
+
 sub vcs_dir_revision ($$$) {
     my ($ho,$builddir,$vcs) = @_;
     no strict qw(refs);
diff --git a/ts-kernel-build b/ts-kernel-build
index 824dc9e..babd261 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -322,3 +322,5 @@ if ($r{tree_linuxfirmware}) {
     fwinstall();
 }
 built_stash($ho, $builddir, 'dist', 'kerndist');
+built_stash_file($ho, $builddir, 'vmlinux', 'linux/vmlinux');
+built_compress_stashed('vmlinux');
diff --git a/ts-xen-build b/ts-xen-build
index 8a905f5..5f544df 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -198,6 +198,8 @@ sub stash () {
                     "xen-unstable/dist/${part}install",
                     "${part}dist");
     }
+    built_stash_file($ho, $builddir, "xen-syms", "xen-unstable/xen/xen-syms");
+    built_compress_stashed("xen-syms");
 }
 
 sub checkversions () {
-- 
1.7.10.4


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.