From fd939b711599b9f43fea63e7db4c008d986d5bb1 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 6 Dec 2018 05:56:21 +0100 Subject: [PATCH 1/2] allow parameters when testing busted itself The 'try' and 'try.bat' scripts will now pass their parameters on to Busted when testing. --- try | 2 +- try.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/try b/try index fe04aa13..b2239ba3 100755 --- a/try +++ b/try @@ -1,4 +1,4 @@ #!/bin/sh sudo luarocks remove busted --force sudo luarocks make busted-scm-0.rockspec -busted +busted $@ diff --git a/try.bat b/try.bat index 0d4dba36..6cbe1b02 100644 --- a/try.bat +++ b/try.bat @@ -1,4 +1,4 @@ call luarocks remove busted --force call luarocks make busted-scm-0.rockspec cls -call busted +call busted %* From 85daab63bd3ba5d4a12724fb99cd366e6a962447 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 6 Dec 2018 06:04:47 +0100 Subject: [PATCH 2/2] move rockspecs into separate directory This allows the test scripts to not have a literal version in them, but always use the one in the repo --- .../busted-2.0.rc13-0.rockspec | 0 try | 2 +- try.bat | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename busted-2.0.rc13-0.rockspec => rockspecs/busted-2.0.rc13-0.rockspec (100%) diff --git a/busted-2.0.rc13-0.rockspec b/rockspecs/busted-2.0.rc13-0.rockspec similarity index 100% rename from busted-2.0.rc13-0.rockspec rename to rockspecs/busted-2.0.rc13-0.rockspec diff --git a/try b/try index b2239ba3..5566fd10 100755 --- a/try +++ b/try @@ -1,4 +1,4 @@ #!/bin/sh sudo luarocks remove busted --force -sudo luarocks make busted-scm-0.rockspec +sudo luarocks make busted $@ diff --git a/try.bat b/try.bat index 6cbe1b02..d06a8233 100644 --- a/try.bat +++ b/try.bat @@ -1,4 +1,4 @@ call luarocks remove busted --force -call luarocks make busted-scm-0.rockspec +call luarocks make cls call busted %*