# FIXME add more tests

mkhomedir golden
mksourcedir

# test that chezmoi status lists all files to be added
chezmoi status
cmp stdout golden/status

# test that chezmoi status omits applied files
chezmoi apply --force $HOME${/}.file
chezmoi status
cmp stdout golden/status-except-dot-file

# test that chezmoi status is empty after apply
chezmoi apply --force
chezmoi status
! stdout .

# test that chezmoi status identifies files that have been modified in the destination directory
edit $HOME/.file
chezmoi status
cmp stdout golden/status-modified-file

# test that chezmoi status does not emit status for equivalent modifications
edit $CHEZMOISOURCEDIR/dot_file
chezmoi status
! stdout .

-- golden/status --
 A .create
 A .dir
 A .dir/file
 A .dir/subdir
 A .dir/subdir/file
 A .empty
 A .executable
 A .file
 A .private
 A .readonly
 A .symlink
 A .template
-- golden/status-except-dot-file --
 A .create
 A .dir
 A .dir/file
 A .dir/subdir
 A .dir/subdir/file
 A .empty
 A .executable
 A .private
 A .readonly
 A .symlink
 A .template
-- golden/status-modified-file --
MM .file
