diff options
author | Luca Casonato <hello@lcas.dev> | 2024-09-18 14:08:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 14:08:21 +0200 |
commit | 42e3a49cc7d20ea8f9ba8984c93a47b5c7174f0f (patch) | |
tree | ba2d99a8d64dd412118e4fd450406c614e429085 /tests/specs | |
parent | 45b17947782986d2b3f2d9f192fdc079b468b4b0 (diff) |
tests: re-enable upgrade tests (#25680)
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/upgrade/canary/__test__.jsonc | 23 | ||||
-rw-r--r-- | tests/specs/upgrade/canary/upgrade.out | 10 | ||||
-rw-r--r-- | tests/specs/upgrade/canary/version.out | 3 | ||||
-rw-r--r-- | tests/specs/upgrade/out/__test__.jsonc | 29 | ||||
-rw-r--r-- | tests/specs/upgrade/out/upgrade.out | 14 | ||||
-rw-r--r-- | tests/specs/upgrade/out/version.out | 3 | ||||
-rw-r--r-- | tests/specs/upgrade/space_in_tmp/__test__.jsonc | 30 | ||||
-rw-r--r-- | tests/specs/upgrade/space_in_tmp/upgrade.out | 14 | ||||
-rw-r--r-- | tests/specs/upgrade/space_in_tmp/version.out | 3 | ||||
-rw-r--r-- | tests/specs/upgrade/specific_canary/__test__.jsonc | 23 | ||||
-rw-r--r-- | tests/specs/upgrade/specific_canary/upgrade.out | 6 | ||||
-rw-r--r-- | tests/specs/upgrade/specific_canary/version.out | 3 | ||||
-rw-r--r-- | tests/specs/upgrade/specific_stable/__test__.jsonc | 23 | ||||
-rw-r--r-- | tests/specs/upgrade/specific_stable/upgrade.out | 14 | ||||
-rw-r--r-- | tests/specs/upgrade/specific_stable/version.out | 3 | ||||
-rw-r--r-- | tests/specs/upgrade/stable/__test__.jsonc | 23 | ||||
-rw-r--r-- | tests/specs/upgrade/stable/upgrade.out | 10 | ||||
-rw-r--r-- | tests/specs/upgrade/stable/version.out | 3 |
18 files changed, 237 insertions, 0 deletions
diff --git a/tests/specs/upgrade/canary/__test__.jsonc b/tests/specs/upgrade/canary/__test__.jsonc new file mode 100644 index 000000000..1c4ad0a2d --- /dev/null +++ b/tests/specs/upgrade/canary/__test__.jsonc @@ -0,0 +1,23 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "eval Deno.copyFileSync(Deno.execPath(),'./deno_copy');", + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy", + "args": "upgrade --canary", + "output": "upgrade.out", + "exitCode": 0, + "flaky": true + }, + { + "commandName": "./deno_copy", + "args": "--version", + "exitCode": 0, + "output": "version.out" + } + ] +} diff --git a/tests/specs/upgrade/canary/upgrade.out b/tests/specs/upgrade/canary/upgrade.out new file mode 100644 index 000000000..07daf03d5 --- /dev/null +++ b/tests/specs/upgrade/canary/upgrade.out @@ -0,0 +1,10 @@ +Current Deno version: [WILDCARD] +Looking up canary version + +Found latest canary version [WILDCARD] + +Downloading https://dl.deno.land/canary/[WILDCARD]/deno-[WILDCARD].zip +Deno is upgrading to version [WILDCARD] + +Upgraded successfully to Deno [WILDCARD] (canary) + diff --git a/tests/specs/upgrade/canary/version.out b/tests/specs/upgrade/canary/version.out new file mode 100644 index 000000000..0cfbb01c4 --- /dev/null +++ b/tests/specs/upgrade/canary/version.out @@ -0,0 +1,3 @@ +deno [WILDCARD]+[WILDCARD] (canary, release, [WILDCARD]) +v8 [WILDCARD] +typescript [WILDCARD] diff --git a/tests/specs/upgrade/out/__test__.jsonc b/tests/specs/upgrade/out/__test__.jsonc new file mode 100644 index 000000000..1365ec563 --- /dev/null +++ b/tests/specs/upgrade/out/__test__.jsonc @@ -0,0 +1,29 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "eval Deno.copyFileSync(Deno.execPath(),'./deno_copy');", + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy", + "args": "upgrade --force --version 1.43.2 --output ./deno_copy2", + "output": "upgrade.out", + "exitCode": 0, + "flaky": true + }, + { + "commandName": "./deno_copy", + "args": ["eval", "if (Deno.version.deno === '1.43.2') { Deno.exit(1); }"], + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy2", + "args": "--version", + "exitCode": 0, + "output": "version.out" + } + ] +} diff --git a/tests/specs/upgrade/out/upgrade.out b/tests/specs/upgrade/out/upgrade.out new file mode 100644 index 000000000..a2b47d0ec --- /dev/null +++ b/tests/specs/upgrade/out/upgrade.out @@ -0,0 +1,14 @@ +Current Deno version: [WILDCARD] +Downloading https://github.com/denoland/deno/releases/download/v1.43.2/deno-[WILDCARD].zip +Deno is upgrading to version 1.43.2 + +Upgraded successfully to Deno v1.43.2 (stable) + +Release notes: + + https://github.com/denoland/deno/releases/tag/v1.43.2 + +Blog post: + + https://deno.com/blog/v1.43 + diff --git a/tests/specs/upgrade/out/version.out b/tests/specs/upgrade/out/version.out new file mode 100644 index 000000000..9ddecf67c --- /dev/null +++ b/tests/specs/upgrade/out/version.out @@ -0,0 +1,3 @@ +deno 1.43.2 (release, [WILDCARD]) +v8 12.4.254.12 +typescript 5.4.5 diff --git a/tests/specs/upgrade/space_in_tmp/__test__.jsonc b/tests/specs/upgrade/space_in_tmp/__test__.jsonc new file mode 100644 index 000000000..f54c0bf83 --- /dev/null +++ b/tests/specs/upgrade/space_in_tmp/__test__.jsonc @@ -0,0 +1,30 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "eval Deno.copyFileSync(Deno.execPath(),'./deno_copy');", + "exitCode": 0, + "output": "" + }, + { + "commandName": "mkdir", + "args": ["space in cwd"], + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy", + "args": "upgrade --force --version 1.43.2", + "envs": { "TMP": "./space in cwd" }, + "output": "upgrade.out", + "exitCode": 0, + "flaky": true + }, + { + "commandName": "./deno_copy", + "args": "--version", + "exitCode": 0, + "output": "version.out" + } + ] +} diff --git a/tests/specs/upgrade/space_in_tmp/upgrade.out b/tests/specs/upgrade/space_in_tmp/upgrade.out new file mode 100644 index 000000000..a2b47d0ec --- /dev/null +++ b/tests/specs/upgrade/space_in_tmp/upgrade.out @@ -0,0 +1,14 @@ +Current Deno version: [WILDCARD] +Downloading https://github.com/denoland/deno/releases/download/v1.43.2/deno-[WILDCARD].zip +Deno is upgrading to version 1.43.2 + +Upgraded successfully to Deno v1.43.2 (stable) + +Release notes: + + https://github.com/denoland/deno/releases/tag/v1.43.2 + +Blog post: + + https://deno.com/blog/v1.43 + diff --git a/tests/specs/upgrade/space_in_tmp/version.out b/tests/specs/upgrade/space_in_tmp/version.out new file mode 100644 index 000000000..9ddecf67c --- /dev/null +++ b/tests/specs/upgrade/space_in_tmp/version.out @@ -0,0 +1,3 @@ +deno 1.43.2 (release, [WILDCARD]) +v8 12.4.254.12 +typescript 5.4.5 diff --git a/tests/specs/upgrade/specific_canary/__test__.jsonc b/tests/specs/upgrade/specific_canary/__test__.jsonc new file mode 100644 index 000000000..ea86ee117 --- /dev/null +++ b/tests/specs/upgrade/specific_canary/__test__.jsonc @@ -0,0 +1,23 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "eval Deno.copyFileSync(Deno.execPath(),'./deno_copy');", + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy", + "args": "upgrade --force --canary --version aaf2bf4bfbf90bed0b6e9812f337f057d1d24f93", + "output": "upgrade.out", + "exitCode": 0, + "flaky": true + }, + { + "commandName": "./deno_copy", + "args": "--version", + "exitCode": 0, + "output": "version.out" + } + ] +} diff --git a/tests/specs/upgrade/specific_canary/upgrade.out b/tests/specs/upgrade/specific_canary/upgrade.out new file mode 100644 index 000000000..d73116777 --- /dev/null +++ b/tests/specs/upgrade/specific_canary/upgrade.out @@ -0,0 +1,6 @@ +Current Deno version: [WILDCARD] +Downloading https://dl.deno.land/canary/aaf2bf4bfbf90bed0b6e9812f337f057d1d24f93/deno-[WILDCARD].zip +Deno is upgrading to version aaf2bf4bfbf90bed0b6e9812f337f057d1d24f93 + +Upgraded successfully to Deno aaf2bf4bfbf90bed0b6e9812f337f057d1d24f93 (canary) + diff --git a/tests/specs/upgrade/specific_canary/version.out b/tests/specs/upgrade/specific_canary/version.out new file mode 100644 index 000000000..da474c044 --- /dev/null +++ b/tests/specs/upgrade/specific_canary/version.out @@ -0,0 +1,3 @@ +deno 2.0.0-rc.2+aaf2bf4 (canary, release, [WILDCARD]) +v8 12.9.202.13-rusty +typescript 5.6.2 diff --git a/tests/specs/upgrade/specific_stable/__test__.jsonc b/tests/specs/upgrade/specific_stable/__test__.jsonc new file mode 100644 index 000000000..9d8f2bd8a --- /dev/null +++ b/tests/specs/upgrade/specific_stable/__test__.jsonc @@ -0,0 +1,23 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "eval Deno.copyFileSync(Deno.execPath(),'./deno_copy');", + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy", + "args": "upgrade --force --version 1.43.2", + "output": "upgrade.out", + "exitCode": 0, + "flaky": true + }, + { + "commandName": "./deno_copy", + "args": "--version", + "exitCode": 0, + "output": "version.out" + } + ] +} diff --git a/tests/specs/upgrade/specific_stable/upgrade.out b/tests/specs/upgrade/specific_stable/upgrade.out new file mode 100644 index 000000000..a2b47d0ec --- /dev/null +++ b/tests/specs/upgrade/specific_stable/upgrade.out @@ -0,0 +1,14 @@ +Current Deno version: [WILDCARD] +Downloading https://github.com/denoland/deno/releases/download/v1.43.2/deno-[WILDCARD].zip +Deno is upgrading to version 1.43.2 + +Upgraded successfully to Deno v1.43.2 (stable) + +Release notes: + + https://github.com/denoland/deno/releases/tag/v1.43.2 + +Blog post: + + https://deno.com/blog/v1.43 + diff --git a/tests/specs/upgrade/specific_stable/version.out b/tests/specs/upgrade/specific_stable/version.out new file mode 100644 index 000000000..9ddecf67c --- /dev/null +++ b/tests/specs/upgrade/specific_stable/version.out @@ -0,0 +1,3 @@ +deno 1.43.2 (release, [WILDCARD]) +v8 12.4.254.12 +typescript 5.4.5 diff --git a/tests/specs/upgrade/stable/__test__.jsonc b/tests/specs/upgrade/stable/__test__.jsonc new file mode 100644 index 000000000..97e2ddb3c --- /dev/null +++ b/tests/specs/upgrade/stable/__test__.jsonc @@ -0,0 +1,23 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "eval Deno.copyFileSync(Deno.execPath(),'./deno_copy');", + "exitCode": 0, + "output": "" + }, + { + "commandName": "./deno_copy", + "args": "upgrade --force", + "output": "upgrade.out", + "exitCode": 0, + "flaky": true + }, + { + "commandName": "./deno_copy", + "args": "--version", + "exitCode": 0, + "output": "version.out" + } + ] +} diff --git a/tests/specs/upgrade/stable/upgrade.out b/tests/specs/upgrade/stable/upgrade.out new file mode 100644 index 000000000..3fe8f3ee8 --- /dev/null +++ b/tests/specs/upgrade/stable/upgrade.out @@ -0,0 +1,10 @@ +Current Deno version: [WILDCARD] +Looking up stable version + +Found latest stable version [WILDCARD] + +Downloading https://github.com/denoland/deno/releases/download/[WILDCARD]/deno-[WILDCARD].zip +Deno is upgrading to version [WILDCARD] + +Upgraded successfully to Deno [WILDCARD] (stable) + diff --git a/tests/specs/upgrade/stable/version.out b/tests/specs/upgrade/stable/version.out new file mode 100644 index 000000000..43b90e51e --- /dev/null +++ b/tests/specs/upgrade/stable/version.out @@ -0,0 +1,3 @@ +deno [WILDCARD] (stable, release, [WILDCARD]) +v8 [WILDCARD] +typescript [WILDCARD] |