[Python-modules-commits] r29757 - in packages/ipython/trunk/debian/tests (7 files)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Tue Jul 15 22:07:27 UTC 2014
Date: Tuesday, July 15, 2014 @ 22:07:26
Author: jtaylor-guest
Revision: 29757
add autopackagetest for nbconvert to html
Added:
packages/ipython/trunk/debian/tests/nbconvert
packages/ipython/trunk/debian/tests/nbconvert2-node
packages/ipython/trunk/debian/tests/nbconvert2-pandoc
packages/ipython/trunk/debian/tests/nbconvert3
packages/ipython/trunk/debian/tests/nbconvert3-node
packages/ipython/trunk/debian/tests/nbconvert3-pandoc
Modified:
packages/ipython/trunk/debian/tests/control
Modified: packages/ipython/trunk/debian/tests/control
===================================================================
--- packages/ipython/trunk/debian/tests/control 2014-07-15 22:07:23 UTC (rev 29756)
+++ packages/ipython/trunk/debian/tests/control 2014-07-15 22:07:26 UTC (rev 29757)
@@ -46,3 +46,15 @@
Tests: incomplete-install
Depends: ipython, ipython3
+
+Tests: nbconvert2-node
+Depends: ipython-notebook, nodejs, python-pygments
+
+Tests: nbconvert2-pandoc
+Depends: ipython-notebook, pandoc, python-pygments
+
+Tests: nbconvert3-node
+Depends: ipython3-notebook, nodejs, python3-pygments
+
+Tests: nbconvert3-pandoc
+Depends: ipython3-notebook, pandoc, python3-pygments
Added: packages/ipython/trunk/debian/tests/nbconvert
===================================================================
--- packages/ipython/trunk/debian/tests/nbconvert (rev 0)
+++ packages/ipython/trunk/debian/tests/nbconvert 2014-07-15 22:07:26 UTC (rev 29757)
@@ -0,0 +1,40 @@
+#!/bin/sh
+set -efu
+
+export HOME=$ADTTMP
+cd $ADTTMP
+
+if [ "$1" = "ipython" ]; then
+IPYTHON=ipython
+elif [ "$1" = "ipython3" ]; then
+IPYTHON=ipython3
+fi
+
+cat << EOF > test.ipynb
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "*heystring*"
+ ]
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
+EOF
+
+# test some basic conversions work
+# html/print-preview, nodejs javascript files found etc.
+$IPYTHON nbconvert --to html test.ipynb 2>&1
+grep heystring test.html
Property changes on: packages/ipython/trunk/debian/tests/nbconvert
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/nbconvert2-node
===================================================================
--- packages/ipython/trunk/debian/tests/nbconvert2-node (rev 0)
+++ packages/ipython/trunk/debian/tests/nbconvert2-node 2014-07-15 22:07:26 UTC (rev 29757)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/nbconvert ipython
Property changes on: packages/ipython/trunk/debian/tests/nbconvert2-node
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/nbconvert2-pandoc
===================================================================
--- packages/ipython/trunk/debian/tests/nbconvert2-pandoc (rev 0)
+++ packages/ipython/trunk/debian/tests/nbconvert2-pandoc 2014-07-15 22:07:26 UTC (rev 29757)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/nbconvert ipython
Property changes on: packages/ipython/trunk/debian/tests/nbconvert2-pandoc
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/nbconvert3
===================================================================
--- packages/ipython/trunk/debian/tests/nbconvert3 (rev 0)
+++ packages/ipython/trunk/debian/tests/nbconvert3 2014-07-15 22:07:26 UTC (rev 29757)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/nbconvert ipython3
Property changes on: packages/ipython/trunk/debian/tests/nbconvert3
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/nbconvert3-node
===================================================================
--- packages/ipython/trunk/debian/tests/nbconvert3-node (rev 0)
+++ packages/ipython/trunk/debian/tests/nbconvert3-node 2014-07-15 22:07:26 UTC (rev 29757)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/nbconvert ipython3
Property changes on: packages/ipython/trunk/debian/tests/nbconvert3-node
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/ipython/trunk/debian/tests/nbconvert3-pandoc
===================================================================
--- packages/ipython/trunk/debian/tests/nbconvert3-pandoc (rev 0)
+++ packages/ipython/trunk/debian/tests/nbconvert3-pandoc 2014-07-15 22:07:26 UTC (rev 29757)
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -efu
+
+$PWD/debian/tests/nbconvert ipython3
Property changes on: packages/ipython/trunk/debian/tests/nbconvert3-pandoc
___________________________________________________________________
Added: svn:executable
+ *
More information about the Python-modules-commits
mailing list