mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-2693 Erlang test leaves a lot of generated files
Patch: Roger Meier
This commit is contained in:
parent
aa99e0e2b8
commit
25c68f45da
2
.gitignore
vendored
2
.gitignore
vendored
@ -216,6 +216,8 @@ test-driver
|
||||
/lib/go/test/ThriftTest.thrift
|
||||
/test/log/
|
||||
/test/test.log
|
||||
/test/erl/.eunit/
|
||||
/test/erl/.generated
|
||||
/test/go/ThriftTest.thrift
|
||||
/test/go/gopath
|
||||
/test/go/pkg/
|
||||
|
@ -23,7 +23,7 @@ THRIFT_FILES = $(wildcard test/*.thrift) \
|
||||
|
||||
.generated: $(THRIFT_FILES)
|
||||
for f in $(THRIFT_FILES) ; do \
|
||||
$(THRIFT) --gen erl -out test $$f ; \
|
||||
$(THRIFT) --gen erl -o test $$f ; \
|
||||
done ; \
|
||||
touch .generated
|
||||
|
||||
@ -48,19 +48,7 @@ uninstall:
|
||||
|
||||
clean:
|
||||
rm -f .generated
|
||||
rm -f test/thrift1151_types.erl \
|
||||
test/thrift1151_types.hrl \
|
||||
test/thrift1151_constants.hrl \
|
||||
test/thrift1475_types.erl \
|
||||
test/thrift1475_types.hrl \
|
||||
test/thrift1475_constants.hrl \
|
||||
test/thriftTest_types.erl \
|
||||
test/thriftTest_types.hrl \
|
||||
test/thriftTest_constants.hrl \
|
||||
test/thriftTest_thrift.erl \
|
||||
test/thriftTest_thrift.hrl \
|
||||
test/secondService_thrift.erl \
|
||||
test/secondService_thrift.hrl
|
||||
rm -rf test/gen-erl/
|
||||
./rebar clean
|
||||
|
||||
maintainer-clean-local:
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
-export([start/0, start/1]).
|
||||
|
||||
-include("thriftTest_types.hrl").
|
||||
-include("gen-erl/thriftTest_types.hrl").
|
||||
|
||||
-record(options, {port = 9090,
|
||||
client_opts = []}).
|
||||
|
@ -22,7 +22,7 @@
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
-include("thriftTest_types.hrl").
|
||||
-include("gen-erl/thriftTest_types.hrl").
|
||||
|
||||
test_data() ->
|
||||
#xtruct {
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
-export([go/0, go/1, start_link/2, handle_function/2]).
|
||||
|
||||
-include("thriftTest_types.hrl").
|
||||
-include("gen-erl/thriftTest_types.hrl").
|
||||
|
||||
-record(options, {port = 9090,
|
||||
server_opts = []}).
|
||||
|
@ -1,6 +1,6 @@
|
||||
-module(test_thrift_1151).
|
||||
|
||||
-include("thrift1151_types.hrl").
|
||||
-include("gen-erl/thrift1151_types.hrl").
|
||||
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
Loading…
Reference in New Issue
Block a user