File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
3+
4+ REPO_ROOT = Path (__file__ ).resolve ().parent .parent
5+
6+
7+ def test_windows_installers_do_not_reference_legacy_repositories ():
8+ install_ps1 = (REPO_ROOT / "scripts" / "install.ps1" ).read_text (encoding = "utf-8" )
9+ install_cmd = (REPO_ROOT / "scripts" / "install.cmd" ).read_text (encoding = "utf-8" )
10+
11+ for source in (install_ps1 , install_cmd ):
12+ assert "morph-labs/gauss-agent" not in source
13+ assert "NousResearch/gauss-agent" not in source
14+
15+
16+ def test_windows_installers_use_current_bootstrap_targets ():
17+ install_ps1 = (REPO_ROOT / "scripts" / "install.ps1" ).read_text (encoding = "utf-8" )
18+ install_cmd = (REPO_ROOT / "scripts" / "install.cmd" ).read_text (encoding = "utf-8" )
19+
20+ assert '$DefaultRepoUrl = "https://github.com/math-inc/OpenGauss.git"' in install_ps1
21+ assert 'powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0install.ps1" %*' in install_cmd
You can’t perform that action at this time.
0 commit comments