pgbackrest.git / summary / log / commit / refs
commit 976bafca9e84f9efcf43dbbf27183ead85bece4c
Author: David Steele <github@thelabyrinth.net>
Date: Sat Jun 07 21:29:11 2014 +0000
Added new tests.
.gitignore | 1 -
INSTALL.md | 5 +++++
README.md | 4 +++-
VERSION | 2 +-
lib/BackRest/Backup.pm | 2 +-
lib/BackRest/Db.pm | 2 +-
lib/BackRest/File.pm | 1 -
lib/BackRest/Utility.pm | 1 -
test/test.pl | 34 +++++++++++++++++++++++++++++++++-
9 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/.gitignore b/.gitignore
index 1cca00e5e..427438ff7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,3 @@
*~
*.swp
test/test
-test/lock
diff --git a/INSTALL.md b/INSTALL.md
index 7a9a4c769..981527bcd 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1 +1,6 @@
# pg_backrest installation
+
+## parameters
+
+## configuration
+
diff --git a/README.md b/README.md
index 373993b02..911169d2e 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,9 @@ Simple Postgres Backup and Restore
## release notes
-### v0.20: ???
+### v0.30: ???
+
+* Complete rewrite of file module to use a custom protocol for remote operations and Perl native GZIP and SHA operations. MORE???
### v0.19: Improved error reporting/handling
diff --git a/VERSION b/VERSION
index 7d385d419..f7c6c31b6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.25
+0.30
diff --git a/lib/BackRest/Backup.pm b/lib/BackRest/Backup.pm
index 054ced3ea..a611d5610 100644
--- a/lib/BackRest/Backup.pm
+++ b/lib/BackRest/Backup.pm
@@ -1,7 +1,7 @@
####################################################################################################################################
# BACKUP MODULE
####################################################################################################################################
-package pg_backrest_backup;
+package BackRest::Backup;
use threads;
diff --git a/lib/BackRest/Db.pm b/lib/BackRest/Db.pm
index b80229503..80b985fc2 100644
--- a/lib/BackRest/Db.pm
+++ b/lib/BackRest/Db.pm
@@ -1,7 +1,7 @@
####################################################################################################################################
# DB MODULE
####################################################################################################################################
-package pg_backrest_db;
+package BackRest::Db;
use threads;
diff --git a/lib/BackRest/File.pm b/lib/BackRest/File.pm
index 9d79578a5..636a1cf9c 100644
--- a/lib/BackRest/File.pm
+++ b/lib/BackRest/File.pm
@@ -12,7 +12,6 @@ use Moose;
use Net::OpenSSH;
use IPC::Open3;
use File::Basename;
-use IPC::System::Simple qw(capture);
use Digest::SHA;
use File::stat;
use Fcntl ':mode';
diff --git a/lib/BackRest/Utility.pm b/lib/BackRest/Utility.pm
index cded3d8fc..6e382d3dd 100644
--- a/lib/BackRest/Utility.pm
+++ b/lib/BackRest/Utility.pm
@@ -8,7 +8,6 @@ use threads;
use strict;
use warnings;
use Carp;
-use IPC::System::Simple qw(capture);
use Fcntl qw(:DEFAULT :flock);
use File::Path qw(remove_tree);
use File::Basename;
diff --git a/test/test.pl b/test/test.pl
index 0b0e8498e..863b58e7e 100755
--- a/test/test.pl
+++ b/test/test.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
####################################################################################################################################
-# test.pl - Unit Tests for Simple Postgres Backup and Restore
+# test.pl - BackRest Unit Tests
####################################################################################################################################
####################################################################################################################################
@@ -43,6 +43,38 @@ if ($strModuleTest ne 'all' && $strModule eq 'all')
confess "--module must be provided for test \"${strModuleTest}\"";
}
+####################################################################################################################################
+# Clean whitespace
+####################################################################################################################################
+# find .. -not \( -path ../.git -prune \) -not \( -path ../test/test -prune \) -not \( -iname ".DS_Store" \)
+
+####################################################################################################################################
+# Make sure version number matches in README.md and VERSION
+####################################################################################################################################
+my $hReadMe;
+my $strLine;
+my $bMatch = false;
+my $strVersion = version_get();
+
+if (!open($hReadMe, '<', dirname($0) . "/../README.md"))
+{
+ confess "unable to open README.md";
+}
+
+while ($strLine = readline($hReadMe))
+{
+ if ($strLine =~ /^\#\#\# v/)
+ {
+ $bMatch = substr($strLine, 5, length($strVersion)) eq $strVersion;
+ last;
+ }
+}
+
+if (!$bMatch)
+{
+ confess "unable to find version ${strVersion} as last revision in README.md";
+}
+
####################################################################################################################################
# Runs tests
####################################################################################################################################
[parent: ca6823986d2e]