README: Update build instructions for phosphor-time-manager
The existing unit test instructions were outdated and incompatible
with recent versions of Meson. This update revises the build and
test steps to ensure compatibility with the latest Meson workflow
and syntax.
Change-Id: Ib8480da3e039860d066910128e17d69da1ed7466
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/README.md b/README.md
index 1b6d403..ee9a5a2 100644
--- a/README.md
+++ b/README.md
@@ -14,21 +14,23 @@
```bash
meson setup builddir
- ninja -C builddir
+ meson compile -C builddir
```
- Compile phosphor-time-manager with some configurable options:
```bash
- meson setup builddir -Dbuildtype=minsize -Dtests=disabled
- ninja -C builddir
+ meson setup builddir -Dbuildtype=minsize -Dtests=false
+ meson compile -C builddir
```
- Generate test coverage report:
```bash
- meson setup builddir -Db_coverage=true -Dtests=enabled
- ninja coverage -C builddir test
+ meson setup builddir -Db_coverage=true -Dtests=true
+ meson compile -C builddir
+ meson test -C builddir
+ ninja -C builddir coverage
```
### General usage