Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transitioning from regression_test.py to Makefile
Note: Depends upon picking up new jrpcclient/regression_test.py option [i.e. be sure to "git submodule update" TODO: Need to check on test_middleware() step (if it's still needed) Need to handle non-CentOS case (i.e. Ubuntu) Need to handle "--deb-builder" case (no "sudo -E" on install steps)
- Loading branch information
Ed McClanahan
committed
Dec 24, 2017
1 parent
5fdc503
commit 5f908d7
Showing
31 changed files
with
211 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# GoMakefile is a template to be included by Go package Makefile's in this repo | ||
|
||
all: fmt install generate test vet | ||
|
||
.PHONY: all bench clean cover fmt generate install test vet | ||
|
||
bench: | ||
go test -bench $(gosubdir) | ||
|
||
clean: | ||
go clean -i $(gosubdir) | ||
|
||
cover: | ||
go test -cover $(gosubdir) | ||
|
||
fmt: | ||
go fmt $(gosubdir) | ||
|
||
generate: | ||
go generate $(gosubdir) | ||
|
||
install: | ||
go install -gcflags "-N -l" $(gosubdir) | ||
|
||
test: | ||
go test $(gosubdir) | ||
|
||
vet: | ||
go vet $(gosubdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
gosubdirs = \ | ||
blunder \ | ||
cleanproxyfs \ | ||
conf \ | ||
dlm \ | ||
fs \ | ||
fsworkout \ | ||
fuse \ | ||
headhunter \ | ||
httpserver \ | ||
inode \ | ||
inodeworkout \ | ||
jrpcfs \ | ||
logger \ | ||
mkproxyfs mkproxyfs/mkproxyfs \ | ||
pfs-stress \ | ||
pfsconfjson pfsconfjsonpacked \ | ||
pfsworkout \ | ||
platform \ | ||
proxyfsd proxyfsd/proxyfsd \ | ||
ramswift ramswift/ramswift \ | ||
stats \ | ||
statslogger \ | ||
swiftclient \ | ||
utils | ||
|
||
uname := $(shell uname) | ||
|
||
ifeq ($(uname),Linux) | ||
all: fmt install stringer generate test vet c-clean c-build c-install c-test | ||
else | ||
all: fmt install stringer generate test vet | ||
endif | ||
|
||
.PHONY: all bench c-build c-clean c-install c-test clean cover fmt generate install stringer test vet | ||
|
||
bench: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir bench; \ | ||
done | ||
|
||
c-build: | ||
$(MAKE) --no-print-directory -C jrpcclient all | ||
$(MAKE) --no-print-directory -C vfs | ||
|
||
c-clean: | ||
$(MAKE) --no-print-directory -C jrpcclient clean | ||
$(MAKE) --no-print-directory -C vfs clean | ||
|
||
c-install: | ||
# TODO: For both jrpcclient & vfs: | ||
# Need to handle deb-builder case that doesn't want to use "sudo -E" to invoke $(MAKE) | ||
# Need to handle non-CentOS case that wants to just do $(MAKE) install | ||
sudo -E $(MAKE) --no-print-directory -C jrpcclient installcentos | ||
sudo -E $(MAKE) --no-print-directory -C vfs installcentos | ||
|
||
c-test: | ||
cd jrpcclient ; ./regression_test.py --just-test-libs ; cd - | ||
|
||
clean: | ||
rm -f $(GOPATH)/bin/stringer | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir clean; \ | ||
done | ||
|
||
cover: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir cover; \ | ||
done | ||
|
||
fmt: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir fmt; \ | ||
done | ||
|
||
generate: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir generate; \ | ||
done | ||
|
||
install: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir install; \ | ||
done | ||
|
||
stringer: | ||
go install github.com/swiftstack/ProxyFS/vendor/golang.org/x/tools/cmd/stringer | ||
|
||
test: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir test; \ | ||
done | ||
|
||
vet: | ||
@for gosubdir in $(gosubdirs); do \ | ||
$(MAKE) --no-print-directory -C $$gosubdir vet; \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/blunder | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/cleanproxyfs | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/conf | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/dlm | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/fs | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/fsworkout | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/fuse | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/headhunter | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/httpserver | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/inode | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/inodeworkout | ||
|
||
include ../GoMakefile |
Submodule jrpcclient
updated
from becf79 to a0bf87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/jrpcfs | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/logger | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/mkproxyfs | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/mkproxyfs/mkproxyfs | ||
|
||
include ../../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/pfs-stress | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/pfsconfjson | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/pfsconfjsonpacked | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/pfsworkout | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/platform | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/proxyfsd | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/proxyfsd/proxyfsd | ||
|
||
include ../../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/ramswift | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/ramswift/ramswift | ||
|
||
include ../../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/stats | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/statslogger | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/swiftclient | ||
|
||
include ../GoMakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gosubdir := github.com/swiftstack/ProxyFS/utils | ||
|
||
include ../GoMakefile |