summaryrefslogtreecommitdiff
path: root/modules/system-defaults.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 00:56:27 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 00:56:27 -0500
commit839bbeb14a92a777a3857102dba08a212b21443d (patch)
tree67cadf65b818b17d8421e4063a06d51895e4584b /modules/system-defaults.el
parent18ba99fda928769adb235bd85b485c8be94c3ddd (diff)
downloaddotemacs-839bbeb14a92a777a3857102dba08a212b21443d.tar.gz
dotemacs-839bbeb14a92a777a3857102dba08a212b21443d.zip
test(scripts): add bats coverage for setup-email.sh password helpers
`setup-email.sh' ran top to bottom, so the only way to exercise `install_encrypted_password' / `decrypt_password' was to run the whole new-machine setup (mbsync, mu init). Its procedural body now lives in a `main()' function guarded by the usual `[[ "${BASH_SOURCE[0]}" == "${0}" ]]' check, so sourcing the script just defines the helpers, and running it directly is unchanged. New `tests/test-setup-email.bats' sources the script, points the password dirs at a per-test tmpdir, and covers both helpers across the normal / skip-existing / missing-source / (for decrypt) gpg-failure paths, stubbing `gpg' so no real key is needed. `make test-bash' runs the bats files, and `make test' picks them up after the Elisp suite when bats is installed.
Diffstat (limited to 'modules/system-defaults.el')
0 files changed, 0 insertions, 0 deletions