4
%% Copyright Ericsson AB 2004-2009. All Rights Reserved.
4
%% Copyright Ericsson AB 2004-2011. All Rights Reserved.
6
6
%% The contents of this file are subject to the Erlang Public License,
7
7
%% Version 1.1, (the "License"); you may not use this file except in
8
8
%% compliance with the License. You should have received a copy of the
9
9
%% Erlang Public License along with this software. If not, it can be
10
10
%% retrieved online at http://www.erlang.org/.
12
12
%% Software distributed under the License is distributed on an "AS IS"
13
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
%% the License for the specific language governing rights and limitations
15
15
%% under the License.
19
19
%%%----------------------------------------------------------------
20
20
%%% Purpose:Test Suite for the 'qlc' module.
21
21
%%%-----------------------------------------------------------------
22
22
-module(qlc_SUITE).
25
26
-define(QLCs, "qlc").
51
52
-include_lib("stdlib/include/ms_transform.hrl").
53
-export([all/1, init_per_testcase/2, fin_per_testcase/2]).
55
-export([parse_transform/1,
56
badarg/1, nested_qlc/1, unused_var/1, lc/1, fun_clauses/1,
57
filter_var/1, single/1, exported_var/1, generator_vars/1,
58
nomatch/1, errors/1, pattern/1,
61
eval/1, cursor/1, fold/1, eval_unique/1, eval_cache/1, append/1,
62
evaluator/1, string_to_handle/1, table/1, process_dies/1,
63
sort/1, keysort/1, filesort/1, cache/1, cache_list/1, filter/1,
64
info/1, nested_info/1, lookup1/1, lookup2/1, lookup_rec/1,
65
indices/1, pre_fun/1, skip_filters/1,
71
join_option/1, join_filter/1, join_lookup/1, join_merge/1,
72
join_sort/1, join_complex/1,
75
otp_5644/1, otp_5195/1, otp_6038_bug/1, otp_6359/1, otp_6562/1,
76
otp_6590/1, otp_6673/1, otp_6964/1, otp_7114/1, otp_7238/1,
77
otp_7232/1, otp_7552/1, otp_6674/1, otp_7714/1,
82
backward/1, forward/1]).
54
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
55
init_per_group/2,end_per_group/2,
56
init_per_testcase/2, end_per_testcase/2]).
59
badarg/1, nested_qlc/1, unused_var/1, lc/1, fun_clauses/1,
60
filter_var/1, single/1, exported_var/1, generator_vars/1,
61
nomatch/1, errors/1, pattern/1,
63
eval/1, cursor/1, fold/1, eval_unique/1, eval_cache/1, append/1,
64
evaluator/1, string_to_handle/1, table/1, process_dies/1,
65
sort/1, keysort/1, filesort/1, cache/1, cache_list/1, filter/1,
66
info/1, nested_info/1, lookup1/1, lookup2/1, lookup_rec/1,
67
indices/1, pre_fun/1, skip_filters/1,
71
join_option/1, join_filter/1, join_lookup/1, join_merge/1,
72
join_sort/1, join_complex/1,
74
otp_5644/1, otp_5195/1, otp_6038_bug/1, otp_6359/1, otp_6562/1,
75
otp_6590/1, otp_6673/1, otp_6964/1, otp_7114/1, otp_7238/1,
76
otp_7232/1, otp_7552/1, otp_6674/1, otp_7714/1,
80
backward/1, forward/1]).
84
82
%% Internal exports.
85
83
-export([bad_table_throw/1, bad_table_exit/1, default_table/1, bad_table/1,
113
111
?line Dog = ?t:timetrap(?default_timeout),
114
112
[{?TESTCASE, Case}, {watchdog, Dog} | Config].
116
fin_per_testcase(_Case, _Config) ->
114
end_per_testcase(_Case, _Config) ->
117
115
Dog = ?config(watchdog, _Config),
118
116
test_server:timetrap_cancel(Dog),
122
[parse_transform, evaluation, table_impls, join, tickets, manpage, compat].
124
parse_transform(suite) ->
125
[badarg, nested_qlc, unused_var, lc, fun_clauses, filter_var,
126
single, exported_var, generator_vars, nomatch, errors, pattern].
119
suite() -> [{ct_hooks,[ts_install_cth]}].
122
[{group, parse_transform}, {group, evaluation},
123
{group, table_impls}, {group, join}, {group, tickets},
124
manpage, {group, compat}].
127
[{parse_transform, [],
128
[badarg, nested_qlc, unused_var, lc, fun_clauses,
129
filter_var, single, exported_var, generator_vars,
130
nomatch, errors, pattern]},
132
[eval, cursor, fold, eval_unique, eval_cache, append,
133
evaluator, string_to_handle, table, process_dies, sort,
134
keysort, filesort, cache, cache_list, filter, info,
135
nested_info, lookup1, lookup2, lookup_rec, indices,
136
pre_fun, skip_filters]},
137
{table_impls, [], [ets, dets]},
139
[join_option, join_filter, join_lookup, join_merge,
140
join_sort, join_complex]},
142
[otp_5644, otp_5195, otp_6038_bug, otp_6359, otp_6562,
143
otp_6590, otp_6673, otp_6964, otp_7114, otp_7232,
144
otp_7238, otp_7552, otp_6674, otp_7714]},
145
{compat, [], [backward, forward]}].
147
init_per_suite(Config) ->
150
end_per_suite(_Config) ->
153
init_per_group(_GroupName, Config) ->
156
end_per_group(_GroupName, Config) ->
460
491
-record(k, {t,v}).\n">>, Ts),
464
[eval, cursor, fold, eval_unique, eval_cache, append, evaluator,
465
string_to_handle, table, process_dies, sort, keysort, filesort, cache,
466
cache_list, filter, info, nested_info, lookup1, lookup2, lookup_rec,
467
indices, pre_fun, skip_filters].