Package: eatmydata
Version: 26-2
Severity: wishlist
Hello,
thank you for eatmydata.
I would like my test scripts to run under eatymdata when it is available
in the system. To do so, I would need to create a wrapper launcher for
my test scripts like so:
if [ -x /usr/bin/eatmydata ]
then
eatmydata run-tests "$@"
else
run-tests "$@"
fi
However, it would be even better if I could edit the run-tests script to
do the required export, adding something like this to it:
libeatmydata="/usr/lib/libeatmydata/libeatmydata.so"
if [ -e $libeatmydata ]
then
if [ -n "$LD_PRELOAD" ]; then
export LD_PRELOAD="$libeatmydata $LD_PRELOAD"
else
export LD_PRELOAD="$libeatmydata"
fi
fi
This code is however already present in
/usr/share/libeatmydata/eatmydata.sh: if it could be moved from
eatmydata_exec into a separate function, then I could just do this:
if [ -e /usr/share/libeatmydata/eatmydata.sh ]
then
. /usr/share/libeatmydata/eatmydata.sh
eatmydata_exports
fi
And not worry about future changes in the way the eatmydata environment
is set up, except the hardcoded /usr/share path. Even better would be an
"eatmydata --exports" function, but I'm afraid that would mean
introducing some radical changes in the command line parsing code.
Ciao,
Enrico
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages eatmydata depends on:
ii libc6 2.13-21
eatmydata recommends no packages.
eatmydata suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]