Version 3.11
[packages/centos7/PyYAML.git] / tests / runtests.sh
diff --git a/tests/runtests.sh b/tests/runtests.sh
new file mode 100644 (file)
index 0000000..4091826
--- /dev/null
@@ -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