native-pycommandpath-sep.mk 475 B

12345678910111213141516171819202122
  1. #T gmake skip
  2. EXPECTED := some data
  3. # verify that we can load native command modules from
  4. # multiple directories in PYCOMMANDPATH separated by the native
  5. # path separator
  6. ifdef __WIN32__
  7. PS:=;
  8. else
  9. PS:=:
  10. endif
  11. CMD = %pycmd writetofile
  12. CMD2 = %pymod writetofile
  13. PYCOMMANDPATH = $(TESTPATH)$(PS)$(TESTPATH)/subdir
  14. all:
  15. $(CMD) results $(EXPECTED)
  16. test "$$(cat results)" = "$(EXPECTED)"
  17. $(CMD2) results2 $(EXPECTED)
  18. test "$$(cat results2)" = "$(EXPECTED)"
  19. @echo TEST-PASS