hivex: Minimal registry example.
authorRichard Jones <rjones@redhat.com>
Wed, 3 Feb 2010 18:09:52 +0000 (18:09 +0000)
committerRichard Jones <rjones@redhat.com>
Thu, 4 Feb 2010 11:06:33 +0000 (11:06 +0000)
This is the smallest registry you can make and still have it
load correctly in Windows regedit.

configure.ac
hivex/Makefile.am
hivex/t/Makefile.am [new file with mode: 0644]
hivex/t/README [new file with mode: 0644]
hivex/t/minimal [new file with mode: 0755]

index 134cebd..820b236 100644 (file)
@@ -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])
index 987cfc9..e11b95a 100644 (file)
@@ -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 (file)
index 0000000..217d7ca
--- /dev/null
@@ -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 (file)
index 0000000..b7e297a
--- /dev/null
@@ -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 (executable)
index 0000000..3f4ee58
Binary files /dev/null and b/hivex/t/minimal differ