# Go flags for FreeBSD
CGO_CFLAGS_FREEBSD="-I/usr/local/include -std=gnu99"
CGO_LDFLAGS_FREEBSD="-L/usr/local/lib -lX11 -lXtst -pthread"

# Functions
case $(uname) in
	"Linux") CGO_ENABLED=1 \
		go test . -mod=vendor
		;;
	"FreeBSD") CGO_ENABLED=1 \
        	CGO_CFLAGS=${CGO_CFLAGS_FREEBSD} \
        	CGO_LDFLAGS=${CGO_LDFLAGS_FREEBSD} \
        	go test . -mod=vendor
		;;
	*)
		echo "Hiện tại chưa hỗ trợ hệ điều hành này!"
		;;
esac
