How To Install cmocka On Mac using Brew

Package Information:

Name: cmocka
Use: Unit testing framework for C
URL: https://cmocka.org/

Installation Steps:

  1. Open Terminal using Spotlight search by pressing<command+space>. Type terminal and hit Enter key.
  2. Now, run
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install cmocka using brew
    brew install cmocka

cmocka is ready to use now!