summarylogtreecommitdiffstats
path: root/test.sh
blob: 64ea7823762f2377cbd71e94a962340b09590ccc (plain)
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
28
#!/bin/bash

set -eu

source ./PKGBUILD

echo "## install start"
pacman -U --noconfirm ${pkgname}-${pkgver}-${pkgrel}-x86_64.pkg.tar.xz

echo "## install complete"

echo "## check installed files"

cfn-guard --help

echo "## check bash completion"
ls -l /usr/share/bash-completion/completions/cfn-guard
head /usr/share/bash-completion/completions/cfn-guard

echo "## check zsh completion"
ls -l /usr/share/zsh/site-functions/_cfn-guard
head /usr/share/zsh/site-functions/_cfn-guard

echo "## check fish completion"
ls -l /usr/share/fish/completions/cfn-guard.fish
head /usr/share/fish/completions/cfn-guard.fish

echo "test OK"