Browse files

Apply patch by Tino Breddin (tolbrino) to rebarize repo.

  • Loading branch information...
1 parent 2abdbba commit 59a5939e7815caa77737230fd286363b53c5e65c @rustyio rustyio committed with Torbjorn Tornkvist Jan 14, 2011
Showing with 19 additions and 67 deletions.
  1. +4 −1 .gitignore
  2. +0 −22 Emakefile
  3. +3 −12 Makefile
  4. +0 −1 ebin/.gitignore
  5. +0 −22 ebin/simple_bridge.app
  6. BIN rebar
  7. +4 −0 rebar.config
  8. +6 −0 src/simple_bridge.app.src
  9. +0 −6 test/eunit_helper.erl
  10. +2 −2 test/utils.erl
  11. +0 −1 test_ebin/.gitignore
View
5 .gitignore
@@ -1 +1,4 @@
-erl_crash.dump
+erl_crash.dump
+.eunit/
+*.beam
+*.app
View
22 Emakefile
@@ -1,22 +0,0 @@
-% Compile Nitrogen Files.
-{
- [
- "./src/*",
- "./src/*/*"
- ], [
- debug_info,
- { i, "./include" },
- { outdir, "./ebin" }
- ]
-}.
-
-{
- [
- "./test/*"
- ],
- [
- debug_info,
- { i, "./include" },
- { outdir, "./test_ebin" }
- ]
-}.
View
15 Makefile
@@ -1,19 +1,10 @@
all: compile
compile:
- @mkdir -p ebin
- @erl \
- -pa ./ebin \
- -make
+ @rebar compile
clean:
- @rm -rf ./ebin/*.beam
- @rm -rf ./test_ebin/*.beam
+ @rebar clean
test: compile
- @erl \
- -noshell \
- -pa ./ebin \
- -pa ./test_ebin \
- -s eunit_helper start \
- -s init stop
+ @rebar eunit
View
1 ebin/.gitignore
@@ -1 +0,0 @@
-*.beam
View
22 ebin/simple_bridge.app
@@ -1,22 +0,0 @@
-{application, simple_bridge, [
- {description, "SimpleBridge - Common Interface to Erlang HTTP Servers"},
- {vsn, "1.1.0"},
- {modules, [
- inets_request_bridge,
- inets_response_bridge,
- misultin_request_bridge,
- misultin_response_bridge,
- mochiweb_request_bridge,
- mochiweb_response_bridge,
- simple_bridge,
- simple_bridge_multipart,
- simple_bridge_request,
- simple_bridge_request_wrapper,
- simple_bridge_response,
- simple_bridge_response_wrapper,
- yaws_request_bridge,
- yaws_response_bridge
- ]},
- {applications, [kernel, stdlib, sasl]},
- {registered, []}
-]}.
View
BIN rebar
Binary file not shown.
View
4 rebar.config
@@ -0,0 +1,4 @@
+% -*- Erlang -*-
+{erl_opts, [fail_on_warning, debug_info]}.
+{cover_enabled, true}.
+{xref_checks, [undefined_function_calls]}.
View
6 src/simple_bridge.app.src
@@ -0,0 +1,6 @@
+{application, simple_bridge, [
+ {description, "SimpleBridge - Common Interface to Erlang HTTP Servers"},
+ {vsn, "1.1.1"},
+ {applications, [kernel, stdlib, sasl]},
+ {registered, []}
+]}.
View
6 test/eunit_helper.erl
@@ -1,6 +0,0 @@
--module (eunit_helper).
--export ([start/0]).
-
-start() ->
- eunit:test(inets_request_bridge),
- eunit:test(inets_response_bridge).
View
4 test/utils.erl
@@ -4,15 +4,15 @@
make_inets_get_bridge() ->
% Construct the inets bridge...
- {ok, [InetsRequest] } = file:consult("data/inets_get_request_data"),
+ {ok, [InetsRequest] } = file:consult("../data/inets_get_request_data"),
{ok, Socket} = gen_tcp:connect(?PEER_IP, ?PEER_PORT, []),
InetsRequest1 = inject_socket(InetsRequest, Socket),
InetsBridge = simple_bridge:make_request(inets_request_bridge, InetsRequest1),
InetsBridge.
make_inets_post_bridge() ->
% Construct the inets bridge...
- {ok, [InetsRequest] } = file:consult("data/inets_post_request_data"),
+ {ok, [InetsRequest] } = file:consult("../data/inets_post_request_data"),
{ok, Socket} = gen_tcp:connect(?PEER_IP, ?PEER_PORT, []),
InetsRequest1 = inject_socket(InetsRequest, Socket),
InetsBridge = simple_bridge:make_request(inets_request_bridge, InetsRequest1),
View
1 test_ebin/.gitignore
@@ -1 +0,0 @@
-*.beam

0 comments on commit 59a5939

Please sign in to comment.