Skip to content

Commit

Permalink
Merge 81beb77 into 03be89c
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbaddog committed Nov 3, 2018
2 parents 03be89c + 81beb77 commit 662aab5
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 21 deletions.
17 changes: 10 additions & 7 deletions .appveyor.yml
@@ -1,13 +1,13 @@
version: '3.0.1.{build}'
#version: '3.0.1.{build}'

image: Visual Studio 2017
shallow_clone: true

cache:
- downloads -> appveyor.yml
- '%LOCALAPPDATA%\pip\Cache'
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
#cache:
# - downloads -> appveyor.yml
# - '%LOCALAPPDATA%\pip\Cache'
# - C:\ProgramData\chocolatey\bin -> appveyor.yml
# - C:\ProgramData\chocolatey\lib -> appveyor.yml

install:
- "set PATH=%PYTHON%;%PYTHON%\\Scripts;C:\\cygwin64\\bin;C:\\msys64;%PATH%"
Expand All @@ -17,7 +17,10 @@ install:
- choco install --allow-empty-checksums dmd
- choco install --allow-empty-checksums ldc
- choco install --allow-empty-checksums swig
- choco install --allow-empty-checksums vswhere
- choco install --allow-empty-checksums vswhere
- choco install --allow-empty-checksums xsltproc
- choco install --allow-empty-checksums git.install


environment:
matrix:
Expand Down
5 changes: 2 additions & 3 deletions test/Docbook/basic/epub/epub_cmd.py
Expand Up @@ -34,18 +34,17 @@
xsltproc = test.where_is('xsltproc')
if not xsltproc:
test.skip_test('No xsltproc executable found, skipping test.\n')

test.dir_fixture('image')

# Normal invocation
test.run(arguments=['-f','SConstruct.cmd'], stderr=None)
test.run(arguments=['-f','SConstruct.cmd','DOCBOOK_XSLTPROC=%s'%xsltproc], stderr=None)
test.must_exist(test.workpath('manual.epub'))
test.must_exist(test.workpath('OEBPS','toc.ncx'))
test.must_exist(test.workpath('OEBPS','content.opf'))
test.must_exist(test.workpath('META-INF','container.xml'))

# Cleanup
test.run(arguments=['-f','SConstruct.cmd','-c'])
test.run(arguments=['-f','SConstruct.cmd','-c','DOCBOOK_XSLTPROC=%s'%xsltproc])
test.must_not_exist(test.workpath('manual.epub'))
test.must_not_exist(test.workpath('OEBPS'))
test.must_not_exist(test.workpath('META-INF'))
Expand Down
4 changes: 4 additions & 0 deletions test/Docbook/basic/epub/image/SConstruct.cmd
@@ -1,2 +1,6 @@
env = Environment(DOCBOOK_PREFER_XSLTPROC=1, tools=['docbook'])
DOCBOOK_XSLTPROC = ARGUMENTS.get('DOCBOOK_XSLTPROC', "")
if DOCBOOK_XSLTPROC:
env['DOCBOOK_XSLTPROC'] = DOCBOOK_XSLTPROC

env.DocbookEpub('manual')
4 changes: 2 additions & 2 deletions test/Docbook/basic/html/html_cmd.py
Expand Up @@ -38,11 +38,11 @@
test.dir_fixture('image')

# Normal invocation
test.run(arguments=['-f','SConstruct.cmd'])
test.run(arguments=['-f','SConstruct.cmd','DOCBOOK_XSLTPROC=%s'%xsltproc])
test.must_exist(test.workpath('manual.html'))

# Cleanup
test.run(arguments=['-f','SConstruct.cmd','-c'])
test.run(arguments=['-f','SConstruct.cmd','-c','DOCBOOK_XSLTPROC=%s'%xsltproc])
test.must_not_exist(test.workpath('manual.html'))

test.pass_test()
Expand Down
4 changes: 4 additions & 0 deletions test/Docbook/basic/html/image/SConstruct.cmd
@@ -1,3 +1,7 @@
env = Environment(DOCBOOK_PREFER_XSLTPROC=1, tools=['docbook'])
DOCBOOK_XSLTPROC = ARGUMENTS.get('DOCBOOK_XSLTPROC', "")
if DOCBOOK_XSLTPROC:
env['DOCBOOK_XSLTPROC'] = DOCBOOK_XSLTPROC

env.DocbookHtml('manual')

4 changes: 2 additions & 2 deletions test/Docbook/basic/htmlchunked/htmlchunked_cmd.py
Expand Up @@ -39,11 +39,11 @@
test.dir_fixture('image')

# Normal invocation
test.run(arguments=['-f','SConstruct.cmd'], stderr=None)
test.run(arguments=['-f','SConstruct.cmd','DOCBOOK_XSLTPROC=%s'%xsltproc], stderr=None)
test.must_exist(test.workpath('index.html'))

