rustible/tests/hello/test.sh
2023-10-05 17:58:41 +02:00

8 lines
228 B
Bash

#! /usr/bin/env bash
# Check that the playbook run returned "welcome to rustible"
echo "$STDOUT" | tail -n 3 | grep -P "\^"Welcome to rustible!\""
# Check that hello is effectively installed
hello -g "test" | grep -P "^test$"