Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plannotator-tui.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.7.0
4 changes: 2 additions & 2 deletions scripts/test-fetch-plannotator-tui.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ try {
$result = Invoke-Fetcher
Assert-True ($result.ExitCode -eq 0) "local override failed: $($result.Output)"
Assert-BytesEqual $source $destination "local override bytes differ"
Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.6.0") "local stamp differs"
Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.7.0") "local stamp differs"

$env:PLANNOTATOR_TUI_BIN = $null
$env:PLANNOTATOR_TUI_RELEASE_BASE = "http://127.0.0.1:1/must-not-be-requested"
Expand Down Expand Up @@ -120,7 +120,7 @@ try {
Assert-True ($result.ExitCode -eq 0) "download fixture failed: $($result.Output)"
Assert-True ($result.Output -match "x86_64-pc-windows-msvc") "x64 target was not selected"
Assert-BytesEqual $source $destination "downloaded destination bytes differ"
Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.6.0") "download stamp differs"
Assert-True ((Get-Content -LiteralPath $stamp -Raw) -ceq "0.7.0") "download stamp differs"

Set-Content -LiteralPath $stamp -NoNewline -Value "preserve-this-stamp"
$beforeHash = (Get-FileHash -Algorithm SHA256 -LiteralPath $destination).Hash
Expand Down
8 changes: 4 additions & 4 deletions scripts/test-fetch-plannotator-tui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cp "$repository_root/plannotator-tui.version" "$plugin_root/"
source_binary="$source_root/plannotator-tui local"
cat > "$source_binary" <<'EOF'
#!/usr/bin/env sh
printf 'plannotator-tui 0.6.0\n'
printf 'plannotator-tui 0.7.0\n'
EOF
chmod +x "$source_binary"
printf 'old destination' > "$plugin_root/bin/plannotator-tui.exe"
Expand All @@ -23,10 +23,10 @@ printf 'old-version' > "$plugin_root/bin/plannotator-tui.version"

PLANNOTATOR_TUI_BIN="$source_binary" bash "$plugin_root/scripts/fetch-plannotator-tui.sh"
cmp "$source_binary" "$plugin_root/bin/plannotator-tui.exe"
test "$(cat "$plugin_root/bin/plannotator-tui.version")" = 0.6.0
test "$(cat "$plugin_root/bin/plannotator-tui.version")" = 0.7.0
test ! -e "$plugin_root/bin/plannotator-tui"
test "$("$plugin_root/bin/plannotator-tui.exe" --version)" = "plannotator-tui 0.6.0"
test "$(bash "$plugin_root/scripts/plannotator-tui.sh" --version)" = "plannotator-tui 0.6.0"
test "$("$plugin_root/bin/plannotator-tui.exe" --version)" = "plannotator-tui 0.7.0"
test "$(bash "$plugin_root/scripts/plannotator-tui.sh" --version)" = "plannotator-tui 0.7.0"

output="$(bash "$plugin_root/scripts/fetch-plannotator-tui.sh")"
case "$output" in
Expand Down
4 changes: 2 additions & 2 deletions scripts/test-windows-full-manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def check_top_level_windows(path: Path, manifest: dict[str, object]) -> None:
def check_distributed(path: Path, version_path: Path) -> None:
manifest = load(path)
check_top_level_windows(path, manifest)
if version_path.read_text(encoding="utf-8").strip() != "0.6.0":
fail(version_path, "plannotator-tui.version is not 0.6.0")
if version_path.read_text(encoding="utf-8").strip() != "0.7.0":
fail(version_path, "plannotator-tui.version is not 0.7.0")

build_entries = builds(path, manifest)
if len(build_entries) != 1:
Expand Down
Loading