[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-go-plugins] 01/02: Makefile: added test target.
From: |
gnunet |
Subject: |
[gnunet-go-plugins] 01/02: Makefile: added test target. |
Date: |
Mon, 31 Oct 2022 08:03:51 +0100 |
This is an automated email from the git hooks/post-receive script.
bernd-fix pushed a commit to branch master
in repository gnunet-go-plugins.
commit a5357167ef6dedc86a1dbce0e9bfff02a31bae35
Author: Bernd Fix <brf@hoi-polloi.org>
AuthorDate: Mon Oct 31 07:11:28 2022 +0100
Makefile: added test target.
---
Makefile | 5 ++++-
example-c/Makefile | 7 +++++--
example-go/Makefile | 7 +++++--
3 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 28cb5fe..7368b77 100644
--- a/Makefile
+++ b/Makefile
@@ -20,10 +20,13 @@
#
# SPDX-License-Identifier: AGPL3.0-or-later
-SUBDIRS = reclaimid
+SUBDIRS = example-c example-go
all:
@for i in $(SUBDIRS); do (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS)
all); done
clean:
@for i in $(SUBDIRS); do (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS)
clean); done
+
+test:
+ @for i in $(SUBDIRS); do (cd $$i; $(MAKE) $(MFLAGS) $(MYMAKEFLAGS)
test); done
diff --git a/example-c/Makefile b/example-c/Makefile
index d954b84..975c449 100644
--- a/example-c/Makefile
+++ b/example-c/Makefile
@@ -23,8 +23,11 @@
all: ${GOPATH}/bin/plugin_example_c.so
-clean: ${GOPATH}/bin/plugin_example_c.so
- rm -f $^
+clean:
+ rm -f ${GOPATH}/bin/plugin_example_c.so
+
+test:
+ go test -v ./...
${GOPATH}/bin/plugin_example_c.so: main.go gui.htpl plugin.h plugin.c
go build -buildmode=plugin -trimpath -gcflags="-N -l" -o $@ ./...
diff --git a/example-go/Makefile b/example-go/Makefile
index f4fa800..4c96c72 100644
--- a/example-go/Makefile
+++ b/example-go/Makefile
@@ -23,8 +23,11 @@
all: ${GOPATH}/bin/plugin_example_go.so
-clean: ${GOPATH}/bin/plugin_example_go.so
- rm -f $^
+clean:
+ rm -f ${GOPATH}/bin/plugin_example_go.so
+
+test:
+ go test -v ./...
${GOPATH}/bin/plugin_example_go.so: main.go gui.htpl
go build -buildmode=plugin -trimpath -gcflags="-N -l" -o $@ ./...
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.