aboutsummaryrefslogtreecommitdiff
path: root/tests/generate.py
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-11-05 18:18:35 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-11-05 18:18:35 +0100
commitab0d8a3828bfac12c343f29e90207cb8f6ba0a5d (patch)
tree4fe1d396e31c82495fa1fb7098ed6aee8d406f1f /tests/generate.py
parentefded187245327db5b89e754b2ab56196dfad393 (diff)
downloadlibssh-ab0d8a3828bfac12c343f29e90207cb8f6ba0a5d.tar.gz
libssh-ab0d8a3828bfac12c343f29e90207cb8f6ba0a5d.tar.xz
libssh-ab0d8a3828bfac12c343f29e90207cb8f6ba0a5d.zip
A few test cases for benchmarks
Diffstat (limited to 'tests/generate.py')
-rwxr-xr-xtests/generate.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/generate.py b/tests/generate.py
new file mode 100755
index 00000000..08c2d5b1
--- /dev/null
+++ b/tests/generate.py
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+import os
+a=""
+for i in xrange(4096):
+ a+=chr(i % 256);
+while True:
+ try:
+ os.write(1,a)
+ except:
+ exit(0)