diff options
| author | Mikhail <mp39590@gmail.com> | 2017-03-09 09:32:43 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-03-25 07:56:52 -0300 |
| commit | 9b7dbed58ebd3aeee16b044fdffda6b39e90643e (patch) | |
| tree | 25f919a885e83e43954ef085ececbd849463f447 /test/test-lib-common.sh | |
| parent | e1ddd27968673e6785300e739f5257b83841fb97 (diff) | |
tests: add compatibility layer
Make test-lib-common.sh load test-lib-<$PLATFORM>.sh to create
additional shim for platform specifics.
Use test-lib-FREEBSD.sh to call GNU utilities instead of native ones.
- amended by db following Tomi's suggestions
Diffstat (limited to 'test/test-lib-common.sh')
| -rw-r--r-- | test/test-lib-common.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh index a96cfbeb..ef409171 100644 --- a/test/test-lib-common.sh +++ b/test/test-lib-common.sh @@ -66,6 +66,11 @@ export LD_LIBRARY_PATH # configure output . $notmuch_path/sh.config || exit 1 +# load OS specifics +if [ -e ./test-lib-$PLATFORM.sh ]; then + . ./test-lib-$PLATFORM.sh || exit 1 +fi + if test -n "$valgrind" then make_symlink () { |
