From da8c8b14cd261d27653eb54b5348d10efe572a42 Mon Sep 17 00:00:00 2001 From: hulkoba Date: Mon, 11 Dec 2023 10:27:08 +0100 Subject: [PATCH] test(fuzz): add command to package.json --- .gitignore | 4 ++++ package.json | 1 + test/fuzz/corpus/.gitkeep | 0 test/fuzz/reports/.gitkeep | 0 4 files changed, 5 insertions(+) create mode 100644 test/fuzz/corpus/.gitkeep create mode 100644 test/fuzz/reports/.gitkeep diff --git a/.gitignore b/.gitignore index 805fe8d36..2d0a644a7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,10 @@ node_modules/ npm* test/lib/ +test/fuzz/reports/* +!test/fuzz/reports/.gitkeep +test/fuzz/corpus/* +!test/fuzz/corpus/.gitkeep test/typescript/definitions.js dist/ openpgp.store/ diff --git a/package.json b/package.json index abc5a1f08..d56b32a20 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "build-test": "npm run build --build-only=test", "prepare": "npm run build", "test": "mocha --timeout 120000 test/unittests.js", + "fuzz": "jazzer test/fuzz/$TARGET -- -artifact_prefix='test/fuzz/reports/' test/fuzz/corpus --cov", "test-type-definitions": "ts-node --esm test/typescript/definitions.ts", "benchmark-time": "node test/benchmarks/time.js", "benchmark-memory-usage": "node test/benchmarks/memory_usage.js", diff --git a/test/fuzz/corpus/.gitkeep b/test/fuzz/corpus/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fuzz/reports/.gitkeep b/test/fuzz/reports/.gitkeep new file mode 100644 index 000000000..e69de29bb