2019-04-12 18:17:28 +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-04-12 18:17:28 +00:00
|
|
|
|
2020-07-22 12:43:16 +00:00
|
|
|
if [ "$TEST_SCENARIO" == "lorax" ]; then
|
2019-11-04 19:28:54 +00:00
|
|
|
test/check-lorax TestLorax
|
2019-04-12 18:17:28 +00:00
|
|
|
else
|
2020-07-22 12:43:16 +00:00
|
|
|
test/check-cli TestImages
|
2019-04-12 18:17:28 +00:00
|
|
|
fi
|