Skip to content

Commit

Permalink
Merge branch 'siri/ct/add_app_tests' into maint
Browse files Browse the repository at this point in the history
* siri/ct/add_app_tests:
  Add ct_default_gl to common_test.app.src
  [ct] Add tests for .app and .appup files
  • Loading branch information
sirihansen committed Jan 11, 2017
2 parents 605a462 + 11d938b commit 947e0e1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/common_test/src/common_test.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{vsn, "%VSN%"},
{modules, [ct_cover,
ct,
ct_default_gl,
ct_event,
ct_framework,
ct_ftp,
Expand Down
3 changes: 2 additions & 1 deletion lib/common_test/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ MODULES= \
test_server_SUITE \
test_server_test_lib \
ct_release_test_SUITE \
ct_log_SUITE
ct_log_SUITE \
ct_SUITE

ERL_FILES= $(MODULES:%=%.erl)
HRL_FILES= test_server_test_lib.hrl
Expand Down
53 changes: 53 additions & 0 deletions lib/common_test/test/ct_SUITE.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2009-2016. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
-module(ct_SUITE).

-compile(export_all).

-include_lib("common_test/include/ct.hrl").

suite() ->
[{timetrap,{seconds,30}}].

init_per_suite(Config) ->
Config.

end_per_suite(_Config) ->
ok.

init_per_testcase(_TestCase, Config) ->
Config.

end_per_testcase(_TestCase, _Config) ->
ok.

all() ->
[app_file, appup_file].

%%%-----------------------------------------------------------------
%%% Test cases

app_file(_Config) ->
ok = test_server:app_test(common_test),
ok.

appup_file(_Config) ->
ok = test_server:appup_test(common_test).

0 comments on commit 947e0e1

Please sign in to comment.