add Makefile

This commit is contained in:
Luna 2022-12-06 18:25:26 -03:00
parent d16e31c675
commit 374871578d
2 changed files with 10 additions and 4 deletions

6
Makefile Normal file
View File

@ -0,0 +1,6 @@
testdeps:
luarocks-5.1 install --local luaunit
luarocks-5.1 install --local lrexlib-PCRE2
test:
luajit test.lua

View File

@ -13,10 +13,10 @@ on top of ActivityPub implementations.
## Testing ## Testing
requires luajit
```sh ```sh
luarocks-5.1 install --local luaunit make testdeps
luarocks-5.1 install --local lrexlib-PCRE2
eval (luarocks-5.1 path --bin) eval (luarocks-5.1 path --bin)
# luajit works make test
lua5.1 ./test.lua
``` ```