zanesterling / fatr

A FAT12 parsing and manipulation tool
MIT License
1 stars 0 forks source link

Write unit / integration tests for parsing #8

Open zanesterling opened 7 years ago

zanesterling commented 7 years ago

Make some tests to check that our parsing works on new blank FSes made with mkfs.fat.

kallisti5 commented 6 years ago

If you want to do travis.ci, something like this might be a good start:

language: rust
before_script:
  - mkdir tmp
  - dd if=/dev/zero of=tmp/fat12.img bs=$((1024*1024)) count=8
  - mkfs.fat -F12 -n TEST12 tmp/fat12.img
  - dd if=/dev/zero of=tmp/fat16.img bs=$((1024*1024)) count=32
  - mkfs.fat -F16 -n TEST16 tmp/fat16.img
  - dd if=/dev/zero of=tmp/fat32.img bs=$((1024*1024)) count=32
  - mkfs.fat -F32 -n TEST32 tmp/fat32.img

Packing several 32MiB and 8 MiB files in the git repo isn't great.