[Forensics-changes] [fcrackzip] 42/93: debian/test/: new
Giovani Augusto Ferreira
giovani-guest at moszumanska.debian.org
Wed Dec 28 03:06:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
giovani-guest pushed a commit to branch debian
in repository fcrackzip.
commit f31f7a866167bf3ac1838acdced2de8c920b0b30
Author: Jari Aalto <jari.aalto at cante.net>
Date: Tue Jan 5 20:41:50 2010 +0200
debian/test/: new
Signed-off-by: Jari Aalto <jari.aalto at cante.net>
---
debian/test/'test.zip | Bin 0 -> 496 bytes
debian/test/Makefile | 35 +++++++++++++++++++++++++++++++++++
debian/test/README | 4 ++++
debian/test/input.pass | 1 +
debian/test/password.txt | 1 +
debian/test/test.zip | Bin 0 -> 496 bytes
6 files changed, 41 insertions(+)
diff --git a/debian/test/'test.zip b/debian/test/'test.zip
new file mode 100644
index 0000000..96a8e15
Binary files /dev/null and b/debian/test/'test.zip differ
diff --git a/debian/test/Makefile b/debian/test/Makefile
new file mode 100644
index 0000000..0c3cd1e
--- /dev/null
+++ b/debian/test/Makefile
@@ -0,0 +1,35 @@
+# test functionality
+
+BIN = fcrackzip
+OPT = -c a -u -v -v
+LEN = -l 1-2
+PASS = -p aa
+OPTIONS = $(OPT) $(LEN)
+
+FILE = test.zip
+
+all: test1 test2 test3
+
+input.pass:
+ echo "aa" > $@
+
+$(FILE):
+ # create encrypted file, give 2 character password, like "ab"
+ # when asked
+ touch a b c
+ zip -e $(FILE) a b c
+ rm -f a b c
+
+test1: $(FILE)
+ # test simple crack
+ $(BIN) $(OPTIONS) $(PASS) $(FILE)
+
+test2:
+ # test special filename
+ $(BIN) $(OPTIONS) $(PASS) \'test.zip
+
+test3: input.pass
+ # test stdin
+ $(BIN) $(OPTIONS) -p - test.zip < input.pass
+
+# End of file
diff --git a/debian/test/README b/debian/test/README
new file mode 100644
index 0000000..24cbb49
--- /dev/null
+++ b/debian/test/README
@@ -0,0 +1,4 @@
+# To test functionality with these simple tests
+
+set -x
+fcrackzip
diff --git a/debian/test/input.pass b/debian/test/input.pass
new file mode 100644
index 0000000..46c1d61
--- /dev/null
+++ b/debian/test/input.pass
@@ -0,0 +1 @@
+cc
diff --git a/debian/test/password.txt b/debian/test/password.txt
new file mode 100644
index 0000000..81bf396
--- /dev/null
+++ b/debian/test/password.txt
@@ -0,0 +1 @@
+ab
diff --git a/debian/test/test.zip b/debian/test/test.zip
new file mode 100644
index 0000000..96a8e15
Binary files /dev/null and b/debian/test/test.zip differ
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/fcrackzip.git
More information about the forensics-changes
mailing list