Unverified Commit 12c8eca7 authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

lua51Packages.nvim-nio: run tests (#382310)

parents 2e857f39 69f7502a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -606,6 +606,19 @@ in
    '';
  });

  nvim-nio = prev.nvim-nio.overrideAttrs (oa: {
    doCheck = lua.luaversion == "5.1";
    nativeCheckInputs = [ final.nlua final.busted ];

    # upstream uses PlenaryBusted which is a pain to setup
    checkPhase = ''
      runHook preCheck
      export HOME=$(mktemp -d)
      busted --lua=nlua --lpath='lua/?.lua' --lpath='lua/?/init.lua' tests/
      runHook postCheck
    '';
  });

  plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {
    postPatch = ''
      sed -Ei lua/plenary/curl.lua \