# Cleanup
test.run(arguments=['-f','SConstruct.cmd','-c'])
test.run(arguments=['-f','SConstruct.cmd','-c','DOCBOOK_XSLTPROC=%s'%xsltproc])
test.must_not_exist(test.workpath('index.html'))

test.pass_test()
Expand Down
4 changes: 4 additions & 0 deletions test/Docbook/basic/htmlchunked/image/SConstruct.cmd
@@ -1,3 +1,7 @@
env = Environment(DOCBOOK_PREFER_XSLTPROC=1, tools=['docbook'])
DOCBOOK_XSLTPROC = ARGUMENTS.get('DOCBOOK_XSLTPROC', "")
if DOCBOOK_XSLTPROC:
env['DOCBOOK_XSLTPROC'] = DOCBOOK_XSLTPROC

env.DocbookHtmlChunked('manual')

4 changes: 2 additions & 2 deletions test/Docbook/basic/htmlhelp/htmlhelp_cmd.py
Expand Up @@ -38,13 +38,13 @@
test.dir_fixture('image')

# Normal invocation
test.run(arguments=['-f','SConstruct.cmd'], stderr=None)
test.run(arguments=['-f','SConstruct.cmd','DOCBOOK_XSLTPROC=%s'%xsltproc], stderr=None)
test.must_exist(test.workpath('index.html'))
test.must_exist(test.workpath('htmlhelp.hhp'))
test.must_exist(test.workpath('toc.hhc'))

# Cleanup
test.run(arguments=['-f','SConstruct.cmd','-c'])
test.run(arguments=['-f','SConstruct.cmd','-c','DOCBOOK_XSLTPROC=%s'%xsltproc])
test.must_not_exist(test.workpath('index.html'))
test.must_not_exist(test.workpath('htmlhelp.hhp'))
test.must_not_exist(test.workpath('toc.hhc'))
Expand Down
4 changes: 4 additions & 0 deletions test/Docbook/basic/htmlhelp/image/SConstruct.cmd
@@ -1,3 +1,7 @@
env = Environment(DOCBOOK_PREFER_XSLTPROC=1, tools=['docbook'])
DOCBOOK_XSLTPROC = ARGUMENTS.get('DOCBOOK_XSLTPROC', "")
if DOCBOOK_XSLTPROC:
env['DOCBOOK_XSLTPROC'] = DOCBOOK_XSLTPROC

env.DocbookHtmlhelp('manual')

4 changes: 4 additions & 0 deletions test/Docbook/basic/man/image/SConstruct.cmd
@@ -1,3 +1,7 @@
env = Environment(DOCBOOK_PREFER_XSLTPROC=1, tools=['docbook'])
DOCBOOK_XSLTPROC = ARGUMENTS.get('DOCBOOK_XSLTPROC', "")
if DOCBOOK_XSLTPROC:
env['DOCBOOK_XSLTPROC'] = DOCBOOK_XSLTPROC

env.DocbookMan('refdb')

4 changes: 2 additions & 2 deletions test/Docbook/basic/man/man_cmd.py
Expand Up @@ -38,12 +38,12 @@
test.dir_fixture('image')

# Normal invocation
test.run(arguments=['-f','SConstruct.cmd'], stderr=None)
test.run(arguments=['-f','SConstruct.cmd','DOCBOOK_XSLTPROC=%s'%xsltproc], stderr=None)
test.must_exist(test.workpath('refdb.8'))
test.must_exist(test.workpath('refdb.sh.8'))

# Cleanup
test.run(arguments=['-f','SConstruct.cmd','-c'])
test.run(arguments=['-f','SConstruct.cmd','-c','DOCBOOK_XSLTPROC=%s'%xsltproc])
test.must_not_exist(test.workpath('refdb.8'))
test.must_not_exist(test.workpath('refdb.sh.8'))

Expand Down
2 changes: 1 addition & 1 deletion test/SWIG/live.py
Expand Up @@ -145,7 +145,7 @@

test.run(arguments = ldmodule_prefix+'bar' + _dll)

test.must_match('wrapper.out', "wrapper.py" + os.linesep)
test.must_match('wrapper.out', "wrapper.py\n")

test.run(program = python, stdin = """\
from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion test/YACC/live.py
Expand Up @@ -158,7 +158,7 @@

test.up_to_date(arguments = 'bar' + _exe)

test.must_match(test.workpath('wrapper.out'), "wrapper.py" + os.linesep)
test.must_match(test.workpath('wrapper.out'), "wrapper.py\n")

test.run(program = test.workpath('bar'), stdin = "b\n", stdout = "bar.y\n")

Expand Down
2 changes: 1 addition & 1 deletion test/fixture/wrapper.py
Expand Up @@ -2,5 +2,5 @@
import sys
if '--version' not in sys.argv and '-dumpversion' not in sys.argv:
path = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'wrapper.out')
open(path, 'w').write("wrapper.py\n")
open(path, 'wb').write(b"wrapper.py\n")
os.system(" ".join(sys.argv[1:]))

0 comments on commit 662aab5

Please sign in to comment.