mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 07:46:57 +00:00
[Ubuntu] Migrate Browsers and Rust tests to Pester (#2323)
* add tests for browsers and rust * small fix * fix tests invoking * small fixes * resolve conflicts * fix firefox test
This commit is contained in:
committed by
GitHub
parent
ba0809214b
commit
7c15befd02
19
images/linux/scripts/tests/Browsers.Tests.ps1
Normal file
19
images/linux/scripts/tests/Browsers.Tests.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
Describe "Firefox" {
|
||||
It "Firefox" {
|
||||
"sudo -i firefox --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Geckodriver" {
|
||||
"geckodriver --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Chrome" {
|
||||
It "Chrome" {
|
||||
"google-chrome --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Chrome Driver" {
|
||||
"chromedriver --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,49 @@ Describe "azcopy" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Rust" {
|
||||
It "Rustup is installed" {
|
||||
"rustup --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Rustc is installed" {
|
||||
"rustc --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Rustdoc is installed" {
|
||||
"rustdoc --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Rustfmt is installed" {
|
||||
"rustfmt --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
Context "Cargo dependencies" {
|
||||
It "bindgen" {
|
||||
"bindgen --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "cbindgen" {
|
||||
"cbindgen --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "cargo" {
|
||||
"cargo --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "cargo-clippy" {
|
||||
"cargo-clippy --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Cargo audit" {
|
||||
"cargo audit --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Cargo outdated" {
|
||||
"cargo outdated --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
Describe "Docker" {
|
||||
It "docker" {
|
||||
"docker --version" | Should -ReturnZeroExitCode
|
||||
|
||||
Reference in New Issue
Block a user