test: Don't wait for SSL question if built without SSL

And don't hardcode 6667 in preparation for #2022
This commit is contained in:
Alexey Sokolov
2026-06-08 21:54:17 +01:00
parent 15c94bef77
commit 197a235764
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -46,8 +46,10 @@ void WriteConfig(QString path) {
p.ReadUntil("Set up a network?"); p.Write();
p.ReadUntil("Name [libera]"); p.Write("test");
p.ReadUntil("Server host (host only)"); p.Write("unix:" + path.toUtf8() + "/inttest.ircd");
#if HAVE_LIBSSL
p.ReadUntil("Server uses SSL?"); p.Write();
p.ReadUntil("6667"); p.Write();
#endif
p.ReadUntil("Server port"); p.Write();
p.ReadUntil("password"); p.Write();
p.ReadUntil("channels"); p.Write();
p.ReadUntil("Launch ZNC now?"); p.Write("no");
@@ -20,5 +20,6 @@
#cmakedefine WANT_PYTHON 1
#cmakedefine WANT_PERL 1
#cmakedefine HAVE_I18N 1
#cmakedefine HAVE_LIBSSL 1
#endif /* ZNCTESTCONFIG_H */