David Steele
048571e23f
Closed #173 : Add static source code analysis
...
Perl Critic added and passes on gentle. A policy file has been created with some permanent exceptions and a list of policies to be fixed in approximately the order they should be fixed in.
2016-02-23 09:25:22 -05:00
David Steele
02405e851c
Closed #163 : Document Generation Issue
...
Fixed an issue where document generation failed because some OSs are not tolerant of having multiple installed versions of PostgreSQL. A separate VM is now created for each version. Also added a sleep after database starts during document generation to ensure the database is running before the next command runs.
Reported by John Harvey.
2016-01-22 18:01:21 -05:00
David Steele
fce7261536
Only allow --no-cleanup option when a single test is selected.
2016-01-15 23:22:30 -05:00
David Steele
67fb7a23bc
Master test log is output to file.
2016-01-14 19:37:06 -05:00
David Steele
c2b1620c53
Logging enhancements:
...
1) Show log output realtime when --max-process=1 or only 1 test is being run.
2) Dry run now shows test output when --vm-out is specified.
2016-01-13 22:43:26 -05:00
David Steele
0f88943b7b
Database versions are now run as separate tests.
2016-01-10 19:30:51 -05:00
David Steele
c8f863fbab
Text execution improvements:
...
1) Tests for all operating systems can now be run with a single command.
2) Tests can be run in parallel with --process-max.
3) Container generation now integrated into test.pl
4) Some basic test documentation.
2016-01-09 08:21:53 -05:00
David Steele
7f630aec49
Switched to using docker for all unit tests as this allows for greater automation.
2015-12-29 13:57:10 -05:00
David Steele
ddd4c14773
Implemented issue #129 : Stop/Start Commands.
...
Implemented issue #136 : Add stderr back into protocol layer.
There were also miscellaneous bug fixes and improvements to buffering in IO.pm.
2015-10-08 11:43:56 -04:00
David Steele
e0dafbff7f
Improvements to issue #132 : Improved command-line help.
...
Regression tests are now more comprehensive by default.
Better handling for errors in safeExit().
Release notes.
2015-09-09 15:40:54 -04:00
David Steele
adc5568b15
Fixed issue #132 : Improved command-line help.
...
Some platform specific fixes and added regression tests to detect issues.
2015-09-08 12:58:13 -04:00
David Steele
6a9377a0a9
Code cleanup and refactoring to standardize on patterns that have evolved over time.
2015-08-29 14:20:46 -04:00
David Steele
d3262822ef
Fixed issue #128 : Replace config name in test logs
...
It was actually the bin path that was causing the issue.
2015-08-27 15:55:29 -04:00
David Steele
2edf5d4bf7
Split most of README.md out into CHANGELOG.md and USERGUIDE.md.
...
Added release dates to change log.
2015-08-07 14:43:53 -04:00
David Steele
073e3b7c00
Minor for regression tests.
...
Improved CentOS 6 vagrant config.
2015-07-11 22:47:22 -04:00
David Steele
b777525f62
Added --exe param to allow testing of packaged versions.
...
Updates to u12 vagrant vm.
2015-07-11 17:16:35 -04:00
David Steele
8b7fd99637
Added vagrant configuration for Ubuntu 12.04.
...
Changes to regression tests to work better with VMs.
2015-07-06 21:00:48 -04:00
David Steele
c59adfc68d
Shorted test command line params.
2015-06-27 11:12:44 -04:00
David Steele
760baab6b2
Implemented issue #111 : Add the psql path for *BSD.
...
Author: Eric Radman
Modified by Committer
2015-06-22 14:35:25 -04:00
David Steele
f210fe99c3
Implemented issue #109 : Move VERSION into source code.
...
Also stopped replacing FORMAT number which explains the large number of test log changes. FORMAT should change very rarely and cause test log failures when it does.
2015-06-22 13:11:07 -04:00
David Steele
61dfeca3c1
Fixed issue #108 : Incompatibility with Perl 5.10.1
2015-06-21 12:06:13 -04:00
David Steele
22e126eda7
Fix for logic that removes trailing spaces from code.
2015-06-17 15:40:12 -04:00
David Steele
b865070edd
Experimental 9.5 support. Unit tests are not working yet.
2015-06-14 10:12:36 -04:00
David Steele
148836fe44
Implemented issue #26 : Info command.
...
* Includes updating the manifest to format 4. It turns out the manifest and .info files were not very good for providing information. A format update was required anyway so worked through the backlog of changes that would require a format change.
* Multiple database versions are now supported in the archive. Does't actually work yet but the structure should be good.
* Tests use more constants now that test logs can catch name regressions.
2015-06-13 18:25:49 -04:00
David Steele
a0d985b7ad
Fixed an issue where an absolute path was not written into recovery.conf when the restore was run with a relative path.
2015-05-07 17:37:25 -05:00
David Steele
56588f6fdd
Log testing can now be enabled for certain deterministic tests. This works by comparing the generated logs against a previous copy. Currently only enabled for the backup/synthetic tests.
2015-05-05 11:08:48 -06:00
David Steele
cb153f7242
Docs and comment fixes.
2015-04-19 17:27:40 -04:00
David Steele
43d86e64a4
First pass at tests comparing rsync to backrest. Decent results, but room for improvement.
...
All tests local over SSH with rsync default compression, 4 threads and default compression on backrest. Backrest default is gzip = 6, assuming rsync is the same.
On a 1GB DB:
rsync time = 32.82
backrest time = 19.48
backrest is 171% faster.
On a 5GB DB:
rsync time = 171.16
backrest time = 86.97
backrest is 196% faster.
2015-04-07 18:36:59 -04:00
David Steele
3f651a8ce8
Unit tests will now work across all installed versions of Postgres.
...
Created a function to list all supported versions. Now used for all version checking.
2015-04-02 22:07:23 -04:00
David Steele
984fceea67
Moved archive functions from pg_backrest.pl and Backup.pl to Archive.pm.
...
Moved Remote code from pg_backrest.pl to Config.pm.
Added version specific code to regression tests and Db.pm.
archive-push checks for duplicate WAL in the archive.
archive-push reads the db sys id to match up WAL to the correct archive.
2015-04-01 15:58:33 -04:00
David Steele
882f068254
All config options can now be provided on the command-line.
...
Lots of name changes, but more thought needed there.
Still needs cleanup.
2015-03-12 12:15:19 -04:00
David Steele
ae6bdecfaf
Split command-line parameter processing out into a separate file. This is in preparation allowing all parameters to be specified/overridden on the command line, with pg_backrest.conf being option.
2015-03-08 13:26:09 -04:00
David Steele
5d10a18b25
Added thread-max parameter to test.pl to allow backup threads to be specified.
2015-02-28 10:21:36 -05:00
David Steele
d6205d9501
Looks like all unit tests pass - now for a long test run to see if that is really true. And to see if the old lockup is gone.
2015-02-27 23:31:39 -05:00
David Steele
e20f93ef1b
Cleaned up test usage.
2015-01-12 09:05:26 -05:00
David Steele
84abcd7d61
Minor fixes.
2015-01-11 11:53:03 -05:00
David Steele
34116d3816
Added usage to test.pl and automatic search for psql-bin.
2015-01-11 11:52:16 -05:00
David Steele
06ad947102
Using ' instead of " where appropriate.
2014-09-16 11:22:55 -04:00
David Steele
6b4a8fbc21
Unit tests now working on Ubuntu 12.04
2014-08-10 21:22:17 -04:00
David Steele
06b5ee3f75
Working on new config load/save functions and unit tests.
2014-07-16 23:38:38 -04:00
David Steele
9d9dae418b
Added archive-put unit tests.
...
Lots of other unit test improvements.
2014-07-15 22:32:41 -04:00
David Steele
375545320d
Added tests for large files (16MB archive log).
...
Fixed a sync error in binary_xfer().
2014-07-13 09:13:19 -04:00
David Steele
ed4bcf3e46
Whitespace is now cleaned in test.pl
2014-07-12 19:36:12 -04:00
David Steele
88bbbb4222
Fighting with a relative path issue in archive logging.
2014-06-22 20:19:13 -04:00
David Steele
8fff74ccfb
Backup unit test able to create and drop clusters.
2014-06-22 11:56:01 -04:00
David Steele
3c748c4b10
More work on unit tests.
2014-06-22 10:54:31 -04:00
David Steele
0b597d8da9
Working on getting backup running again.
2014-06-22 10:30:17 -04:00
David Steele
7bc464a44b
Working on BackRest::File methods.
2014-06-21 15:17:09 -04:00
David Steele
976bafca9e
Added new tests.
2014-06-07 17:29:11 -04:00
David Steele
c2dd53f908
Changes to allow specific tests to be run.
2014-06-05 10:20:03 -04:00