Add test for stat before and after changing encryption of a file
diff --git a/regress/CMakeLists.txt b/regress/CMakeLists.txt
index d4ffa0e..165aeeb 100644
--- a/regress/CMakeLists.txt
+++ b/regress/CMakeLists.txt
@@ -128,6 +128,7 @@
encryption-nonrandom-aes256.test
encryption-nonrandom-pkware.test
encryption-remove.test
+ encryption-stat.test
extra_add.test
extra_add_multiple.test
extra_count.test
diff --git a/regress/encryption-stat.test b/regress/encryption-stat.test
new file mode 100644
index 0000000..d84d8fc
--- /dev/null
+++ b/regress/encryption-stat.test
@@ -0,0 +1,23 @@
+features CRYPTO
+description encrypt file, look at stat before commit
+return 0
+args encrypt.zzip stat 1 set_file_encryption 1 AES-128 no-entropy stat 1 unchange_all
+file encrypt.zzip encrypt-none.zip encrypt-none.zip
+stdout name: 'encrypted'
+stdout index: '1'
+stdout size: '10'
+stdout compressed size: '10'
+stdout mtime: 'Sat Jan 14 2017 21:27:26'
+stdout crc: 'fb8c5e55'
+stdout compression method: '0'
+stdout encryption method: '0'
+stdout
+stdout name: 'encrypted'
+stdout index: '1'
+stdout size: '10'
+stdout compressed size: '10'
+stdout mtime: 'Sat Jan 14 2017 21:27:26'
+stdout crc: 'fb8c5e55'
+stdout compression method: '0'
+stdout encryption method: '257'
+stdout