Skip to content

Commit

Permalink
maint: gh-r tests for atuin, compress, gosu, and v (#233)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster authored Apr 28, 2022
1 parent 5b73411 commit 08c7053
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/gh-r.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
$aurora -v
assert $state equals 0
}
@test 'atuin' { # Magical shell history
run zinit sbin"**/atuin" for @ellie/atuin; assert $state equals 0
local atuin="$ZPFX/bin/atuin"; assert "$atuin" is_executable
$atuin --version; assert $state equals 0
}
@test 'bandwhich' { # Terminal bandwidth utilization tool
[[ $OSTYPE =~ 'darwin*' ]] && skip 'Bandwhich test skipped on Darwin'
run zinit sbin"bandwhich" for @imsnif/bandwhich
Expand Down Expand Up @@ -120,6 +125,11 @@
$cog --version
assert $state equals 0
}
@test 'compress' { # Optimized Go Compression Packages
run zinit sbin's2c;s2d;s2sx;' for klauspost/compress; assert $state equals 0
local compress="$ZPFX/bin/s2c"; assert "$compress" is_executable
$compress --help; assert $state equals 0
}
@test 'create-go-app' { # Create a new production-ready project with backend, frontend and deploy automation by running one CLI command
run zinit sbin'**/cgapp -> cgapp' for create-go-app/cli
assert $state equals 0
Expand Down Expand Up @@ -344,6 +354,12 @@
$gomi --version
assert $state equals 0
}
@test 'gosu' { # Simple Go-based setuid+setgid+setgroups+exec
if [[ $OSTYPE =~ 'darwin.*' ]]; then skip 'gosu test only ran on Linux'; fi
run zinit sbin'* -> gosu' for @tianon/gosu; assert $state equals 0
local gosu="$ZPFX/bin/gosu"; assert "$gosu" is_executable
$gosu --version; assert $state equals 0
}
@test 'gotestfmt' { # go test output for humans
run zinit sbin'gotestfmt' for @haveyoudebuggedit/gotestfmt
assert $state equals 0
Expand Down Expand Up @@ -752,6 +768,11 @@
local up="$ZPFX/bin/up"; assert "$up" is_executable
run $up -h; assert $output contains "up is the Ultimate Plumber"
}
@test 'v' { # Simple, fast, safe, compiled language for developing maintainable software
run zinit sbin'**/v' for vlang/v; assert $state equals 0
local v="$ZPFX/bin/v"; assert "$v" is_executable
run $v version; assert $state equals 0
}
@test 'volta' { # JS Toolchains as Code
! [[ $OSTYPE =~ 'darwin.*' ]] && skip 'Volta test only ran on macOS'

Expand Down

0 comments on commit 08c7053

Please sign in to comment.