Add nodepool integration test script

Change-Id: I197df80280d4454de7566549930fa6e6348e65c4
Depends-On: Icc58521f520f719f24f59132c424b3a71432285f
diff --git a/tools/nodepool-integration-test.sh b/tools/nodepool-integration-test.sh
new file mode 100755
index 0000000..74c2a01
--- /dev/null
+++ b/tools/nodepool-integration-test.sh
@@ -0,0 +1,23 @@
+#!/bin/bash -xe
+
+/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org \
+    openstack-infra/nodepool
+
+cd openstack-infra/nodepool
+/usr/local/jenkins/slave_scripts/install-distro-packages.sh
+sudo pip install .
+
+cd $WORKSPACE
+
+cd openstack-infra/zuul
+/usr/local/jenkins/slave_scripts/install-distro-packages.sh
+sudo pip install .
+
+cd $WORKSPACE
+
+bash -xe openstack-infra/nodepool/tools/zuul-nodepool-integration/start.sh
+
+# TODO(jeblair): something useful and save logs
+sleep 30
+cat /tmp/nodepool/log/nodepool-builder.log
+cat /tmp/nodepool/log/nodepool-launcher.log