X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=tests%2Fruntests.sh;fp=tests%2Fruntests.sh;h=40918269918e2b7a74dfdc17a7c1ac44ef58f4bb;hb=ebb64fa7f21306a4c2be195176795385437ce2cb;hp=0000000000000000000000000000000000000000;hpb=24cd3510590f6391c002cb04364ad93df9be9fa3;p=packages%2Fcentos7%2FPyYAML.git diff --git a/tests/runtests.sh b/tests/runtests.sh new file mode 100644 index 0000000..4091826 --- /dev/null +++ b/tests/runtests.sh @@ -0,0 +1,26 @@ +#! /bin/bash + +set -o xtrace + +case $1 in + PyYAML) + echo "Testing $1" + python -c "import yaml" + EC=$? + ;; + python3-PyYAML) + echo "Testing $1" + python3 -c "import yaml" + EC=$? + ;; + PyYAML-debuginfo) + echo "Skip tests for $1" + EC=0 + ;; + *) + echo "Test not defined for $1" + EC=1 + ;; +esac + +exit $EC