THRIFT-2693 Erlang test leaves a lot of generated files

Patch: Roger Meier
This commit is contained in:
Roger Meier 2014-09-29 22:12:50 +02:00
parent aa99e0e2b8
commit 25c68f45da
6 changed files with 8 additions and 18 deletions

2
.gitignore vendored
View File

@ -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/

View File

@ -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:

View File

@ -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 = []}).

View File

@ -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 {

View File

@ -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 = []}).

View File

@ -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").