Skip to content

std.tar: copy another project's full test suite and make them all pass #14310

@andrewrk

Description

@andrewrk

The implementation is the easy part!

Perhaps https://cs.opensource.google/go/go/+/refs/tags/go1.19.5:src/archive/tar/

Perhaps https://github.com/python/cpython/blob/3.11/Lib/test/test_tarfile.py

Make sure the license is MIT-compatible so we can copy the test data.

Depending on how bulky the test data is, maybe this would be better to go into test/standalone rather than lib/std/

I'm marking this as "bug" since it's extremely likely that adding these tests will find bugs.

Bonus: write a handy benchmark script that we can use to find out if any implementation changes to std.tar improved performance.

Please enjoy this inspirational material, while searching for some other project's data to plunder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    Status

    Quality Assurance

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions