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/README.md

1.2 KiB

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.