1#
2# %CopyrightBegin%
3#
4# Copyright Ericsson AB 2008-2020. All Rights Reserved.
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# %CopyrightEnd%
19#
20
21include $(ERL_TOP)/make/target.mk
22include $(ERL_TOP)/make/$(TARGET)/otp.mk
23
24# ----------------------------------------------------
25# Target Specs
26# ----------------------------------------------------
27
28MODULES= \
29	ct_test_support \
30	ct_test_support_eh \
31	ct_userconfig_callback \
32	telnet_server \
33	ct_smoke_test_SUITE \
34	ct_gen_conn_SUITE \
35	ct_priv_dir_SUITE \
36	ct_event_handler_SUITE \
37	ct_config_info_SUITE \
38	ct_groups_test_1_SUITE \
39	ct_groups_test_2_SUITE \
40	ct_group_info_SUITE \
41	ct_groups_spec_SUITE \
42	ct_sequence_1_SUITE \
43	ct_repeat_1_SUITE \
44	ct_repeat_testrun_SUITE \
45	ct_testspec_1_SUITE \
46	ct_testspec_2_SUITE \
47	ct_testspec_3_SUITE \
48	ct_skip_SUITE \
49	ct_error_SUITE \
50	ct_test_server_if_1_SUITE \
51	ct_config_SUITE \
52	ct_master_SUITE \
53	ct_misc_1_SUITE \
54	ct_hooks_SUITE \
55	ct_pre_post_test_io_SUITE \
56	ct_netconfc_SUITE \
57	ct_basic_html_SUITE \
58	ct_auto_compile_SUITE \
59	ct_verbosity_SUITE \
60	ct_shell_SUITE \
61	ct_system_error_SUITE \
62	ct_snmp_SUITE \
63	ct_group_leader_SUITE \
64	ct_cover_SUITE \
65	ct_cover_nomerge_SUITE \
66	ct_groups_search_SUITE \
67	ct_surefire_SUITE \
68	ct_telnet_SUITE \
69	erl2html2_SUITE \
70	test_server_SUITE \
71	test_server_test_lib \
72	ct_release_test_SUITE \
73	ct_log_SUITE \
74        ct_SUITE \
75	ct_keep_logs_SUITE \
76	ct_unicode_SUITE \
77	ct_auto_clean_SUITE \
78	ct_util_SUITE \
79	ct_tc_repeat_SUITE \
80	ct_property_test_SUITE
81
82ERL_FILES= $(MODULES:%=%.erl)
83HRL_FILES= test_server_test_lib.hrl
84
85TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
86INSTALL_PROGS= $(TARGET_FILES)
87
88EMAKEFILE=Emakefile
89COVERFILE=
90
91# ----------------------------------------------------
92# Release directory specification
93# ----------------------------------------------------
94RELSYSDIR = $(RELEASE_PATH)/common_test_test
95
96# ----------------------------------------------------
97# FLAGS
98# ----------------------------------------------------
99
100ERL_MAKE_FLAGS +=
101ERL_COMPILE_FLAGS +=
102
103EBIN = .
104
105# ----------------------------------------------------
106# Targets
107# ----------------------------------------------------
108
109#.PHONY: make_emakefile
110
111#make_emakefile:
112#	$(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES)\
113#	> $(EMAKEFILE)
114
115tests debug opt:
116	erl $(ERL_MAKE_FLAGS) -make
117
118clean:
119	rm -f $(TARGET_FILES)
120#	rm -f $(EMAKEFILE)
121	rm -f core
122
123docs:
124
125# ----------------------------------------------------
126# Release Target
127# ----------------------------------------------------
128include $(ERL_TOP)/make/otp_release_targets.mk
129
130release_spec: opt
131
132release_tests_spec:
133	$(INSTALL_DIR) "$(RELSYSDIR)"
134	$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(COVERFILE) "$(RELSYSDIR)"
135	$(INSTALL_DATA) common_test.spec common_test.cover "$(RELSYSDIR)"
136	chmod -R u+w "$(RELSYSDIR)"
137	@tar cf - *_SUITE_data property_test | (cd "$(RELSYSDIR)"; tar xf -)
138
139release_docs_spec:
140