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
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
```