Add tests on architecture configuration

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-10-22 21:55:00 +02:00
parent e9de597654
commit 8a3a3028fb
3 changed files with 90 additions and 1 deletions

View File

@@ -20,10 +20,19 @@ common_setup() {
dagger_new_with_plan() {
local name="$1"
local sourcePlan="$2"
local arch="$3"
cp -a "$sourcePlan"/* "$DAGGER_PROJECT"
"$DAGGER" new "$name"
local opts=""
if [ -n "$arch" ];
then
opts="-a $arch"
fi
# Need word splitting to take in account "-a" and "$arch"
# shellcheck disable=SC2086
"$DAGGER" new "$name" ${opts}
}
dagger_new_with_env() {