Add test for writing gzip-compressed files
authorDavid Shah <dave@ds0.me>
Wed, 31 Jul 2019 12:58:27 +0000 (13:58 +0100)
committerDavid Shah <dave@ds0.me>
Tue, 6 Aug 2019 16:43:04 +0000 (17:43 +0100)
Signed-off-by: David Shah <dave@ds0.me>
tests/various/.gitignore
tests/various/write_gzip.ys [new file with mode: 0644]

index 7b3e8c68e71df2fe6fc13c4559229ca792601cb3..31078b2982fc29291625451d36552720213c7fbd 100644 (file)
@@ -1,2 +1,4 @@
 /*.log
 /*.out
+/write_gzip.v
+/write_gzip.v.gz
diff --git a/tests/various/write_gzip.ys b/tests/various/write_gzip.ys
new file mode 100644 (file)
index 0000000..030ec31
--- /dev/null
@@ -0,0 +1,16 @@
+read -vlog2k <<EOT
+module top(input a, output y);
+assign y = !a;
+endmodule
+EOT
+
+prep -top top
+write_verilog write_gzip.v.gz
+design -reset
+
+! rm -f write_gzip.v
+! gunzip write_gzip.v.gz
+read -vlog2k write_gzip.v
+! rm -f write_gzip.v
+hierarchy -top top
+select -assert-any top