mksourcedir

# test chezmoi managed
chezmoi managed
cmp stdout golden/managed

# test chezmoi managed --include=all
chezmoi managed --include=all
cmp stdout golden/managed-all

# test chezmoi managed --include=dirs
chezmoi managed --include=dirs
cmp stdout golden/managed-dirs

# test chezmoi managed --include=files
chezmoi managed --include=files
cmp stdout golden/managed-files

# test chezmoi managed --include=symlinks
chezmoi managed --include=symlinks
cmp stdout golden/managed-symlinks

# test chezmoi managed --exclude=files
chezmoi managed --exclude=files
cmp stdout golden/managed-except-files

chhome home2/user

# test that chezmoi managed does not evaluate templates
chezmoi managed --include=all
cmp stdout golden/managed2

-- golden/managed --
.create
.dir
.dir/file
.dir/subdir
.dir/subdir/file
.empty
.executable
.file
.private
.readonly
.remove
.symlink
.template
-- golden/managed-all --
.create
.dir
.dir/file
.dir/subdir
.dir/subdir/file
.empty
.executable
.file
.private
.readonly
.remove
.symlink
.template
-- golden/managed-dirs --
.dir
.dir/subdir
-- golden/managed-files --
.create
.dir/file
.dir/subdir/file
.empty
.executable
.file
.private
.readonly
.remove
.template
-- golden/managed-symlinks --
.symlink
-- golden/managed-except-files --
.dir
.dir/subdir
.symlink
-- golden/managed2 --
.create
.file
.symlink
.template
script
-- home/user/.local/share/chezmoi/.chezmoiremove --
.remove
-- home2/user/.local/share/chezmoi/create_dot_create.tmpl --
{{ fail "Template should not be executed }}
-- home2/user/.local/share/chezmoi/dot_template.tmpl --
{{ fail "Template should not be executed }}
-- home2/user/.local/share/chezmoi/modify_dot_file.tmpl --
{{ fail "Template should not be executed }}
-- home2/user/.local/share/chezmoi/symlink_dot_symlink.tmpl --
{{ fail "Template should not be executed }}
-- home2/user/.local/share/chezmoi/run_script.tmpl --
{{ fail "Template should not be executed }}
