about summary refs log tree commit diff
path: root/tests/check.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2019-05-11T21·32+0200
committerDaiderd Jordan <daiderd@gmail.com>2019-07-01T22·12+0200
commit99ee3755dd12e18f7085b8319a27798b0e5b7de9 (patch)
tree8cc4d7433d40e70104de608f5eb20701b1717faf /tests/check.nix
parentcbf84bcce7d3fddb353d3aa0f012f5cbdbb77629 (diff)
build: add tests for --check status codes
Diffstat (limited to 'tests/check.nix')
-rw-r--r--tests/check.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/check.nix b/tests/check.nix
index 08aac2fb0a77..56c82e565a8f 100644
--- a/tests/check.nix
+++ b/tests/check.nix
@@ -10,6 +10,11 @@ with import ./config.nix;
       '';
   };
 
+  hashmismatch = import <nix/fetchurl.nix> {
+    url = "file://" + toString ./dummy;
+    sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";
+  };
+
   fetchurl = import <nix/fetchurl.nix> {
     url = "file://" + toString ./lang/eval-okay-xml.exp.xml;
     sha256 = "0kg4sla7ihm8ijr8cb3117fhl99zrc2bwy1jrngsfmkh8bav4m0v";