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

[Libguestfs] [PATCH 11/12] hivex: Minimal registry example.

Although this is an 8K binary file that has no source as such, I think
it is worth including this file because it will allow us to write
automated tests of hivexsh.

The reason it is necessary for testing is because we cannot create a
hive from scratch (the format is not sufficiently documented to allow
us to do that).  Therefore all tests have to start from an existing
hive, and this means we either have to supply some minimal hive like
this, or get the user to supply a hive file.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
>From 89ad8b8596461996636555f289e4b77ce3004d95 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones redhat com>
Date: Wed, 3 Feb 2010 18:09:52 +0000
Subject: [PATCH 11/12] hivex: Minimal registry example.

This is the smallest registry you can make and still have it
load correctly in Windows regedit.
 configure.ac        |    1 +
 hivex/Makefile.am   |    2 +-
 hivex/t/Makefile.am |   18 ++++++++++++++++++
 hivex/t/README      |    9 +++++++++
 hivex/t/minimal     |  Bin 0 -> 8192 bytes
 5 files changed, 29 insertions(+), 1 deletions(-)
 create mode 100644 hivex/t/Makefile.am
 create mode 100644 hivex/t/README
 create mode 100755 hivex/t/minimal

diff --git a/configure.ac b/configure.ac
index 134cebd..820b236 100644
--- a/configure.ac
+++ b/configure.ac
@@ -737,6 +737,7 @@ AC_CONFIG_FILES([Makefile
+                 hivex/t/Makefile
                  ocaml/META perl/Makefile.PL])
diff --git a/hivex/Makefile.am b/hivex/Makefile.am
index 987cfc9..e11b95a 100644
--- a/hivex/Makefile.am
+++ b/hivex/Makefile.am
@@ -15,7 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-SUBDIRS = tools
+SUBDIRS = t tools
 EXTRA_DIST = hivex.pod hivexml.pod hivexget.pod hivexsh.pod LICENSE
diff --git a/hivex/t/Makefile.am b/hivex/t/Makefile.am
new file mode 100644
index 0000000..217d7ca
--- /dev/null
+++ b/hivex/t/Makefile.am
@@ -0,0 +1,18 @@
+# libguestfs
+# Copyright (C) 2009 Red Hat Inc.
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 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
+# GNU General Public License for more details.
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+EXTRA_DIST = minimal
diff --git a/hivex/t/README b/hivex/t/README
new file mode 100644
index 0000000..b7e297a
--- /dev/null
+++ b/hivex/t/README
@@ -0,0 +1,9 @@
+This directory contains tests for the hivex library.
+'minimal' is a valid registry containing a single root nk (with
+associated sk) which was created by chopping out everything possible
+from a Windows 2003 software hive and then doing lots of hand edits on
+the result.  There is no "source" for it as such, it is just a
+hand-crafted binary blob.
+- Richard W.M. Jones 2010-01-23.
diff --git a/hivex/t/minimal b/hivex/t/minimal
new file mode 100755
index 0000000000000000000000000000000000000000..3f4ee58c0adc1c3a73da8fed459304fd1083fce7
GIT binary patch
literal 8192
zcmeI0y-EX75QWc17h&;d5sL^GD+X-D+AjD 1Ti8}5K<}rgvB7y2iVdFu(1eO_#Rq{
zm5<;9_yiWNbM6|<MgtZWDb6f+XXfnOxx?4(Z5^MUzyr8muV30 _s<?v-xiH=#30P#
zI?DFcv4?G}n!iE|4ICkM i{KcuVEb<Shkui)VNnRkOUqMmfi<)FbyRFA|L`HAOa#F
z0wN#+A|L`H b3i94jWC^)c)@~*0~2 ewU_cGhRS6zjDjF0cwvUd}n5#oiSsOe0k=*
zHflntRNC3C)~bt@&3%4<`bg8u7)UJU;sG=E -TeEBy=YNQ>GX2hQK^f#I$8z!6klV
zZkBOSq>%j3f2p7AQ}1-EFJmItKl-i yZbxcrgQb#to|gY2sp8g->voSo2wn-#@;jX

literal 0


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