Makefile.test 458 B

12345678910111213141516171819
  1. # Targets to assist in running tests
  2. include make/common-defs.make
  3. test:
  4. cd .. && go test ./...
  5. integration: $(OLLAMA_EXE)
  6. cd .. && go test --tags=integration ./integration -v
  7. lint:
  8. cd .. && golangci-lint run -v
  9. # Note: in this makefile we error instead of building to allow more fine-grain control of testing flows
  10. $(OLLAMA_EXE):
  11. @echo ""
  12. @echo "ERROR: You must build ollama first - use 'make all' to build the ollama binaries"
  13. @echo ""
  14. @exit 1