@@ -143,9 +143,9 @@ mod tests {
143143
144144 #[ test]
145145 fn test_verify_snp_report ( ) {
146- let report = include_bytes ! ( "../../test_data/az-hcl-data.bin" ) ;
146+ let report = include_bytes ! ( "../../../../ test_data/az-hcl-data.bin" ) ;
147147 let hcl_data: HclData = report. as_slice ( ) . try_into ( ) . unwrap ( ) ;
148- let vcek = Vcek :: from_pem ( include_str ! ( "../../test_data/az-vcek.pem" ) ) . unwrap ( ) ;
148+ let vcek = Vcek :: from_pem ( include_str ! ( "../../../../ test_data/az-vcek.pem" ) ) . unwrap ( ) ;
149149 verify_snp_report ( hcl_data. report ( ) . snp_report ( ) , & vcek) . unwrap ( ) ;
150150
151151 let mut wrong_report = * report;
@@ -157,10 +157,10 @@ mod tests {
157157
158158 #[ test]
159159 fn test_verify_quote ( ) {
160- let signature = include_bytes ! ( "../../test_data/az-vtpm-quote-sig.bin" ) . to_vec ( ) ;
161- let message = include_bytes ! ( "../../test_data/az-vtpm-quote-msg.bin" ) . to_vec ( ) ;
160+ let signature = include_bytes ! ( "../../../../ test_data/az-vtpm-quote-sig.bin" ) . to_vec ( ) ;
161+ let message = include_bytes ! ( "../../../../ test_data/az-vtpm-quote-msg.bin" ) . to_vec ( ) ;
162162 let quote = Quote { signature, message } ;
163- let report = include_bytes ! ( "../../test_data/az-hcl-data.bin" ) ;
163+ let report = include_bytes ! ( "../../../../ test_data/az-hcl-data.bin" ) ;
164164 let hcl_data: HclData = report. as_slice ( ) . try_into ( ) . unwrap ( ) ;
165165 let nonce = "challenge" . as_bytes ( ) ;
166166 verify_quote ( & quote, & hcl_data, nonce) . unwrap ( ) ;
@@ -186,7 +186,7 @@ mod tests {
186186
187187 #[ test]
188188 fn test_parse_evidence ( ) {
189- let report = include_bytes ! ( "../../test_data/az-hcl-data.bin" ) ;
189+ let report = include_bytes ! ( "../../../../ test_data/az-hcl-data.bin" ) ;
190190 let hcl_data: HclData = report. as_slice ( ) . try_into ( ) . unwrap ( ) ;
191191 let snp_report = hcl_data. report ( ) . snp_report ( ) ;
192192 let claim = parse_tee_evidence ( snp_report) ;
0 commit comments