test: shell, lang: core: embedded: provisioner: Check it compiles
Add a test to guarantee we continue to keep compiling, in case something in the language changes.
This commit is contained in:
19
test/shell/embedded-provisioner.sh
Executable file
19
test/shell/embedded-provisioner.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
. "$(dirname "$0")/../util.sh"
|
||||
|
||||
# misc bash functions, eg: repeat "#" 42
|
||||
function repeat() {
|
||||
for ((i=0; i<$2; ++i)); do echo -n "$1"; done
|
||||
echo
|
||||
}
|
||||
|
||||
set -x
|
||||
|
||||
# run unification with a dummy password
|
||||
$TIMEOUT "$MGMT" provisioner --only-unify --password $(repeat "#" 106) &
|
||||
pid=$!
|
||||
wait $pid # get exit status
|
||||
e=$?
|
||||
|
||||
exit $e
|
||||
Reference in New Issue
Block a user