X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib-FREEBSD.sh;fp=test%2Ftest-lib-FREEBSD.sh;h=d1840b5637fb25e3db806ce320f75a85010994f6;hp=0000000000000000000000000000000000000000;hb=9b7dbed58ebd3aeee16b044fdffda6b39e90643e;hpb=e1ddd27968673e6785300e739f5257b83841fb97 diff --git a/test/test-lib-FREEBSD.sh b/test/test-lib-FREEBSD.sh new file mode 100644 index 00000000..d1840b56 --- /dev/null +++ b/test/test-lib-FREEBSD.sh @@ -0,0 +1,9 @@ +# If present, use GNU Coreutils instead of a native BSD utils +if command -v gdate >/dev/null + then + date () { gdate "$@"; } + base64 () { gbase64 "$@"; } + wc () { gwc "$@"; } + sed () { gsed "$@"; } + sha256sum () { gsha256sum "$@"; } + fi