@@ -21,6 +21,7 @@ module {:options "-functionSyntax:4"} DecryptManifest {
21
21
import JsonConfig
22
22
import ENC = AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypes
23
23
import KeyVectors
24
+ import OsLang
24
25
25
26
method OnePositiveTest (name : string , config : JSON , encrypted : JSON , plaintext : JSON , keys : KeyVectors .KeyVectorsClient)
26
27
returns (output : Result< bool , string > )
@@ -110,6 +111,14 @@ module {:options "-functionSyntax:4"} DecryptManifest {
110
111
}
111
112
}
112
113
114
+ function LogFileName () : string
115
+ {
116
+ if OsLang. GetOsShort () == "Windows" && OsLang. GetLanguageShort () == "Dotnet" then
117
+ ".. \\.. \\PerfLog. txt"
118
+ else
119
+ ".. / .. / PerfLog. txt"
120
+ }
121
+
113
122
method Decrypt (inFile : string , keyVectors: KeyVectors .KeyVectorsClient)
114
123
returns (output : Result< bool , string > )
115
124
requires keyVectors. ValidState ()
@@ -168,11 +177,13 @@ module {:options "-functionSyntax:4"} DecryptManifest {
168
177
}
169
178
}
170
179
180
+ var time := Time. GetAbsoluteTime ();
171
181
for i := 0 to |tests. value| {
172
182
var obj := tests. value[i];
173
183
:- Need (obj.1.Object?, "Value of test '" + obj.0 + "' must be an Object.");
174
184
var _ :- OneTest (obj.0, obj.1, keyVectors);
175
185
}
186
+ Time. PrintTimeSinceLong (time, "DB-ESDK-TV-Decrypt-" + inFile, Some(LogFileName()));
176
187
177
188
timeStamp :- expect Time. GetCurrentTimeStamp ();
178
189
print timeStamp + " Tests Complete. \n";
0 commit comments