Permalink
Browse files

Add ctest directory for Common Test suites

  • Loading branch information...
1 parent 8c4cc76 commit 247a4b733beb4f4c7dd4b473c881a4862ce5861e @jaynel jaynel committed Apr 8, 2012
Showing with 34 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 Makefile
  3. +4 −0 ctest/coop.spec
  4. +21 −0 ctest/coop/coop_SUITE.erl
  5. +3 −0 ctest/logs/README
View
@@ -1,4 +1,5 @@
.eunit
+*.beam
deps
ebin
*~
View
@@ -9,7 +9,7 @@ compile:
@./rebar compile
dialyze: all
- dialyzer -Wrace_conditions ebin
+ @dialyzer -Wrace_conditions ebin
gc: crash
@echo 'Removing all emacs backup files'
@@ -38,4 +38,7 @@ test: all
ERL_LIBS=$(CURDIR):$(CURDIR)/deps ./rebar skip_deps=true eunit
eunit:
- make test
+ @make test
+
+ct:
+ @(cd ctest; ct_run -spec coop.spec)
View
@@ -0,0 +1,4 @@
+{alias, coop, "./coop/"}.
+{logdir, "./logs/"}.
+
+{suites, coop, all}.
View
@@ -0,0 +1,21 @@
+-module(coop_SUITE).
+
+-include_lib("common_test/include/ct.hrl").
+
+-export([all/0, init_per_testcase/2, end_per_testcase/2]).
+-export([pipeline/1]).
+
+all() -> [pipeline].
+
+%% init_per_suite(_Config) -> ok.
+%% init_per_group(Name, _Config) -> ok.
+init_per_testcase(pipeline, _Config) ->
+ ok.
+
+%% end_per_suite(_Config) -> ok.
+%% end_per_group(Name, _Config) -> ok.
+end_per_testcase(pipeline, _Config) ->
+ ok.
+
+pipeline(_Config) ->
+ 1 = 1.
View
@@ -0,0 +1,3 @@
+Present to allow git to checkin the logs directory.
+Temporary files are written here to record the results
+of Common Test executions.

0 comments on commit 247a4b7

Please sign in to comment.