make
, C compiler- If you want to use ASM-strings, you need to install AssemblyLine
- For C-tests coverage
lcov
- For TS: Node.js
- Install dependencies (node, AssemblyLine)
- Run
$ npm install
ints
- Enjoy
import {MeasureSuite} from "measuresuite";
- Install dependencies (make, clang, lcov, AssemblyLine)
- Run
make
- Find
./lib/libmeasuresuite.{a,so}
and use the methods from./lib/src/include/measuresuite.h
- Find
ms
, a small CLI-tool. Essentially a wrapper to load files into MeasureSuite../ms --help
for more info, but in a nutshell:./ms ./my/file.asm ./my/secondfile.bin
prints the JSON.
- For TypeScript tests
cd ts && npm i && npm test
- For C tests
make check -C lib
- Find the html versions of the test report in
{lib,ts}/coverage/index.html
To enable debug messages, you can pass -DENABLE_DEBUG
when building
- C:
CPPFLAGS=-DENABLE_DEBUG make
- TS: add
"ENABLE_DEBUG"
totargets.defines
in./ts/binding.gyp
, then runnpm install
Run all the checks
make check
npm test
npm run test-cov
npm run lint-check
npm run format-check
Run the build to build js
npm run build