add cmocka

This commit is contained in:
welcor 2024-06-21 00:35:32 +02:00
parent a3185bf925
commit 1330cb7b18
2 changed files with 11 additions and 5 deletions

View file

@ -15,6 +15,8 @@ jobs:
- uses: actions/checkout@v3
- name: download munit
run: git submodule init && git submodule update
- name: install cmocka
run: sudo apt install -y libcmocka-dev
- name: configure
run: ./configure
- name: build tests

View file

@ -4,10 +4,14 @@ Files for tbaMUD.
## To build
1. clone the munit library into src/munit. It is registered as a submodule in git `git submodule init`
2. run configure: `./configure`
3. build the code: `cd src && make`
4. run the mud: `cd ..; bin/circle 1234`
5. connect via telnet to port 1234.
1. run configure: `./configure`
2. build the code: `cd src && make`
3. run the mud: `cd ..; bin/circle 1234`
4. connect via telnet to port 1234.
Read more in the doc/ folder
## To run the tests
1. clone the munit library into src/munit. It is registered as a submodule in git `git submodule init`
2. install the cmocka-library: `sudo apt install libcmocka-dev`