cros_bundle_firmware: Add basic tests

We have unit tests for some cros_bundle_firmware libraries, but
so far no overall test.

Add a very basic test of operation to get the ball rolling. At
present it just checks that the resulting image size is correct.

BUG=chromium-os:27999
TEST=FEATURES=test sudo emerge -E cros-devutils

Change-Id: I1df536f88e8b84aaac42acb6348bf7a561c64b17
Reviewed-on: https://gerrit.chromium.org/gerrit/33718
Tested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Ready: Simon Glass <sjg@chromium.org>
diff --git a/host/lib/bundle_firmware.py b/host/lib/bundle_firmware.py
index ee094ce..b8203df 100644
--- a/host/lib/bundle_firmware.py
+++ b/host/lib/bundle_firmware.py
@@ -79,6 +79,11 @@
         straps: Select device according to CPU strap pins
         spi: Boot from SPI
         emmc: Boot from eMMC
+
+  Private attributes:
+    _small: True to create a 'small' signed U-Boot, False to produce a
+        full image. The small U-Boot is enough to boot but will not have
+        access to GBB, RW U-Boot, etc.
   """
 
   def __init__(self, tools, output):
@@ -106,6 +111,7 @@
     self.skeleton_fname = None  # Filename of Coreboot skeleton file
     self.ecrw_fname = None     # Filename of EC file
     self.ecro_fname = None      # Filename of EC read-only file
+    self._small = False
 
   def SetDirs(self, keydir):
     """Set up directories required for Bundle.