mkhomedir golden
mksourcedir

# test --dry-run
chezmoi apply --dry-run
! exists $HOME/.bashrc
! exists $HOME/.binary
! exists $HOME/.gitconfig
! exists $HOME/.hushlogin
! exists $HOME/.ssh
! exists $HOME/.symlink

# test apply file
chezmoi apply $HOME${/}.bashrc
cmp $HOME/.bashrc golden/.bashrc
! exists $HOME/.binary
! exists $HOME/.gitconfig
! exists $HOME/.hushlogin
! exists $HOME/.ssh
! exists $HOME/.symlink

[short] stop

# test apply all
chezmoi apply
cmp $HOME/.bashrc golden/.bashrc
cmp $HOME/.binary golden/.binary
cmp $HOME/.gitconfig golden/.gitconfig
cmp $HOME/.hushlogin golden/.hushlogin
cmp $HOME/.ssh/config golden/.ssh/config
cmp $HOME/.symlink golden/.bashrc
