Add make test rule to 2012/zeitak + formatting

The make test rule runs the new test.sh script which checks the return
value of the program run on a variety of new files (and the old
incorrect.c which was renamed incorrect.paren.c). The new files include
1984/anonymous.c and 1984/anonymous.alt.c as the author explicitly
mentioned that entry.

The README.md file has been format/typo checked.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-29 08:45:24 -08:00
1 parent c23eb2be42
commit 5d8e061438
14 files changed
+251 -22

No files matched your search

+5 -1
View File
@@ -113,7 +113,7 @@ ENTRY= zeitak
PROG= ${ENTRY}
#
OBJ= ${PROG}.o
DATA= incorrect.c
DATA= incorrect.paren.c incorrect.brace.c incorrect.bracket.c
TARGET= ${PROG}
#
ALT_OBJ= ${PROG}.alt.o
@@ -135,6 +135,10 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
test: test.sh
./$< || exit 1
# alternative executable
#
alt: data ${ALT_TARGET}