mksourcedir

[windows] unix2dos golden/archive-tar

chezmoi archive --output=archive.tar
exec tar -tf archive.tar
[!(illumos||openbsd)] cmp stdout golden/archive-tar
[illumos] cmp stdout golden/archive-tar-illumos
[openbsd] cmp stdout golden/archive-tar-openbsd

chezmoi archive --gzip --output=archive.tar.gz
exec tar -tzf archive.tar.gz
[!(illumos||openbsd)] cmp stdout golden/archive-tar
[illumos] cmp stdout golden/archive-tar-illumos
[openbsd] cmp stdout golden/archive-tar-openbsd

-- golden/archive-tar --
.create
.dir/
.dir/file
.dir/subdir/
.dir/subdir/file
.empty
.executable
.file
.private
.readonly
.symlink
.template
-- golden/archive-tar-illumos --
.create
.dir/
.dir/file
.dir/subdir/
.dir/subdir/file
.empty
.executable
.file
.private
.readonly
.symlink symbolic link to .dir/subdir/file
.template
-- golden/archive-tar-openbsd --
.create
.dir
.dir/file
.dir/subdir
.dir/subdir/file
.empty
.executable
.file
.private
.readonly
.symlink
.template
