Re: [PATCH] tests: add compatibility layer

2017-03-25 Thread David Bremner
Mikhail writes: > On 16:32 09-Mar 2017 David Bremner wrote: >> From: Mikhail >> >> 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

Re: [PATCH] tests: add compatibility layer

2017-03-24 Thread Mikhail
On 16:32 09-Mar 2017 David Bremner wrote: > From: Mikhail > > 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

Re: [PATCH] tests: add compatibility layer

2017-03-09 Thread Tomi Ollila
On Thu, Mar 09 2017, David Bremner wrote: > From: Mikhail > > 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

Re: [PATCH] tests: add compatibility layer

2017-01-03 Thread Mikhail
On 18:48 03-Jan 2017 Tomi Ollila wrote: # Finally, after everything configured, inform the user how to continue. diff --git a/test/README b/test/README index 104a120e..8376616f 100644 --- a/test/README +++ b/test/README @@ -33,6 +33,12 @@ chosen directory to your PATH before running the tests.

Re: [PATCH] tests: add compatibility layer

2017-01-03 Thread Tomi Ollila
On Tue, Jan 03 2017, Tomi Ollila wrote: > On Mon, Jan 02 2017, mp39...@gmail.com wrote: > >> From: Mikhail >> >> Make test-lib-common.sh load test-lib-<$PLATFORM>.sh to create >> additional shim for platform specifics. >> >> Use test-lib-FREEBSD.sh to call

Re: [PATCH] tests: add compatibility layer

2017-01-03 Thread Tomi Ollila
On Tue, Jan 03 2017, Tomi Ollila wrote: > > To fix the above, one could use (possibly better written) mkwrap() > implementation, or do all of those by hand: e.g. > > if command -v gdate >/dev/null; then date () { gdate "$@"; }; fi > if command -v gbase64 >/dev/null; then

Re: [PATCH] tests: add compatibility layer

2017-01-03 Thread Tomi Ollila
On Mon, Jan 02 2017, mp39...@gmail.com wrote: > From: Mikhail > > 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. Ok, now I've git a bit of time

Re: [PATCH] tests: add compatibility layer

2016-12-31 Thread Tomi Ollila
On Thu, Dec 22 2016, mp39...@gmail.com wrote: > From: Mikhail > > 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. I've been slow to respond,

Re: [PATCH] tests: add compatibility layer

2016-12-31 Thread David Bremner
mp39...@gmail.com writes: > From: Mikhail > > 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. We had quite a bit of discussion of this on IRC. My

Re: [PATCH] tests: add compatibility layer

2016-12-21 Thread Mikhail
David wrote 21.12.2016, 1:24:45: > mp39...@gmail.com writes: >> >> +# OS independent functions >> +# >> +# Alias native BSD utilities to usable GNU equivalents. >> +case `uname` in >> +FreeBSD) >> + # allow using aliases in scripts >> + shopt -s expand_aliases >> + >> + alias

Re: [PATCH] tests: add compatibility layer

2016-12-20 Thread Tomi Ollila
On Wed, Dec 21 2016, David Bremner wrote: > mp39...@gmail.com writes: > >> >> +# OS independent functions >> +# >> +# Alias native BSD utilities to usable GNU equivalents. >> +case `uname` in >> +FreeBSD) >> +# allow using aliases in scripts >> +shopt -s

Re: [PATCH] tests: add compatibility layer

2016-12-20 Thread David Bremner
mp39...@gmail.com writes: > > +# OS independent functions > +# > +# Alias native BSD utilities to usable GNU equivalents. > +case `uname` in > +FreeBSD) > + # allow using aliases in scripts > + shopt -s expand_aliases > + > + alias date=gdate > + alias base64=gbase64 > +