summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-02-03 18:09:52 +0000
committerRichard Jones <rjones@redhat.com>2010-02-04 11:06:33 +0000
commit578a5774a3ec00aad31988079eb6aacddcf6643f (patch)
tree42477dcefb618f6030fcb92210a7eb99b080cef8
parentd9d885e7c8d93f0623cb0525e725f86969bb1033 (diff)
downloadlibguestfs-578a5774a3ec00aad31988079eb6aacddcf6643f.tar.gz
libguestfs-578a5774a3ec00aad31988079eb6aacddcf6643f.tar.xz
libguestfs-578a5774a3ec00aad31988079eb6aacddcf6643f.zip
hivex: Minimal registry example.
This is the smallest registry you can make and still have it load correctly in Windows regedit.
-rw-r--r--configure.ac1
-rw-r--r--hivex/Makefile.am2
-rw-r--r--hivex/t/Makefile.am18
-rw-r--r--hivex/t/README9
-rwxr-xr-xhivex/t/minimalbin0 -> 8192 bytes
5 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 134cebd2..820b236f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -737,6 +737,7 @@ AC_CONFIG_FILES([Makefile
gnulib/lib/Makefile
gnulib/tests/Makefile
hivex/Makefile
+ hivex/t/Makefile
hivex/tools/Makefile
fuse/Makefile
ocaml/META perl/Makefile.PL])
diff --git a/hivex/Makefile.am b/hivex/Makefile.am
index 987cfc93..e11b95a2 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 00000000..217d7caa
--- /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
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# 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 00000000..b7e297ac
--- /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 00000000..3f4ee58c
--- /dev/null
+++ b/hivex/t/minimal
Binary files differ