From 08c705381e459e2a3643d6d09ede96c00cfaae39 Mon Sep 17 00:00:00 2001 From: vladislav doster <10052309+vladdoster@users.noreply.github.com> Date: Thu, 28 Apr 2022 08:31:57 -0500 Subject: [PATCH] maint: gh-r tests for atuin, compress, gosu, and v (#233) Signed-off-by: Vladislav Doster --- tests/gh-r.zunit | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/gh-r.zunit b/tests/gh-r.zunit index be09bc1d1..262b32d5a 100755 --- a/tests/gh-r.zunit +++ b/tests/gh-r.zunit @@ -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 @@ -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 @@ -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 @@ -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'