[windows] skip 'UNIX only'

chmod 755 bin/age
chmod 755 bin/bw
chmod 755 bin/git
chmod 755 bin/gopass
chmod 755 bin/gpg
chmod 755 bin/keepassxc
chmod 755 bin/lpass
chmod 755 bin/op
chmod 755 bin/pass
chmod 755 bin/pinentry
chmod 755 bin/secret
chmod 755 bin/shell
chmod 755 bin/vault
chmod 755 bin/vimdiff

mkhomedir
mksourcedir

# test that chezmoi doctor behaves as expected
chezmoi doctor
stdout '^ok\s+version\s+'
stdout '^\w+\s+latest-version\s+'
stdout '^ok\s+os-arch\s+'
! stdout '^\S+\s+systeminfo\s+'
stdout '^ok\s+uname\s+'
stdout '^warning\s+config-file\s+.*multiple config files'
stdout '^ok\s+source-dir\s+'
stdout '^warning\s+suspicious-entries\s+'
stdout '^ok\s+dest-dir\s+'
stdout '^ok\s+shell-command\s+'
stdout '^ok\s+shell-args\s+'
stdout '^ok\s+cd-command\s+'
stdout '^ok\s+cd-args\s+'
stdout '^ok\s+edit-command\s+'
stdout '^ok\s+edit-args\s+'
stdout '^ok\s+git-command\s+'
stdout '^ok\s+merge-command\s+'
stdout '^warning\s+age-command\s+'
stdout '^ok\s+gpg-command\s+'
stdout '^ok\s+pinentry-command\s+'
stdout '^ok\s+1password-command\s+'
stdout '^ok\s+bitwarden-command\s+'
stdout '^ok\s+gopass-command\s+'
stdout '^ok\s+keepassxc-command\s+'
stdout '^info\s+keepassxc-db\s+'
stdout '^ok\s+lastpass-command\s+'
stdout '^ok\s+pass-command\s+'
stdout '^ok\s+vault-command\s+'
stdout '^ok\s+secret-command\s+'

chhome home2/user

# test that chezmoi doctor warns about missing directories on an empty system
! chezmoi doctor
stdout '^ok\s+config-file\s+'
stdout '^error\s+source-dir\s+'
stdout '^ok\s+suspicious-entries\s+'

chhome home3/user

# test that chezmoi doctor warns about suspicious entries
chezmoi doctor
stdout '^warning\s+suspicious-entries\s+'

-- bin/age --
#!/bin/sh

echo "(devel)"
-- bin/bw --
#!/bin/sh

echo "1.12.1"
-- bin/git --
#!/bin/sh

echo "git version 2.29.2"
-- bin/gopass --
#!/bin/sh

echo "gopass 1.10.1 go1.15 linux amd64"
-- bin/gpg --
#!/bin/sh

echo "gpg (GnuPG) 2.2.23"
echo "libgcrypt 1.8.7"
echo "Copyright (C) 2020 Free Software Foundation, Inc."
echo "License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>"
echo "This is free software: you are free to change and redistribute it."
echo "There is NO WARRANTY, to the extent permitted by law."
echo ""
echo "Home: /home/user/.gnupg"
echo "Supported algorithms:"
echo "Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA"
echo "Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,"
echo "        CAMELLIA128, CAMELLIA192, CAMELLIA256"
echo "Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224"
echo "Compression: Uncompressed, ZIP, ZLIB, BZIP2"
-- bin/keepassxc --
#!/bin/sh

echo "2.5.4"
-- bin/lpass --
#!/bin/sh

echo "LastPass CLI v1.3.3.GIT"
-- bin/op --
#!/bin/sh

echo "1.3.0"
-- bin/pass --
#!/bin/sh

echo "============================================"
echo "= pass: the standard unix password manager ="
echo "=                                          ="
echo "=                  v1.7.3                  ="
echo "=                                          ="
echo "=             Jason A. Donenfeld           ="
echo "=               Jason@zx2c4.com            ="
echo "=                                          ="
echo "=      http://www.passwordstore.org/       ="
echo "============================================"
-- bin/pinentry --
#!/bin/sh

echo "pinentry-curses (pinentry) 1.2.0"
echo "Copyright (C) 2016 g10 Code GmbH"
echo "License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/>"
echo "This is free software: you are free to change and redistribute it."
echo "There is NO WARRANTY, to the extent permitted by law."
-- bin/secret --
#!/bin/sh
-- bin/shell --
#!/bin/sh
-- bin/vault --
#!/bin/sh

echo "Vault v1.5.5 ('f5d1ddb3750e7c28e25036e1ef26a4c02379fc01+CHANGES')"
-- bin/vimdiff --
#!/bin/sh
-- home/user/.config/chezmoi/chezmoi.toml --
[keepassxc]
    command = "keepassxc"
[pinentry]
    command = "pinentry"
[secret]
    command = "secret"
-- home/user/.config/chezmoi/chezmoi.yaml --
-- home/user/.local/share/chezmoi/.chezmoidata.json --
-- home/user/.local/share/chezmoi/.chezmoiexternal.toml --
-- home/user/.local/share/chezmoi/.chezmoiscripts/.keep --
-- home/user/.local/share/chezmoi/dot_config/chezmoi/chezmoi.toml.tmpl --
-- home3/user/.local/share/chezmoi/.chezmoisuspicious --
