public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/daemons/lvmetad Makefile test.sh Date: Mon, 27 Jun 2011 13:44:00 -0000 [thread overview] Message-ID: <20110627134435.18826.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2011-06-27 13:44:34 Modified files: daemons/lvmetad: Makefile Added files: daemons/lvmetad: test.sh Log message: LVMetaD build hack: link to lvm-internal &c. and add a simple test script. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/lvmetad/test.sh.diff?cvsroot=lvm2&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/lvmetad/Makefile.diff?cvsroot=lvm2&r1=1.1&r2=1.2 /cvs/lvm2/LVM2/daemons/lvmetad/test.sh,v --> standard output revision 1.1 --- LVM2/daemons/lvmetad/test.sh +++ - 2011-06-27 13:44:34.722209000 +0000 @@ -0,0 +1,14 @@ +#!/bin/bash + +export LD_LIBRARY_PATH="$1" + +test -n "$2" && { + ./lvmetad -f & + PID=$! + sleep .1 + ./testclient + kill $PID + exit 0 +} + +sudo ./test.sh "$1" . --- LVM2/daemons/lvmetad/Makefile 2011/06/14 02:36:38 1.1 +++ LVM2/daemons/lvmetad/Makefile 2011/06/27 13:44:33 1.2 @@ -13,9 +13,10 @@ CLIENT_H = ../common/daemon-client.h $(SHARED_H) SERVER_H = ../common/daemon-server.h $(SHARED_H) -LIBS = -ldevmapper -lpthread +LIBS = -ldevmapper -lpthread -ldevmapper-event -llvm-internal -ldl IPATH = -I../common -I/srv/build/lvm2/cvs-lvmetad/default/include -LPATH = -L/srv/build/lvm2/cvs-lvmetad/default/libdm +BUILDDIR = /srv/build/lvm2/cvs-lvmetad/default +LPATH = -L$(BUILDDIR)/libdm -L$(BUILDDIR)/lib -L$(BUILDDIR)/daemons/dmeventd all: testclient lvmetad @@ -24,3 +25,6 @@ lvmetad: lvmetad-core.c ../common/daemon-server.c ../common/daemon-server.h ../common/daemon-shared.h ../common/daemon-shared.c gcc -g lvmetad-core.c $(SERVER) $(IPATH) $(LPATH) $(LIBS) -o lvmetad + +check: testclient lvmetad + ./test.sh "$(BUILDDIR)/libdm:$(BUILDDIR)/daemons/dmeventd"
reply other threads:[~2011-06-27 13:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110627134435.18826.qmail@sourceware.org \ --to=mornfall@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).