File: zsh.t

package info (click to toggle)
git-subrepo 0.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,552 kB
  • sloc: sh: 7,074; makefile: 273; perl: 226
file content (27 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash

set -e

source test/setup

use Test::More

if ! command -v docker >/dev/null; then
  plan skip_all "The 'docker' utility is not installed"
fi

for zsh_version in 5.8 5.6 5.0.1 4.3.11; do
  error=$(
    docker run --rm -it \
      --volume="$PWD:/git-subrepo" \
      --entrypoint='' \
        "zshusers/zsh:$zsh_version" \
        zsh -c 'source /git-subrepo/.rc 2>&1'
  ) || true

  is "$error" "" "'source.rc' works for zsh-$zsh_version"
done

done_testing

# vim: set ft=sh: