Skip to content

Commit

Permalink
fix: gh-r zunit tests (#561)
Browse files Browse the repository at this point in the history
- remove version pin for `atuin` test
- update `atuin` repo owner
- `lfs` renamed to `dysk`
- macOS architecture check for `create-go-app`
  • Loading branch information
vladdoster authored Aug 12, 2023
1 parent 1375adf commit 97b087e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/gh-r.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
run $assh --version; assert $state equals 0
}
@test 'atuin' { # Magical shell history
run zinit ver'v14.0.0' for @ellie/atuin; assert $state equals 0
run zinit for @atuinsh/atuin; assert $state equals 0
local atuin="$ZBIN/atuin"; assert "$atuin" is_executable
run $atuin --version; assert $state equals 0
}
Expand Down Expand Up @@ -145,7 +145,7 @@
@test 'create-go-app' { # Create a new production-ready project with backend, frontend and deploy automation by running one CLI command
run zinit for id-as'cgapp' @create-go-app/cli; assert $state equals 0
local cgapp="$ZBIN/cgapp"; assert "$cgapp" is_executable
[[ $OSTYPE =~ 'darwin*' ]] && assert "$output" contains "macOS_$(uname -m)" && pass
[[ $OSTYPE =~ 'darwin*' ]] && assert "$output" contains "darwin_${$(uname -m)//x86_/amd}" && pass
$cgapp --version; assert $state equals 0
}
@test 'csview' { # Pretty csv viewer for cli with cjk/emoji support
Expand Down Expand Up @@ -214,6 +214,12 @@
local dyff="$ZBIN/dyff"; assert "$dyff" is_executable
$dyff version; assert $state equals 0
}
@test 'dysk' { # A linux utility to get information on filesystems, like df but better
[[ $OSTYPE =~ 'darwin*' ]] && skip "skipped on $os_type"
run zinit lbin'!**/x86_64-linux/* -> dysk' for @Canop/dysk; assert $state equals 0
local dysk="$ZBIN/dysk"; assert "$dysk" is_executable
run $dysk --version; assert $state equals 0
}
@test 'etcd' { # Distributed reliable key-value store for the most critical data of a distributed system
run zinit lbin'!**/etcd' for @etcd-io/etcd; assert $state equals 0
local etcd="$ZBIN/etcd"; assert "$etcd" is_executable
Expand Down Expand Up @@ -482,12 +488,6 @@ $kopia --version; assert $state equals 0
local lf="$ZBIN/lf"; assert "$lf" is_executable
$lf -version; assert $state equals 0
}
@test 'lfs' { # A linux utility to get information on filesystems, like df but better
[[ $OSTYPE =~ 'darwin*' ]] && skip "skipped on $os_type"
run zinit lbin'!**/x86_64-linux/* -> lfs' for @Canop/lfs; assert $state equals 0
local lfs="$ZBIN/lfs"; assert "$lfs" is_executable
run $lfs --version; assert $state equals 0
}
@test 'lnav' { # advanced log file viewer
run zinit for @tstack/lnav; assert $state equals 0
local lnav="$ZBIN/lnav"; assert "$lnav" is_executable
Expand Down

0 comments on commit 97b087e

Please sign in to comment.