AmesCornish / buttersink

Buttersink is like rsync for btrfs snapshots
GNU General Public License v3.0
193 stars 18 forks source link

Refactoring: automated unit testing #57

Closed eugene-bright closed 5 years ago

eugene-bright commented 6 years ago

It's crucial to add some unit tests for data serialization/deserialization. Hard to refactor this area without fast feedback.

AmesCornish commented 6 years ago

There is a suite of regression tests built into "make test". Right now these rely on some of my infrastructure (ssh hosts, s3 buckets), so they should be generalized so other people can use them too. Ideally to be run under CI.

AmesCornish commented 5 years ago

Regression test configuration has been pulled out into a "Makefile.inc". You need to set up an S3 bucket and an SSH server to receive test backups.