aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/test/leex_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2010-10-12 11:02:43 +0200
committerLukas Larsson <[email protected]>2011-02-17 17:28:30 +0100
commitc61a61372c62183f7f75811fd77734b618ee929b (patch)
tree531c3b2b3dc710164a2a12624775c8e87813a490 /lib/parsetools/test/leex_SUITE.erl
parent0c640f2de05c1a540d4b398de0f1891dfad29cc3 (diff)
downloadotp-c61a61372c62183f7f75811fd77734b618ee929b.tar.gz
otp-c61a61372c62183f7f75811fd77734b618ee929b.tar.bz2
otp-c61a61372c62183f7f75811fd77734b618ee929b.zip
Update parsetools tests to conform with common_test standard
Diffstat (limited to 'lib/parsetools/test/leex_SUITE.erl')
-rw-r--r--lib/parsetools/test/leex_SUITE.erl26
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/parsetools/test/leex_SUITE.erl b/lib/parsetools/test/leex_SUITE.erl
index 5e210cc8eb..8b2cf1e4f3 100644
--- a/lib/parsetools/test/leex_SUITE.erl
+++ b/lib/parsetools/test/leex_SUITE.erl
@@ -30,16 +30,16 @@
-define(privdir, "leex_SUITE_priv").
-define(t, test_server).
-else.
--include("test_server.hrl").
+-include_lib("test_server/include/test_server.hrl").
-define(datadir, ?config(data_dir, Config)).
-define(privdir, ?config(priv_dir, Config)).
-endif.
--export([all/1, init_per_testcase/2, end_per_testcase/2]).
+-export([all/0,groups/0,init_per_group/2,end_per_group/2, init_per_testcase/2, end_per_testcase/2]).
--export([checks/1,
+-export([
file/1, compile/1, syntax/1,
- examples/1,
+
pt/1, man/1, ex/1, ex2/1, not_yet/1]).
% Default timetrap timeout (set in init_per_testcase).
@@ -54,10 +54,20 @@ end_per_testcase(_Case, Config) ->
test_server:timetrap_cancel(Dog),
ok.
-all(suite) -> [checks, examples].
+all() ->
+[{group, checks}, {group, examples}].
+
+groups() ->
+ [{checks, [], [file, compile, syntax]},
+ {examples, [], [pt, man, ex, ex2, not_yet]}].
+
+init_per_group(_GroupName, Config) ->
+ Config.
+
+end_per_group(_GroupName, Config) ->
+ Config.
+
-checks(suite) ->
- [file, compile, syntax].
file(doc) ->
"Bad files and options.";
@@ -330,8 +340,6 @@ syntax(Config) when is_list(Config) ->
leex:file(Filename, Ret),
ok.
-examples(suite) ->
- [pt,man,ex,ex2,not_yet].
pt(doc) ->
"Pushing back characters.";