aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-12 20:39:23 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commitaa0ec96ea8a25a2c12527acb4656bfa0af5b8409 (patch)
tree09b7f61a13fdfe20a285f1012c3adf63be60b06b /wscript
parentbc0e185a469018ea70f32abb50c4b4a1073b0249 (diff)
downloadserd-aa0ec96ea8a25a2c12527acb4656bfa0af5b8409.tar.gz
serd-aa0ec96ea8a25a2c12527acb4656bfa0af5b8409.tar.bz2
serd-aa0ec96ea8a25a2c12527acb4656bfa0af5b8409.zip
Use a fixed-size reader stack
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/wscript b/wscript
index ea1568c5..1cfaa1a7 100644
--- a/wscript
+++ b/wscript
@@ -496,7 +496,7 @@ def test(tst):
check([serdi, '%s/tests/good/manifest.ttl' % srcdir])
check([serdi, '-v'])
check([serdi, '-h'])
- check([serdi, '-s', '<foo> a <#Thingie> .'])
+ check([serdi, '-k', '512', '-s', '<foo> a <#Thingie> .'])
check([serdi, os.devnull])
with tempfile.TemporaryFile(mode='r') as stdin:
check([serdi, '-'], stdin=stdin)
@@ -511,6 +511,10 @@ def test(tst):
check([serdi, '-i', 'illegal'])
check([serdi, '-i', 'turtle'])
check([serdi, '-i'])
+ check([serdi, '-k'])
+ check([serdi, '-k', '-1'])
+ check([serdi, '-k', str(2**63 - 1)])
+ check([serdi, '-k', '1024junk'])
check([serdi, '-o', 'illegal'])
check([serdi, '-o'])
check([serdi, '-p'])