Assignment 1: Textbuffer dryruns

You can invoke all the dryruns by doing

2521 dryrun textbuffer
test 1 (dryrun00): test passed
test 2 (dryrun01): test passed
test 3 (dryrun02): test passed
test 4 (dryrun03): test passed
test 5 (dryrun04): test passed
test 6 (dryrun05): test passed
test 7 (dryrun06): test passed
test 8 (dryrun07): test passed
test 9 (dryrun08): test passed
test 10 (dryrun09): test passed
test 11 (dryrun10): test passed

11 test(s):     11 passed; 0 failed; 0 could not be run.
All tests passed.  You are awesome!

Or, you can download each of the dryruns:

Or, you can copy down the dryruns from /web/cs2521/19T0/assignments/textbuffer/dryrun/

cp /web/cs2521/19T0/assignments/textbuffer/dryrun/dryrun{00..10}.c .

To add these to your Makefile, add these magical incantations to the end.

dryruns = $(addprefix dryrun, $(shell seq -w 0 10))
all: ${dryruns}
$(foreach d, ${dryruns}, $(eval ${d}: ${d}.o textbuffer.o))

(For more on what’s going on here, see the GNU Make manual. It’s a pretty good introduction to the syntax and otherworldly magics of Make. In particular, see §8.3 for addsuffix, §8.5 for foreach, and §8.9 for eval.)