Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a test suite for GcnFst. #17

Closed
GerbilSoft opened this issue Aug 5, 2017 · 0 comments
Closed

Write a test suite for GcnFst. #17

GerbilSoft opened this issue Aug 5, 2017 · 0 comments
Assignees
Milestone

Comments

@GerbilSoft
Copy link
Owner

Issue by GerbilSoft
Friday Sep 16, 2016 at 19:25 GMT
Originally opened as https://github.com/GerbilSoft/rom-properties.reworking/issues/17


GcnFst is a bit hackish due to the way the GameCube file system is set up, so a test suite would be a good idea.

Requirements:

  • Collection of fst.bin files from all sorts of GameCube and Wii games. (Should be legal to redistribute, since it's basically just a binary representation of a directory structure.)
  • Simple test program to use GcnFst to parse the fst.bin and print the directory tree as text.
  • Google Test program to compare the two at runtime.

The fst.bin files will be stored in a Zip archive, since they're usually small. The comparison text files will probably also be stored in a Zip archive, since those are likely to be small as well (though larger than fst.bin because it'll be printing full paths).

Dependencies:

  • Add MiniZip to extlib/. This will be used on all systems regardless of whether or not a system MiniZip is installed, though it will use the extlib/ version of zlib on Windows and the system zlib everywhere else.

Later: Add support for american-fuzzy-lop to fuzz the parser. (See issue #15.)

@GerbilSoft GerbilSoft added this to the 0.8 milestone Aug 5, 2017
@GerbilSoft GerbilSoft changed the title [CLOSED] Write a test suite for GcnFst. Write a test suite for GcnFst. Aug 5, 2017
@GerbilSoft GerbilSoft self-assigned this Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant