From 420d804ea3915a12de0c12a9fd3952911f19be5b Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Tue, 29 Sep 2015 14:08:31 -0700 Subject: shiny and new test suite for eunit provider --- test/rebar_eunit_SUITE_data/basic_app.zip | Bin 0 -> 1735 bytes test/rebar_eunit_SUITE_data/deflate | 15 +++++++++++++++ test/rebar_eunit_SUITE_data/inflate | 15 +++++++++++++++ test/rebar_eunit_SUITE_data/multi_app.zip | Bin 0 -> 5482 bytes 4 files changed, 30 insertions(+) create mode 100644 test/rebar_eunit_SUITE_data/basic_app.zip create mode 100755 test/rebar_eunit_SUITE_data/deflate create mode 100755 test/rebar_eunit_SUITE_data/inflate create mode 100644 test/rebar_eunit_SUITE_data/multi_app.zip (limited to 'test/rebar_eunit_SUITE_data') diff --git a/test/rebar_eunit_SUITE_data/basic_app.zip b/test/rebar_eunit_SUITE_data/basic_app.zip new file mode 100644 index 0000000..0eaa0af Binary files /dev/null and b/test/rebar_eunit_SUITE_data/basic_app.zip differ diff --git a/test/rebar_eunit_SUITE_data/deflate b/test/rebar_eunit_SUITE_data/deflate new file mode 100755 index 0000000..368228f --- /dev/null +++ b/test/rebar_eunit_SUITE_data/deflate @@ -0,0 +1,15 @@ +#!/usr/bin/env escript + +main(["basic_app"]) -> + case filelib:is_dir("basic_app") of + true -> zip:create("basic_app.zip", ["basic_app"]), halt(0); + false -> io:format("unable to locate basic_app directory~n", []), halt(1) + end; +main(["multi_app"]) -> + case filelib:is_dir("multi_app") of + true -> zip:create("multi_app.zip", ["multi_app"]), halt(0); + false -> io:format("unable to locate multi_app directory~n", []), halt(1) + end, + halt(0); +main(_) -> + io:format("usage: deflate basic_app | multi_app~n", []), halt(1). \ No newline at end of file diff --git a/test/rebar_eunit_SUITE_data/inflate b/test/rebar_eunit_SUITE_data/inflate new file mode 100755 index 0000000..d402f80 --- /dev/null +++ b/test/rebar_eunit_SUITE_data/inflate @@ -0,0 +1,15 @@ +#!/usr/bin/env escript + +main(["basic_app"]) -> + case filelib:is_file("basic_app.zip") of + true -> zip:unzip("basic_app.zip"), halt(0); + false -> io:format("unable to locate basic_app.zip~n", []), halt(1) + end; +main(["multi_app"]) -> + case filelib:is_file("multi_app.zip") of + true -> zip:unzip("multi_app.zip"), halt(0); + false -> io:format("unable to locate multi_app.zip~n", []), halt(1) + end, + halt(0); +main(_) -> + io:format("usage: inflate basic_app | multi_app~n", []), halt(1). \ No newline at end of file diff --git a/test/rebar_eunit_SUITE_data/multi_app.zip b/test/rebar_eunit_SUITE_data/multi_app.zip new file mode 100644 index 0000000..36bf9a6 Binary files /dev/null and b/test/rebar_eunit_SUITE_data/multi_app.zip differ -- cgit v1.1