forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request twpayne#744 from twpayne/test-improvements
- Loading branch information
Showing
14 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
chmod 700 ${CHEZMOISOURCEDIR} | ||
|
||
exists $HOME${/}.bashrc | ||
exists $HOME${/}.inputrc | ||
chezmoi apply --remove | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[windows] stop 'https://github.com/twpayne/chezmoi/issues/745' | ||
[!exec:tar] stop | ||
|
||
chezmoi add $HOME${/}.bashrc | ||
chezmoi archive --output=user.tar | ||
exec tar -tf user.tar | ||
stdout ^\.bashrc\s*$ | ||
cmp stdout golden/archive | ||
|
||
-- home/user/.bashrc -- | ||
-- golden/archive -- | ||
.bashrc | ||
.ssh | ||
.ssh/config | ||
-- home/user/.local/share/chezmoi/dot_bashrc -- | ||
# contents of .bashrc | ||
-- home/user/.local/share/chezmoi/private_dot_ssh/config -- | ||
# contents .ssh/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
chmod 700 ${CHEZMOISOURCEDIR} | ||
|
||
chezmoi execute-template '{{ "output" }}' | ||
stdout output | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
chezmoi add $HOME${/}.bashrc | ||
[windows] stop 'https://github.com/twpayne/chezmoi/issues/745' | ||
|
||
chezmoi managed | ||
stdout '.bashrc' | ||
cmpenv stdout golden/managed | ||
|
||
chezmoi --include=dirs managed | ||
cmpenv stdout golden/managed-dirs | ||
|
||
chezmoi --include=files managed | ||
cmpenv stdout golden/managed-files | ||
|
||
-- home/user/.bashrc -- | ||
-- golden/managed -- | ||
$HOME/.bashrc | ||
$HOME/.ssh | ||
$HOME/.ssh/config | ||
-- golden/managed-dirs -- | ||
$HOME/.ssh | ||
-- golden/managed-files -- | ||
$HOME/.bashrc | ||
$HOME/.ssh/config | ||
-- home/user/.local/share/chezmoi/dot_bashrc -- | ||
# contents of .bashrc | ||
-- home/user/.local/share/chezmoi/dot_ssh/config -- | ||
# contents of .ssh/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
chezmoi add $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}${/}dot_bashrc | ||
|
||
chezmoi purge --force | ||
! exists ${CHEZMOICONFIGDIR} | ||
! exists ${CHEZMOISOURCEDIR} | ||
|
||
-- home/user/.bashrc -- | ||
# contents of .bashrc | ||
-- home/user/.config/chezmoi/chezmoi.toml -- | ||
[data] | ||
email = "user@home.org" | ||
-- home/user/.local/share/chezmoi/dot_bashrc -- | ||
# contents of .bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
chezmoi init | ||
|
||
chezmoi source-path | ||
stdout ${CHEZMOISOURCEDIR@R} | ||
|
||
|