-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
68ee163
commit 6782d65
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |