-
Notifications
You must be signed in to change notification settings - Fork 0
/
lacework_test.sh
executable file
·48 lines (37 loc) · 1.01 KB
/
lacework_test.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/zsh
set -Eeuvo pipefail
# Set Coder-specific environment variables
CODER_SSH_PUBKEY_PATH=$HOME/.ssh
CODER_SSH_PUBKEY=$CODER_SSH_PUBKEY_PATH/coder.pub
mkdir -p $CODER_SSH_PUBKEY_PATH
touch $CODER_SSH_PUBKEY
export CODER_USER_EMAIL="[email protected]"
# Setup shell
./install.sh
source $HOME/.zshrc
# Smoke tests
# Test aliases
type asso
type awsint
type cdag
type cdcli
type cddock
# Check that GOPATH is set
echo $GOPATH
# Check that PATH contains essential paths
echo $PATH | grep $GOPATH
echo $PATH | grep "$HOME/.local/bin"
echo $PATH | grep "$HOME/.linuxbrew/bin"
echo $PATH | grep "$HOME/.cargo/bin"
echo $PATH | grep "/usr/local/go/bin"
# Check that .gitconfig is configured for Lacework
grep "$CODER_SSH_PUBKEY" $HOME/.gitconfig
grep "$CODER_USER_EMAIL" $HOME/.gitconfig
# Check that `libpcap` is installed
ld -lpcap
# Test correctness of `.earthly/config.yml`
earthly github.com/earthly/hello-world+hello
# Check that `eksctl` is installed
eksctl version
# Check that `minikube` is installed
minikube version