@@ -57,7 +57,7 @@ def test_create_ssh_runner_only_host():
57
57
@pytest .mark .skipif (ssh_skip (), reason = "SSH environment have to be configured" )
58
58
def test_create_ssh_runner_with_config ():
59
59
"""
60
- Tests the ``conan create . ``
60
+ Tests the ``conan create . `` with ssh config file
61
61
"""
62
62
client = TestClient ()
63
63
@@ -125,3 +125,35 @@ def test_create_ssh_runner_with_config():
125
125
assert "Restore: pkg/2.0 in pkgc6abef0178849" in client .out
126
126
assert "Restore: pkg/2.0:8631cf963dbbb4d7a378a64a6fd1dc57558bc2fe" in client .out
127
127
assert "Restore: pkg/2.0:8631cf963dbbb4d7a378a64a6fd1dc57558bc2fe metadata" in client .out
128
+
129
+ @pytest .mark .ssh_runner
130
+ @pytest .mark .skipif (ssh_skip (), reason = "SSH environment have to be configured" )
131
+ def test_create_ssh_runner_default_profile ():
132
+ """
133
+ Tests the ``conan create . `` without build profile
134
+ """
135
+ client = TestClient ()
136
+
137
+ profile_host = textwrap .dedent (f"""\
138
+ [settings]
139
+ arch={{{{ detect_api.detect_arch() }}}}
140
+ build_type=Release
141
+ compiler=gcc
142
+ compiler.cppstd=gnu17
143
+ compiler.libcxx=libstdc++11
144
+ compiler.version=11
145
+ os=Linux
146
+ [runner]
147
+ type=ssh
148
+ ssh.host=localhost
149
+ """ )
150
+
151
+ client .save ({"host" : profile_host , "build" : profile_host })
152
+ client .run ("new cmake_lib -d name=pkg -d version=2.0" )
153
+ client .run ("create . -pr:h host -vverbose" )
154
+
155
+ assert "Copying default profile: " in client .out
156
+ assert "[100%] Built target example" in client .out
157
+ assert "Restore: pkg/2.0 in pkgc6abef0178849" in client .out
158
+ assert "Restore: pkg/2.0:8631cf963dbbb4d7a378a64a6fd1dc57558bc2fe" in client .out
159
+ assert "Restore: pkg/2.0:8631cf963dbbb4d7a378a64a6fd1dc57558bc2fe metadata" in client .out
0 commit comments