libnfs icon indicating copy to clipboard operation
libnfs copied to clipboard

`exportfs` not available on Mac OSX,

Open david-y-lam opened this issue 7 years ago • 1 comments

davidlam-mbp:tests davidlam$ make VERSION=3 test
for TEST in `ls test_*.sh`; do \
		echo "Running $TEST"; \
		echo "--------------"; \
		sh $TEST || exit 1;   \
		echo "--------------"; \
		echo; \
	done
Running test_0100_ls_basic.sh
--------------
basic ls test
Password:
sudo: exportfs: command not found
-n Testing nfs-ls on root of export ...
Failed to mount nfs share : nfs_service failed
[FAILED]
make: *** [test] Error 1

A quick Google search seems to show that exportfs is not available on Mac OSX.

david-y-lam avatar Dec 18 '18 08:12 david-y-lam

I am mac disadvantaged so I can't fix this easily.

I suspect there is some other command line utility on osx that does the same thing that exportfs does on many of the other unixen. So what we probably need here is an abstraction for the use of exportfs in the test scripts and replace it with a shell function that calls exportfs by default but calls the osx equivalent when run on osx.

On Tue, Dec 18, 2018 at 6:06 PM David Lam [email protected] wrote:

davidlam-mbp:tests davidlam$ make VERSION=3 test for TEST in ls test_*.sh; do
echo "Running $TEST";
echo "--------------";
sh $TEST || exit 1;
echo "--------------";
echo;
done Running test_0100_ls_basic.sh

basic ls test Password: sudo: exportfs: command not found -n Testing nfs-ls on root of export ... Failed to mount nfs share : nfs_service failed [FAILED] make: *** [test] Error 1

A quick Google search seems to show that exportfs is not available on Mac OSX.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

sahlberg avatar Dec 18 '18 08:12 sahlberg