From 374871578dd60ea206fe5300eee8331b2e684e72 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 6 Dec 2022 18:25:26 -0300 Subject: [PATCH] add Makefile --- Makefile | 6 ++++++ README.md | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4b55dda --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +testdeps: + luarocks-5.1 install --local luaunit + luarocks-5.1 install --local lrexlib-PCRE2 + +test: + luajit test.lua diff --git a/README.md b/README.md index da2ec35..5272510 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,10 @@ on top of ActivityPub implementations. ## Testing +requires luajit + ```sh -luarocks-5.1 install --local luaunit -luarocks-5.1 install --local lrexlib-PCRE2 +make testdeps eval (luarocks-5.1 path --bin) -# luajit works -lua5.1 ./test.lua +make test ```