summaryrefslogtreecommitdiff
path: root/examples/testImports.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/testImports.sh')
-rwxr-xr-xexamples/testImports.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/testImports.sh b/examples/testImports.sh
new file mode 100755
index 0000000..79cb92a
--- /dev/null
+++ b/examples/testImports.sh
@@ -0,0 +1,21 @@
+#! /bin/bash
+
+echo "====Ruby========="
+ruby <<EOF
+ require 'zypp'
+ include Zypp
+ zypp = ZYppFactory::instance.get_zypp
+EOF
+
+echo "====Python======="
+python <<EOF
+import zypp
+zypp = zypp.ZYppFactory.instance().getZYpp()
+EOF
+
+echo "====Perl========="
+perl - <<"EOF"
+ use zypp;
+ $zfactory = zyppc::ZYppFactory_instance();
+ $zypp = $zfactory->getZYpp;
+EOF \ No newline at end of file