vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit daf22b45c47ea211a2697d88906ebcd8545a555e parent fb2674577d4f3a2471fa951b4732f040a6d01865 Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 18 Feb 2017 16:14:28 +0100 test/core: rename files to have distinct names Having different names for the test driver/actual implementation might make the Travis / Codecov errors less confusing. Diffstat:
| M | core/.gitignore | | | 8 | ++++---- |
| M | core/Makefile | | | 23 | ++++++++++------------- |
| R | core/array.c -> core/array-test.c | | | 0 | |
| R | core/buffer.c -> core/buffer-test.c | | | 0 | |
| R | core/map.c -> core/map-test.c | | | 0 | |
| R | core/text.c -> core/text-test.c | | | 0 |
6 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/core/.gitignore b/core/.gitignore @@ -1,8 +1,8 @@ /config.h -/text -/buffer -/map -/array +/text-test +/buffer-test +/map-test +/array-test /ccan-config *.gcda *.gcno diff --git a/core/Makefile b/core/Makefile @@ -1,32 +1,32 @@ -include ../../config.mk -ALL = buffer map array text +ALL = buffer-test map-test array-test text-test SRC = $(wildcard ccan/*/*.c) CFLAGS += -I. -I../.. -DBUFFER_SIZE=4 -DBLOCK_SIZE=4 test: $(ALL) - @./buffer - @./map - @./array - @./text + @./buffer-test + @./map-test + @./array-test + @./text-test config.h: @echo Generating ccan configuration header @${CC} ccan-config.c -o ccan-config && ./ccan-config > config.h -text: config.h text.c ../../text.c ../../text-util.c ../../text-motions.c ../../text-objects.c ../../text-regex.c +text-test: config.h text-test.c ../../text.c ../../text-util.c ../../text-motions.c ../../text-objects.c ../../text-regex.c @echo Compiling $@ binary @${CC} ${CFLAGS} ${CFLAGS_STD} ${CFLAGS_EXTRA} ${filter %.c, $^} ${SRC} ${LDFLAGS} -o $@ -buffer: config.h buffer.c ../../buffer.c +buffer-test: config.h buffer-test.c ../../buffer.c @echo Compiling $@ binary @${CC} ${CFLAGS} ${CFLAGS_STD} ${CFLAGS_EXTRA} ${filter %.c, $^} ${SRC} ${LDFLAGS} -o $@ -map: config.h map.c ../../map.c +map-test: config.h map-test.c ../../map.c @echo Compiling $@ binary @${CC} ${CFLAGS} ${CFLAGS_STD} ${CFLAGS_EXTRA} ${filter %.c, $^} ${SRC} ${LDFLAGS} -o $@ -array: config.h array.c ../../array.c +array-test: config.h array-test.c ../../array.c @echo Compiling $@ binary @${CC} ${CFLAGS} ${CFLAGS_STD} ${CFLAGS_EXTRA} ${filter %.c, $^} ${SRC} ${LDFLAGS} -o $@ @@ -54,10 +54,7 @@ tis: clean clean: @echo cleaning - @rm -f buffer - @rm -f map - @rm -f array - @rm -f text + @rm -f $(ALL) @rm -f *.gcov *.gcda *.gcno @rm -f *.valgrind diff --git a/core/array.c b/core/array-test.c diff --git a/core/buffer.c b/core/buffer-test.c diff --git a/core/map.c b/core/map-test.c diff --git a/core/text.c b/core/text-test.c