977477db9d
This also changes from running the unit tests, which are now run as part of the rpm build, to running ksvalidator and ksflatten on some test kickstarts. ./tests/good-ks/ contains kickstarts expected to pass ./tests/bad-ks/ contains kickstarts expected to fail ./tests/include-ks/ contains kickstarts expected to pass, with includes (note that the %include directives in good-ks are not processed by ksvalidator).
25 lines
512 B
Bash
Executable File
25 lines
512 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Running pykickstart tests"
|
|
cd ./tests/
|
|
|
|
# Run ksvalidator on good kickstart examples
|
|
for f in ./good-ks/*.ks; do
|
|
echo "Checking $f"
|
|
ksvalidator $f || exit 1
|
|
done
|
|
|
|
# Run ksvalidator on bad kickstart examples
|
|
for f in ./bad-ks/*.ks; do
|
|
echo "Checking $f"
|
|
ksvalidator $f && exit 1
|
|
done
|
|
|
|
|
|
# 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
|
|
|
|
exit 0
|