Run line editing tests

I know, it feels wrong.
weechat-hashes
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 *.o
*.t
catgirl catgirl
chroot.tar chroot.tar
config.mk config.mk

View File

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