2018-12-19 18:50:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-02-21 19:27:31 +00:00
|
|
|
echo "Running pykickstart tests"
|
|
|
|
cd ./tests/
|
2018-12-19 18:50:35 +00:00
|
|
|
|
2023-02-21 19:27:31 +00:00
|
|
|
# Run ksvalidator on good kickstart examples
|
|
|
|
for f in ./good-ks/*.ks; do
|
|
|
|
echo "Checking $f"
|
|
|
|
ksvalidator $f || exit 1
|
|
|
|
done
|
2018-12-19 18:50:35 +00:00
|
|
|
|
2023-02-21 19:27:31 +00:00
|
|
|
# Run ksvalidator on bad kickstart examples
|
|
|
|
for f in ./bad-ks/*.ks; do
|
|
|
|
echo "Checking $f"
|
|
|
|
ksvalidator $f && exit 1
|
|
|
|
done
|
2018-12-19 18:50:35 +00:00
|
|
|
|
|
|
|
|
2023-02-21 19:27:31 +00:00
|
|
|
# Run ksflatten on a set of kickstarts
|
|
|
|
echo "Testing ksflatten with included kickstarts"
|
|
|
|
ksflatten -c ./include-ks/fedora-live-xfce.ks -o flat.ks || exit 1
|
|
|
|
ksvalidator flat.ks || exit 1
|
2018-12-19 18:50:35 +00:00
|
|
|
|
2023-02-21 19:27:31 +00:00
|
|
|
exit 0
|