File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -1129,6 +1129,34 @@ mod tests {
11291129 } )
11301130 }
11311131
1132+ #[ test]
1133+ #[ ignore]
1134+ fn test_artifact_cache ( ) {
1135+ wrapper ( |env| {
1136+ let crate_ = DUMMY_CRATE_NAME ;
1137+ let version = DUMMY_CRATE_VERSION ;
1138+ let mut builder = RustwideBuilder :: init ( env) . unwrap ( ) ;
1139+ assert ! ( builder. build_package( crate_, version, PackageKind :: CratesIo ) ?) ;
1140+
1141+ let cache_dir = env. config ( ) . prefix . join ( "artifact_cache" ) ;
1142+ dbg ! ( std:: fs:: read_dir( & cache_dir) ?) ;
1143+
1144+ panic ! ( "fail" ) ;
1145+
1146+ // let storage = env.storage();
1147+
1148+ // // doc archive exists
1149+ // let doc_archive = rustdoc_archive_path(crate_, version);
1150+ // assert!(storage.exists(&doc_archive)?);
1151+
1152+ // // source archive exists
1153+ // let source_archive = source_archive_path(crate_, version);
1154+ // assert!(storage.exists(&source_archive)?);
1155+
1156+ Ok ( ( ) )
1157+ } ) ;
1158+ }
1159+
11321160 #[ test]
11331161 #[ ignore]
11341162 fn test_proc_macro ( ) {
You can’t perform that action at this time.
0 commit comments