Skip to content
forked from sysprog21/lab0-c

C Programming Lab: Assessing Your C Programming Skills

License

Notifications You must be signed in to change notification settings

sytjason/lab0-c

 
 

Repository files navigation

lab0-c

Assessing Your C Programming Skills

Running the autograders

Before running the autograders, compile your code to create the testing program qtest

make

Check the correctness of your code:

make test

Using qtest

qtest provides a command interpreter that can create and manipulate queues.

Run ./qtest -h to see the list of command-line options

When you execute ./qtest, it will give a command prompt "cmd>". Type "help" to see a list of available commands

Files

You will handing in these two files

  • queue.h : Modified version of declarations including new fields you want to introduce
  • queue.c : Modified version of queue code to fix deficiencies of original code

Tools for evaluating your queue code

  • Makefile : Builds the evaluation program qtest
  • README.md : This file
  • scripts/driver.py : The C lab driver program, runs qtest on a standard set of traces

Helper files

  • console.{c,h} : Implements command-line interpreter for qtest
  • report.{c,h} : Implements printing of information at different levels of verbosity
  • harness.{c,h} : Customized version of malloc and free to provide rigorous testing framework
  • qtest.c : Code for qtest

Trace files

  • traces/trace-XX-CAT.cmd : Trace files used by the driver. These are input files for qtest.
    • They are short and simple.
    • We encourage to study them to see what tests are being performed.
    • XX is the trace number (1-15). CAT describes the general nature of the test.
  • traces/trace-eg.cmd : A simple, documented trace file to demonstrate the operation of qtest

About

C Programming Lab: Assessing Your C Programming Skills

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 73.5%
  • Shell 12.9%
  • Python 5.4%
  • Batchfile 3.8%
  • C++ 3.8%
  • Makefile 0.6%