Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
lamp/tests/image.bats
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
23 lines (18 sloc)
409 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bats | |
load ../common | |
setup() { | |
echo $PWD > test.log | |
./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" != '' ] | |
} | |
@test "Contains php" { | |
run docker run -i $maintainer/$imagename which php | |
[ "$status" -eq 0 ] | |
} |