id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3778,"""test -e"" in testsuite doesn't work with Solaris /bin/sh",duncan,igloo,"The `testsuite/mk/boilerplate.mk` contains stuff like:
{{{
$(eval $(call canonicaliseExecutable,TEST_HC))
ifeq ""$(shell test -e '$(TEST_HC)' && echo exists)"" """"
$(error Cannot find ghc: $(TEST_HC))
endif
}}}

On Solaris, the `/bin/sh` test builtin does not support the `-e` flag. It does support both `-f` and `-x`, meaning regular and executable file respectively. I think we probably mean `-x` in this case anyway. With that fix the testsuite seems to run ok.

Looks like we already use `test -x` elsewhere in `testsuite/mk/boilerplate.mk` so we can assume that it does work with the shell of other platforms.",bug,closed,high,6.12.2,Test Suite,6.12.1,fixed,,,Solaris,sparc,Other,Easy (less than 1 hour),,,,
