From d995a2c6eddca551022c52f7bffafcc5defc9530 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Tue, 9 Aug 2016 10:13:29 -0400 Subject: [PATCH] Initial test --- tests/image.bats | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/image.bats diff --git a/tests/image.bats b/tests/image.bats new file mode 100755 index 0000000..cc1db3d --- /dev/null +++ b/tests/image.bats @@ -0,0 +1,17 @@ +#!/usr/bin/env bats + +load ../common + +setup() { + ./bin/rebuild.sh +} + +@test "Should be buildable" { + run bin/build.sh + [ "$status" -eq 0 ] +} + +@test "Concludes first-run experience" { + result="$(docker run -i $maintainer/$imagename find /tmp/firsttimerunning)" + [ "$result" != '' ] +} \ No newline at end of file