Files
infra/dotfiles/desktop/.emacs.d/snippets/sh-mode/shunit
Fabio Scotto di Santolo 18fd0fa129 Add Emacs desktop provisioning and dev toolchain packages
Install Emacs and copy the desktop .emacs.d config so the editor setup is managed with the rest of desktop dotfiles. Add vterm/build/debug dependencies plus C/C++ and Go tooling needed by the configured workflow.
2026-03-17 11:50:59 +01:00

28 lines
450 B
Plaintext

#name : shunit
# --
#! /usr/bin/env bash
# by torstein@skybert.net
cwd="\$(cd "$(dirname "\${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
## @override shunit2
setUp() {
source "\${cwd}/../lib/$(basename "\$0" -test.sh)-lib.sh"
}
## @override shunit2
tearDown() {
:
}
main() {
test -d "\${cwd}"/shunit2 || {
git -C "\${cwd}" clone --quiet --depth 1 https://github.com/kward/shunit2.git
}
source "\${cwd}"/shunit2/shunit2
}
main "\$@"