Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
System.Formats.Tar
  • Loading branch information
carlossanlop committed Apr 12, 2022
commit 93c4ef94dbb961234cc4f204e2f0d915edf21df7
472 changes: 472 additions & 0 deletions src/System.Formats.Tar.TestData/GenerateTarFiles.sh

Large diffs are not rendered by default.

Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<NoWarn>$(NoWarn);NU5123</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Update="README.md" Pack="False" />
<None Update="GenerateTarFiles.sh" Pack="False" />
</ItemGroup>
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/System.Formats.Tar.TestData/targz/v7/file.tar.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions src/System.Formats.Tar.TestData/unarchived/file/file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of "Hello" in each file, could this have a single-line description of what scenario the file represents?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason why I did it like this was so I could verify the expected file contents with a simple enough message that applied to all tests.

What do you think about putting a description of each test case in the readme instead?

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello file_hardlink
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello file_hardlink
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello file_symlink
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello folder_file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello folder_file_utf8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello folder_subfolder_file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello foldersymlink_folder_subfolder_file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any behaviors of the implementation where having behavior needs to be tested for larger files, different content types, newlines, non-ascii characters or other encoding scenarios, or anything else like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contents of the file don't really matter much. The header stores the length in bytes of the data section, and the data section can contain anything in that space of the specified size.

But I can add tests (no need to add test assets) that verify that string fields do not have forbidden characters. For example, the Name field should not have an endline.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello many_small_files
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<Project Sdk="Microsoft.Build.NoTargets" />
<Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<NoWarn>$(NoWarn);NU5123</NoWarn>
</PropertyGroup>
</Project>