diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2017-02-19 17:18:06 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2017-02-19 17:21:46 +0100 |
commit | b0a743617b5c314a005c4645d95a7157c7337328 (patch) | |
tree | f2f92a3ebcfd7159eaddef6b172781b4aca0b6f5 /test/mocks | |
parent | Allow overriding ${DATE} for testibility (diff) | |
download | porticron-b0a743617b5c314a005c4645d95a7157c7337328.tar.gz porticron-b0a743617b5c314a005c4645d95a7157c7337328.tar.bz2 porticron-b0a743617b5c314a005c4645d95a7157c7337328.zip |
Add simple suite of system tests based on BATS
Diffstat (limited to 'test/mocks')
-rwxr-xr-x | test/mocks/emerge | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/mocks/emerge b/test/mocks/emerge new file mode 100755 index 0000000..ef1fc1b --- /dev/null +++ b/test/mocks/emerge @@ -0,0 +1,14 @@ +#! /bin/bash +# Copyright (C) 2017 Sebastian Pipping <sebastian@pipping.org> +# Licensed under the 3-Clause BSD license + +set -e + +if [[ "$*" == '--sync' ]]; then + : +elif [[ "$*" == '--deep --update --quiet --pretend world' ]]; then + cat test/data/emerge-deep-update-pretend-output.txt +else + echo "ERROR: Unsupported invocation: $0 $*" >&2 + exit 1 +fi |