-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build NIF C code also on tests #244
Conversation
* This patch ensures building the NIF code under`c_src` even on running `make tests` * When `c_src/Makefile` exists: * Split the Makefile invocation dependency into `app-c_src` * Invoke `app-c_src` also in `test-build` as well as `app` * When `c_src/Makefile` does not exist: * Add `$(C_SRC_ENV) $(C_SRC_OUTPUT)` dependencies to `test-build`
Looks good, will test after breakfast. |
Manual testing works, now confirming that it works with all packages in the index. |
All good, merged! Thanks! |
By the way @jj1bdx you may want to try downloading the erlang.mk repository and running 'make check' to see if there are issues on FreeBSD. It will take more than half an hour to compile everything though. :-) |
Thx for merge :) On FreeBSD, any dependency to |
I've tested 'make check' with aliasing
|
Note: the
|
And FreeBSD |
I have Make 4.1 here also. I will fix a few 'make' into '$(MAKE)' and report back. |
@essen Great. I can't figure out why the current directories between GNU Make 3.81 and 4.1 after |
That should do it: a294038. You shouldn't need the alias now. Not sure what you mean about current directories, can you give more details? |
Thx. The error message still remains the same, however. The entering/leaving of the directories show different values in the results of GNU Make 3.81 on OS X and GNU Make 4.1 on FreeBSD. Note that the error messages are shown after the control returns to the shell on 4.1. Also see the On GNU Make 3.81 on OS X (10.10.3 with XCode 6.3) with
On GNU Make 4.1 on FreeBSD:
|
Does it do the same if you do this instead? Parallel should be disabled but you never know... gmake check -j 1 If not then I guess I will set me up some FreeBSD this week-end. |
I also suspect some interpretation change of
|
Yep no clue. |
On FreeBSD with GNU Make 4.1, |
|
Now I figured it out. I'll make a separate pull request and I will close this. diff --git a/test/Makefile b/test/Makefile index 1b60371..a77b307 100644 --- a/test/Makefile +++ b/test/Makefile @@ -14,12 +14,12 @@ V ?= 0 ifeq ($V,0) # Show info messages only t = @ - v = V=0 &>/dev/null + v = V=0 >/dev/null 2>&1 i = @echo else ifeq ($V,1) # Show test commands t = - v = V=0 &>/dev/null + v = V=0 >/dev/null 2>&1 i = @echo == else ifeq ($V,2) # Show briefly what erlang.mk is doing |
Cool. So everything 'make check' does runs OK? It compiles everything fine? :-) |
eleveldb doesn't build and stop. I've reported this. See basho/eleveldb#97 This is not an issue of erlang.mk, I guess. |
Yeah nothing I can do about that. |
c_src
even on running
make tests
c_src/Makefile
exists:app-c_src
app-c_src
also intest-build
as well asapp
c_src/Makefile
does not exist:$(C_SRC_ENV) $(C_SRC_OUTPUT)
dependencies totest-build