[Bps-public-commit] r11572 - in SVN-PropDB: . doc

jesse at bestpractical.com jesse at bestpractical.com
Sat Apr 5 23:01:17 EDT 2008


Author: jesse
Date: Sat Apr  5 23:01:00 2008
New Revision: 11572

Modified:
   SVN-PropDB/   (props changed)
   SVN-PropDB/doc/todo
   SVN-PropDB/t/sd-hm.t

Log:
 r29347 at 31b:  jesse | 2008-04-05 16:59:45 -1000
 * cleanup sd-hm tests


Modified: SVN-PropDB/doc/todo
==============================================================================
--- SVN-PropDB/doc/todo	(original)
+++ SVN-PropDB/doc/todo	Sat Apr  5 23:01:00 2008
@@ -1,15 +1,14 @@
 Todo Saturday
-
-    - implement a simple Prophet::Replica::Hiveminder for "personal tasks only"
-    - write tests for RT-prophet-prophet-RT sync
-    
-    - lunch
+        
+    - write tests for RT-prophet-prophet-hiveminder sync
     
     - implement uuids for prophet databases
        - (use the uuid as a prefix for the db root?)  
         - each replica should know the uuid of the database it is a replica of
         - merging between replicas with different uuids should require a 'force' argument of some kind.
 
+    - light dinner
+
     - push to a remote prophet
         - bundle all changesets newer than that which we know the other party hasn't seen up as a serialized structure (FeedSync? Storable ;)?)
         - send them to remote to "pull from textfile
@@ -29,6 +28,7 @@
 
 
 Saturday done
+    - implement a simple Prophet::Replica::Hiveminder for "personal tasks only"
 
     - extract the reusable bits of Prophet::Replica::RT to
             Prophet::ForeignReplica

Modified: SVN-PropDB/t/sd-hm.t
==============================================================================
--- SVN-PropDB/t/sd-hm.t	(original)
+++ SVN-PropDB/t/sd-hm.t	Sat Apr  5 23:01:00 2008
@@ -5,24 +5,17 @@
 
 use Test::More;
 BEGIN {
-    require File::Temp;
-    $ENV{'PROPHET_REPO'} = $ENV{'SVB_REPO'} =
-        File::Temp::tempdir( CLEANUP => 0).'/_svb';
-    warn $ENV{'PROPHET_REPO'};
-}
-
-# you need to run this test script from the BTDT directory
-BEGIN {
+    unless ($ENV{'JIFTY_APP_ROOT'}) {
+        die "You must define a JIFTY_APP_ROOT environment variable which points to your hiveminder source tree";
+    }
     require File::Temp;
     $ENV{'PROPHET_REPO'} = $ENV{'SVB_REPO'} =
         File::Temp::tempdir( CLEANUP => 0).'/_svb';
     warn $ENV{'PROPHET_REPO'};
     use Jifty;
     push @INC, File::Spec->catdir(Jifty::Util->app_root, "lib");
-
 }
 
-
 eval 'use BTDT::Test; 1;' or die "$@";
 
 



More information about the Bps-public-commit mailing list