This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
sys_prog/splitter
Claudio Maggioni 63d93bb6c3 grad_hw1: 0 length file handled + some comments 2019-10-23 16:05:07 +02:00
..
tests grad_hw1: v4 tests (pass) 2019-10-22 16:51:02 +02:00
Makefile grad_hw1: bugfixes done with tests 2019-10-20 14:41:37 +02:00
README.md grad_hw1: bugfixes done with tests 2019-10-20 14:41:37 +02:00
splitter.c grad_hw1: 0 length file handled + some comments 2019-10-23 16:05:07 +02:00

README.md

SysProg Assignment 1: File Splitter

This directory contains the test package for the first System Programming assignment. You may use this package to validate your implementation. However, please be aware that the final grading may be done using another set of tests.

How to use it?

Simply edit your C program in a file named splitter.c. Place it in the same directory as this file and run the make command:

$ make

Test description

  • Test0: check if, in the split mode, your program produces correct chunk files. max-size = 4
  • Test1: same as Test0 but with max-size = 121
  • Test2: check if both split and merge modes work properly together and the final assembled file is identical to the original file.
  • Test3: check if the merge mode is working properly with the index and chunks provided by us.
  • Test4: check if the merge mode detects a wrong checksum.
  • Test5: check if the split mode, actually produces chunks with the size specified by max-size
  • Test6: check if the program exits with the proper exit code in case of the wrong number of input arguments.
  • Test7: same as Test6, but this time in case of an invalid file name.