aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_SUITE.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-12-20 16:43:08 +0100
committerSiri Hansen <[email protected]>2016-12-20 16:43:08 +0100
commitec306c1a17b32995fc78195daec018219baed8c7 (patch)
tree86a76f89a16db2351400203a35834494c768504a /lib/common_test/test/ct_SUITE.erl
parentf0152387b96dc0c2ce5ecf7805fc435cb400356e (diff)
downloadotp-ec306c1a17b32995fc78195daec018219baed8c7.tar.gz
otp-ec306c1a17b32995fc78195daec018219baed8c7.tar.bz2
otp-ec306c1a17b32995fc78195daec018219baed8c7.zip
[ct] Add tests for .app and .appup files
Diffstat (limited to 'lib/common_test/test/ct_SUITE.erl')
-rw-r--r--lib/common_test/test/ct_SUITE.erl53
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_SUITE.erl b/lib/common_test/test/ct_SUITE.erl
new file mode 100644
index 0000000000..eb98c2544f
--- /dev/null
+++ b/lib/common_test/test/ct_SUITE.erl
@@ -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).
+