[Bps-public-commit] r11120 - Shipwright/trunk/t/hello

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Mar 19 11:19:20 EDT 2008


Author: sunnavy
Date: Wed Mar 19 11:19:18 2008
New Revision: 11120

Modified:
   Shipwright/trunk/t/hello/svk.t

Log:
added test for building a project with 0 packages

Modified: Shipwright/trunk/t/hello/svk.t
==============================================================================
--- Shipwright/trunk/t/hello/svk.t	(original)
+++ Shipwright/trunk/t/hello/svk.t	Wed Mar 19 11:19:18 2008
@@ -8,7 +8,7 @@
 use File::Spec;
 use Cwd;
 
-use Test::More tests => 40;
+use Test::More tests => 41;
 use Shipwright::Test qw/has_svk create_svk_repo/;
 
 SKIP: {
@@ -64,6 +64,7 @@
         'initialize works'
     );
 
+
     # source
     my $source_dir = $shipwright->source->run();
     like( $source_dir, qr/\bAcme-Hello\b/, 'source name looks ok' );
@@ -194,4 +195,27 @@
         qr/Acme-Hello.*howdy/s,
         'updated order works'
     );
+
+
+    # build with 0 packages
+    
+    {
+        my $shipwright = Shipwright->new(
+            repository => "svk:$repo",
+            log_level  => 'FATAL',
+        );
+    
+        # init
+        $shipwright->backend->initialize();
+        $shipwright->backend->export( target => $shipwright->build->build_base );
+        my $install_dir = tempdir;
+        $shipwright->build->run( install_base => $install_dir );
+        ok(
+            -e File::Spec->catfile(
+                $install_dir, 'etc', 'shipwright-script-wrapper'
+            ),
+            'build with 0 packages ok'
+        );
+    }
 }
+



More information about the Bps-public-commit mailing list