Tim Byrne
eabf9091fb
Support WSL detection ( #61 )
...
`uname -s` was already being executed every run for *cygwin* detection.
I've consolidated all of the OS detection into a single function. This
also fixed the problem of running `uname -s` twice for the `alt`
command.
8 years ago
Tim Byrne
9824de5410
Change template indicator to `##yadm.j2`
8 years ago
Tim Byrne
fda2da6a5b
Fix tests that set local.hostname ( #59 )
8 years ago
Tim Byrne
3a87fe311a
Add test case for envtpl missing
8 years ago
Tim Byrne
aaa4152fac
Remove trailing whitespace
8 years ago
Tim Byrne
fd6fa8c923
Merge pull request #58 from janschulz/jinja_processing
...
Excluding yadm.md changes (these will happen during a release)
8 years ago
Tim Byrne
6974e4ce8c
Add tests for `enter` command
8 years ago
Jan Schulz
a479b70d8a
Add jinja processing to alt command
...
With the new functionality, when the 'alt' command is called (or automatically
triggered), any file with a name ending in '##yadm_tmpl' is treated as a jinja
template. The template is processed by envtpl and the result is written to a
file without the '##yadm_tmpl' name. The variables passed into the template
processing are
YADM_CLASS
YADM_OS
YADM_HOSTNAME
YADM_USER
These variables are set according to the normal rules for
CLASS, OS, HOSTNAME, and USER during the alt processing.
8 years ago
Tim Byrne
297df5d231
Add tests for classes with a range of names ( #51 )
8 years ago
Tim Byrne
d80bbff2b9
Acceptance tests for encrypt globs and paths with space ( #53 , #54 )
8 years ago
Tim Byrne
d28df86494
Store class/os/host/user overrides in the local repo config
...
Overrides are meant to be local to each system, unlike other
configurations which are often added to a user's dotfiles repository.
With this change, the configurations change names:
alt.class => local.class
alt.os => local.os
alt.host => local.host
alt.user => local.user
8 years ago
Tim Byrne
76d90db627
Replace "TODO text" for `yadm config` ( #46 )
8 years ago
Tim Byrne
671b5c6ec6
Support both gpg1 and gpg2 missing key error messages
8 years ago
Tim Byrne
12a23178d8
Tests for offering bootstrap during clone ( #45 )
8 years ago
Tim Byrne
3f1a8364ae
Add tests for bootstrap command ( #42 )
8 years ago
Tim Byrne
02107c35d9
Add tests for stashed conflicting data during clone ( #44 )
8 years ago
Tim Byrne
d7abc7ff41
Create tests for class support in alt-links ( #21 )
8 years ago
Tim Byrne
1534420106
Acceptance tests for overriding OS/Host/User ( #21 )
8 years ago
Tim Byrne
3ea710317a
Add acceptance tests for alt-link wildcards ( #43 )
8 years ago
Tim Byrne
a25a180b88
Add acceptance tests for alt-link delimiters ( #49 )
...
Delimiters other than `.` should not be used.
This adds some test with delimiter `_`.
8 years ago
Tim Byrne
ef796bc2c1
Add acceptance test for space-lines/empty-lines in .yadm/encrypt ( #40 )
8 years ago
Tim Byrne
25d3123988
Unit tests for alternate Git program ( #30 )
8 years ago
Tim Byrne
0fd3e1559d
Rename unit tests for `ls` program
8 years ago
Tim Byrne
12a5179e8a
Add acceptance tests for alt-linking encrypted files ( #34 )
8 years ago
Tim Byrne
067a359e42
Add acceptance tests for improved exit values ( #35 )
8 years ago
Tim Byrne
5107198422
Add acceptance tests for white space alt paths ( #36 )
8 years ago
Tim Byrne
e40c054805
Use gpg1 (if available) for automated tests
...
gnupg2 does not support agent-less password input (breaking the
expect-driven tests).
8 years ago
Tim Byrne
60eb4c415f
Fallback to using `ls` if `/bin/ls` does not exist ( #22 )
8 years ago
Tim Byrne
e4d1b3a165
Unit tests for alternate gpg program ( #19 )
8 years ago
Tim Byrne
85abcf981c
Acceptance tests for symlinked directories ( #17 )
8 years ago
Tim Byrne
8bede1cb84
Test for correct error message when public key is missing
9 years ago
Tim Byrne
ea3b2ecfa8
Support `yadm.gpg-recipient = ASK`
9 years ago
Tim Byrne
7854275488
Create acceptance tests for asymmetric encryption
9 years ago
Tim Byrne
27d0e7baa2
Refactor path tests
...
Including new path tests for planned features
9 years ago
Tim Byrne
340f88bd52
Use `-n` instead of negating `-z`
9 years ago
Tim Byrne
f48dea6879
Resolve shellcheck errors in bats tests
9 years ago
Tim Byrne
d2cd3b1b26
Add tests
...
Tests will be run using `bats`.
9 years ago