summaryrefslogtreecommitdiff
path: root/docker/scripts/libyaml-test-pyyaml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/scripts/libyaml-test-pyyaml.sh')
-rwxr-xr-xdocker/scripts/libyaml-test-pyyaml.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/docker/scripts/libyaml-test-pyyaml.sh b/docker/scripts/libyaml-test-pyyaml.sh
new file mode 100755
index 0000000..694c71d
--- /dev/null
+++ b/docker/scripts/libyaml-test-pyyaml.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+set -e
+set -x
+
+# Create tarball
+cd /tmp
+cp -rp /output/libyaml.git .
+#git clone https://github.com/yaml/libyaml.git
+cd libyaml.git
+./bootstrap
+./configure
+make
+make test
+make test-all
+make install
+ldconfig
+
+cd /tmp
+git clone https://github.com/yaml/pyyaml.git
+cd pyyaml
+python --version
+python setup.py test
+
+echo "python 2 pyyaml successful"
+
+git clean -xdf
+python3 setup.py test
+
+echo "python 2 & 3 pyyaml successful"