Skip to content

Commit

Permalink
sample test to check if test is skipped on fips
Browse files Browse the repository at this point in the history
the test 'test-zlib-zero-byte' was added to file
'test/parallel/parallel.status' to be skipped when run in 'fips'
compliant systems, using the command:

  ``tools/test.py --type=fips``

Output of the test run:
-----

nikhil@ubi ~/node (fips-flaky) $ git status
On branch fips-flaky
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   test/parallel/parallel.status

no changes added to commit (use "git add" and/or "git commit -a")
nikhil@ubi ~/node (fips-flaky) $ git diff
diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status
index fda5e01..00099d8 100644
--- a/test/parallel/parallel.status
+++ b/test/parallel/parallel.status
@@ -19,3 +19,5 @@ test-npm-install:      PASS,FLAKY

 [$system==freebsd]

+[$type==fips]
+test-zlib-zero-byte:   FAIL,FLAKY
nikhil@ubi ~/node (fips-flaky) $ tools/test.py --type=fips
=== release test-zlib-zero-byte ===
Path: parallel/test-zlib-zero-byte
Command: out/Release/node /home/nikhil/node/test/parallel/test-zlib-zero-byte.js
[05:37|% 100|+ 1852|-   1]: Done

-----
  • Loading branch information
komawar committed Oct 18, 2017
1 parent b4eee82 commit 4a957ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/parallel.status
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ test-npm-install: PASS,FLAKY

[$system==freebsd]

[$type==fips]
test-zlib-zero-byte: FAIL,FLAKY

0 comments on commit 4a957ca

Please sign in to comment.