From 1330cb7b18ba652ed57d2542b91ce9dc74b5a06c Mon Sep 17 00:00:00 2001 From: welcor <357770+welcor@users.noreply.github.com> Date: Fri, 21 Jun 2024 00:35:32 +0200 Subject: [PATCH] add cmocka --- .github/workflows/build.yml | 2 ++ README.md | 14 +++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f82e91f..0a06c3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/README.md b/README.md index c770dec..dd40ea1 100644 --- a/README.md +++ b/README.md @@ -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`