Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    4d0ed4c3
    Move tests to a separate module · 4d0ed4c3
    Nadav Har'El authored
    
    Instead of always putting the tests into all images, this patch adds the
    option of putting them only in some of the images, by making them into a
    new module, modules/tests.
    
    The default image (images/default.py) continues to require the tests
    modules, so tests are included in the default image. Building with
    "make image=tests" makes an image with only the tests and nothing else.
    Other images (e.g., memcached, cassandra,...) currently do not require
    the tests module, so the generated image does will not include the tests.
    
    With this patch, "make image=memcached", for example, contains only the
    bare minimum needed for memcached, and the resulting qcow image is just
    18 MB, down from 69 MB when we included all the tests.
    
    Fixes #160
    
    Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
    Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
    4d0ed4c3
    History
    Move tests to a separate module
    Nadav Har'El authored
    
    Instead of always putting the tests into all images, this patch adds the
    option of putting them only in some of the images, by making them into a
    new module, modules/tests.
    
    The default image (images/default.py) continues to require the tests
    modules, so tests are included in the default image. Building with
    "make image=tests" makes an image with only the tests and nothing else.
    Other images (e.g., memcached, cassandra,...) currently do not require
    the tests module, so the generated image does will not include the tests.
    
    With this patch, "make image=memcached", for example, contains only the
    bare minimum needed for memcached, and the resulting qcow image is just
    18 MB, down from 69 MB when we included all the tests.
    
    Fixes #160
    
    Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
    Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>