npeg.nimble 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Package
  2. version = "0.24.1"
  3. author = "Ico Doornekamp"
  4. description = "a PEG library"
  5. license = "MIT"
  6. srcDir = "src"
  7. installExt = @["nim"]
  8. # Dependencies
  9. requires "nim >= 0.19.0"
  10. # Test
  11. task test, "Runs the test suite":
  12. exec "nimble testc && nimble testcpp && nimble testarc && nimble testjs"
  13. task testc, "C tests":
  14. exec "nim c -r tests/tests.nim"
  15. task testcpp, "CPP tests":
  16. exec "nim cpp -r tests/tests.nim"
  17. task testjs, "JS tests":
  18. exec "nim js -r tests/tests.nim"
  19. task testdanger, "Runs the test suite in danger mode":
  20. exec "nim c -d:danger -r tests/tests.nim"
  21. task testwin, "Mingw tests":
  22. exec "nim c -d:mingw tests/tests.nim && wine tests/tests.exe"
  23. task test32, "32 bit tests":
  24. exec "nim c --cpu:i386 --passC:-m32 --passL:-m32 tests/tests.nim && tests/tests"
  25. task testall, "Test all":
  26. exec "nimble test && nimble testcpp && nimble testdanger && nimble testjs && nimble testwin"
  27. when (NimMajor, NimMinor) >= (1, 1):
  28. task testarc, "--gc:arc tests":
  29. exec "nim c --gc:arc -r tests/tests.nim"
  30. else:
  31. task testarc, "--gc:arc tests":
  32. exec "true"
  33. task perf, "Test performance":
  34. exec "nim cpp -r -d:danger tests/performance.nim"