public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH liburing] test: generate binaries in test/bin/
@ 2020-07-28 16:38 Stefano Garzarella
  0 siblings, 0 replies; only message in thread
From: Stefano Garzarella @ 2020-07-28 16:38 UTC (permalink / raw)
  To: Jens Axboe; +Cc: io-uring

In order to avoid to update .gitignore for every test that we add,
we can build them into a subfolder (test/bin) and ignore all
its contents.

Signed-off-by: Stefano Garzarella <[email protected]>
---
 .gitignore          | 79 ---------------------------------------------
 test/Makefile       | 26 ++++++++-------
 test/bin/.gitignore |  1 +
 3 files changed, 15 insertions(+), 91 deletions(-)
 create mode 100644 test/bin/.gitignore

diff --git a/.gitignore b/.gitignore
index 00f7a86..e5cb507 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,85 +15,6 @@
 /examples/link-cp
 /examples/ucontext-cp
 
-/test/232c93d07b74-test
-/test/35fa71a030ca-test
-/test/500f9fbadef8-test
-/test/7ad0e4b2f83c-test
-/test/8a9973408177-test
-/test/917257daa0fe-test
-/test/a0908ae19763-test
-/test/a4c0b3decb33-test
-/test/accept
-/test/accept-link
-/test/accept-reuse
-/test/accept-test
-/test/across-fork
-/test/b19062a56726-test
-/test/b5837bd5311d-test
-/test/ce593a6c480a-test
-/test/connect
-/test/close-opath
-/test/cq-full
-/test/cq-overflow
-/test/cq-peek-batch
-/test/cq-ready
-/test/cq-size
-/test/d4ae271dfaae-test
-/test/d77a67ed5f27-test
-/test/defer
-/test/eeed8b54e0df-test
-/test/eventfd
-/test/eventfd-disable
-/test/eventfd-ring
-/test/fadvise
-/test/fallocate
-/test/fc2a85cb02ef-test
-/test/file-register
-/test/file-update
-/test/fixed-link
-/test/fsync
-/test/io_uring_enter
-/test/io_uring_register
-/test/io_uring_setup
-/test/io-cancel
-/test/lfs-openat
-/test/lfs-openat-write
-/test/link
-/test/link-timeout
-/test/link_drain
-/test/madvise
-/test/nop
-/test/nop-all-sizes
-/test/open-close
-/test/openat2
-/test/personality
-/test/poll
-/test/poll-cancel
-/test/poll-cancel-ton
-/test/poll-link
-/test/poll-many
-/test/poll-v-poll
-/test/probe
-/test/read-write
-/test/ring-leak
-/test/send_recv
-/test/send_recvmsg
-/test/shared-wq
-/test/short-read
-/test/socket-rw
-/test/splice
-/test/sq-full
-/test/sq-full-cpp
-/test/sq-poll-kthread
-/test/sq-space_left
-/test/statx
-/test/stdout
-/test/submit-reuse
-/test/teardowns
-/test/timeout
-/test/timeout-overflow
-/test/iopoll
-/test/cq-overflow-peek
 /test/config.local
 /test/*.dmesg
 
diff --git a/test/Makefile b/test/Makefile
index a693d6f..b574c02 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -42,12 +42,14 @@ ifdef CONFIG_HAVE_CXX
 all_targets += sq-full-cpp
 endif
 
+all_targets := $(addprefix bin/,$(all_targets))
+
 all: $(all_targets)
 
-%: %.c
+bin/%: %.c
 	$(QUIET_CC)$(CC) $(CFLAGS) -o $@ $< -luring $(XCFLAGS)
 
-%: %.cc
+bin/%: %.cc
 	$(QUIET_CC)$(CXX) $(CXXFLAGS) -o $@ $< -luring $(XCFLAGS)
 
 test_srcs := poll.c poll-cancel.c ring-leak.c fsync.c io_uring_setup.c \
@@ -79,16 +81,16 @@ endif
 
 test_objs := $(patsubst %.c,%.ol,$(test_srcs))
 
-35fa71a030ca-test: XCFLAGS = -lpthread
-232c93d07b74-test: XCFLAGS = -lpthread
-send_recv: XCFLAGS = -lpthread
-send_recvmsg: XCFLAGS = -lpthread
-poll-link: XCFLAGS = -lpthread
-accept-link: XCFLAGS = -lpthread
-submit-reuse: XCFLAGS = -lpthread
-poll-v-poll: XCFLAGS = -lpthread
-across-fork: XCFLAGS = -lpthread
-ce593a6c480a-test: XCFLAGS = -lpthread
+bin/35fa71a030ca-test: XCFLAGS = -lpthread
+bin/232c93d07b74-test: XCFLAGS = -lpthread
+bin/send_recv: XCFLAGS = -lpthread
+bin/send_recvmsg: XCFLAGS = -lpthread
+bin/poll-link: XCFLAGS = -lpthread
+bin/accept-link: XCFLAGS = -lpthread
+bin/submit-reuse: XCFLAGS = -lpthread
+bin/poll-v-poll: XCFLAGS = -lpthread
+bin/across-fork: XCFLAGS = -lpthread
+bin/ce593a6c480a-test: XCFLAGS = -lpthread
 
 install: $(all_targets) runtests.sh runtests-loop.sh
 	$(INSTALL) -D -d -m 755 $(datadir)/liburing-test/
diff --git a/test/bin/.gitignore b/test/bin/.gitignore
new file mode 100644
index 0000000..72e8ffc
--- /dev/null
+++ b/test/bin/.gitignore
@@ -0,0 +1 @@
+*
-- 
2.26.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-28 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-28 16:38 [PATCH liburing] test: generate binaries in test/bin/ Stefano Garzarella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox