2019-06-25 09:50:37 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
# This is the expected entry point for Cockpit CI; will be called without
|
|
|
|
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO
|
|
|
|
|
2019-11-27 11:43:14 +00:00
|
|
|
export BACKEND="${BACKEND:-lorax-composer}"
|
|
|
|
|
2020-07-22 12:43:16 +00:00
|
|
|
if [ "$BACKEND" == "osbuild-composer" ] || [ "$TEST_SCENARIO" == "osbuild-composer" ]; then
|
|
|
|
rm -rf ./test/images/*
|
|
|
|
export BACKEND="osbuild-composer"
|
|
|
|
make BACKEND=osbuild-composer vm
|
|
|
|
else
|
|
|
|
make vm
|
|
|
|
fi
|
2019-06-25 09:50:37 +00:00
|
|
|
|
2020-07-22 12:43:16 +00:00
|
|
|
if [ "$TEST_SCENARIO" == "ci" ]; then
|
|
|
|
test/check-cli TestPylint
|
2019-06-25 09:50:37 +00:00
|
|
|
else
|
2020-07-22 12:43:16 +00:00
|
|
|
test/check-cli TestImages
|
2019-06-25 09:50:37 +00:00
|
|
|
fi
|