Commit Graph

15 Commits

Author SHA1 Message Date
Nils Winkler
818a95d79c Refactored test setup code
Removed the copy/paste code, moved it into a reusable function that can
be called from the `local_setup` function as needed. Also simplified the
handling of the $HOME variable since @rico-chet provided a better way of
doing this.
2020-04-21 08:25:40 +02:00
Nils Winkler
34993f5da3 Excluding enabled directory when setting up test fixtures 2020-04-21 08:25:40 +02:00
Nils Winkler
3093273425 Updated rsync command to work with latest version of bats-core 2020-04-21 08:25:39 +02:00
Nils Winkler
80e510d65b Added assert_link_exist function and use that 2017-10-14 18:02:04 +02:00
Nils Winkler
e574de8f47 Moved testing for files to bats-file library functions 2017-10-14 18:02:04 +02:00
Nils Winkler
8319545b0a Switched to Bats-core as a submodule
Can't use the official v0.4.0 release, since our tests rely on a change
that was made after the release of v0.4.0.

This code currently uses an unversioned commit of the bats-core repo, we
will switch to a supported version once it has been released, e.g.
v0.4.1.
2017-10-14 18:00:43 +02:00
Nils Winkler
9e99c8cb3d Adjust install test case 2017-09-17 21:05:57 +02:00
Nils Winkler
2a16a5cd68 Change install setup to use rsync instead of cp 2017-09-17 21:05:57 +02:00
Nils Winkler
cb46960717 Removing enabled components before running tests 2017-06-24 17:31:30 +02:00
Nils Winkler
eb9a15f435 Added test cases for uninstall script 2017-06-24 17:31:30 +02:00
Nils Winkler
43b62b344a Added test case for silent/interactive combo 2017-06-24 17:31:30 +02:00
Nils Winkler
1ace0b7a89 Checking for backup file creation 2017-06-24 17:31:30 +02:00
Nils Winkler
12ed1b79d3 Check for enabled components after install 2017-06-24 17:31:30 +02:00
Nils Winkler
b95fd6fdce Checking config file per OS type 2017-06-24 17:31:30 +02:00
Nils Winkler
6ce9403be0 Started writing tests for the install script 2017-06-24 17:31:30 +02:00