Run line editing tests

I know, it feels wrong.
master
June McEnroe 2022-02-19 00:01:34 -05:00
parent 1a2477ef7a
commit 06d17aa8f1
2 changed files with 14 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.o
*.t
catgirl
chroot.tar
config.mk

View File

@ -25,20 +25,30 @@ OBJS += ui.o
OBJS += url.o
OBJS += xdg.o
dev: tags all
TESTS += edit.t
dev: tags all check
all: catgirl
catgirl: ${OBJS}
${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
${OBJS}: chat.h edit.h
${OBJS} ${TESTS}: chat.h edit.h
check: ${TESTS}
.SUFFIXES: .t
.c.t:
${CC} ${CFLAGS} -DTEST ${LDFLAGS} $< ${LDLIBS} -o $@
./$@ || rm $@
tags: *.[ch]
ctags -w *.[ch]
clean:
rm -f catgirl ${OBJS} tags
rm -f catgirl ${OBJS} ${TESTS} tags
install: catgirl catgirl.1
install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MANDIR}/man1