We have the following in our Makefile, which runs well under Mac and Linux platforms ...
test: export MY_USERNAME=`grep MY_USERNAME tests/.test_env |