Added snippets for Emacs

This commit is contained in:
Fabio Scotto di Santolo
2025-12-27 13:53:55 +01:00
parent 2d510d289c
commit db4f52a064
115 changed files with 814 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#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 "\$@"