git » libjio » commit 1dfdcca

Remove recovery tests

author Alberto Bertogli
2009-03-09 06:06:00 UTC
committer Alberto Bertogli
2009-03-26 22:59:27 UTC
parent 4f92a29cbc6511bb44baf2ec6099bebec907f229

Remove recovery tests

They're not really useful anymore, it makes no sense to keep them around.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/recovery/.1.jio/2 +0 -0
tests/recovery/.1.jio/3 +0 -0
tests/recovery/.1.jio/4 +0 -1
tests/recovery/.1.jio/5 +0 -1
tests/recovery/.1.jio/6 +0 -1
tests/recovery/.1.jio/7 +0 -0
tests/recovery/.1.jio/desc +0 -9
tests/recovery/.1.jio/lock +0 -0
tests/recovery/1 +0 -1
tests/recovery/mklock +0 -25
tests/recovery/mktrans +0 -48

diff --git a/tests/recovery/.1.jio/2 b/tests/recovery/.1.jio/2
deleted file mode 100644
index 4917df2..0000000
Binary files a/tests/recovery/.1.jio/2 and /dev/null differ
diff --git a/tests/recovery/.1.jio/3 b/tests/recovery/.1.jio/3
deleted file mode 100644
index dba9ab9..0000000
Binary files a/tests/recovery/.1.jio/3 and /dev/null differ
diff --git a/tests/recovery/.1.jio/4 b/tests/recovery/.1.jio/4
deleted file mode 100644
index e1a12b8..0000000
--- a/tests/recovery/.1.jio/4
+++ /dev/null
@@ -1 +0,0 @@
-\xef,\xbf\xf5\xfb\xb8*6\x97@\x87gi*\x9c7!2\xc8	󯩄
\ No newline at end of file
diff --git a/tests/recovery/.1.jio/5 b/tests/recovery/.1.jio/5
deleted file mode 100644
index a781fd3..0000000
--- a/tests/recovery/.1.jio/5
+++ /dev/null
@@ -1 +0,0 @@
-XU\xc1\x8dXP_,\xd9`\\xafߋ(\xd3R*\x83\xbe\xde\xe7C\xea\xcf
\ No newline at end of file
diff --git a/tests/recovery/.1.jio/6 b/tests/recovery/.1.jio/6
deleted file mode 100644
index bd9a8b2..0000000
--- a/tests/recovery/.1.jio/6
+++ /dev/null
@@ -1 +0,0 @@
-I\xbf\xe6\x9ab\xccǁ\xbe\xcc|X\x8b<[FH,\xe2\xe3긭\xa9\x81Z	\xbbK<\
\ No newline at end of file
diff --git a/tests/recovery/.1.jio/7 b/tests/recovery/.1.jio/7
deleted file mode 100644
index 5733512..0000000
Binary files a/tests/recovery/.1.jio/7 and /dev/null differ
diff --git a/tests/recovery/.1.jio/desc b/tests/recovery/.1.jio/desc
deleted file mode 100644
index 7f6996f..0000000
--- a/tests/recovery/.1.jio/desc
+++ /dev/null
@@ -1,9 +0,0 @@
-
-1	valid					Rollbacked
-2	pdata too big				Broken body
-3	udata too big, pdata too small		Broken body
-4	random data, short header		Broken header
-5	random data, header lenght ok		Broken body
-6	random data, long file			Broken body
-7	valid, shorten the file via ftruncate	Rollbacked
-
diff --git a/tests/recovery/.1.jio/lock b/tests/recovery/.1.jio/lock
deleted file mode 100644
index 593f470..0000000
Binary files a/tests/recovery/.1.jio/lock and /dev/null differ
diff --git a/tests/recovery/1 b/tests/recovery/1
deleted file mode 100644
index 8b450bf..0000000
--- a/tests/recovery/1
+++ /dev/null
@@ -1 +0,0 @@
-smaller
\ No newline at end of file
diff --git a/tests/recovery/mklock b/tests/recovery/mklock
deleted file mode 100644
index d0ef9e3..0000000
--- a/tests/recovery/mklock
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-
-"Generate a lock file"
-
-import sys
-import struct
-
-if sys.argv < 3:
-	print "Use: mklock filename number"
-	sys.exit(1)
-
-try:
-	n = int(sys.argv[2])
-except:
-	print "Use: mlock filename number"
-	sys.exit(1)
-
-fd = open(sys.argv[1], "w");
-
-s = struct.pack("I", n)
-
-fd.write(s)
-
-fd.close()
-
diff --git a/tests/recovery/mktrans b/tests/recovery/mktrans
deleted file mode 100644
index 1fa6894..0000000
--- a/tests/recovery/mktrans
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env python
-
-"Generate a transaction file"
-
-import sys
-import struct
-
-def help():
-	print "Use: mktrans tfile tid flags len plen ulen offset udata pdata"
-	sys.exit(1)
-
-
-if sys.argv < 10:
-	help()
-
-try:
-	file = sys.argv[1]
-	tid = int(sys.argv[2])
-	flags = int(sys.argv[3])
-	dlen = int(sys.argv[4])
-	plen = int(sys.argv[5])
-	ulen = int(sys.argv[6])
-	offset = int(sys.argv[7])
-	udata = sys.argv[8]
-	pdata = sys.argv[9]
-except:
-	help()
-
-fd = open(file, "w");
-
-s = struct.pack("IIIIIQ%ds%ds" % (len(udata), len(pdata)),\
-		tid, flags, dlen, plen, ulen, offset, \
-		udata, pdata)
-
-print 'tid:', tid
-print 'flags:', flags
-print 'dlen:', dlen
-print 'plen:', plen
-print 'ulen:', ulen
-print 'offset:', offset
-print 'udata: +%s+' % udata
-print 'pdata: +%s+' % pdata
-print 'total lenght:', len(s)
-
-fd.write(s)
-
-fd.close()
-