[lasem] tests: add a simple script that test fuzzed files continuously until a crash.



commit 634d27ddcc3ae0e0de784bdf3bafe255f5155b43
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri May 6 18:15:13 2011 +0200

    tests: add a simple script that test fuzzed files continuously until a crash.

 tests/fuzztest.sh |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/tests/fuzztest.sh b/tests/fuzztest.sh
new file mode 100755
index 0000000..3a997d3
--- /dev/null
+++ b/tests/fuzztest.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+while true ; do
+	../tools/fuzzxml -r 0.1 $1 fuzz.xml
+
+	if ../src/lasem-render-0.4 fuzz.xml -o fuzz.png ; then
+		echo "Fuzzed file processed correctly"
+	else
+		echo "Oops ! Crash file detected..."
+		exit
+	fi
+done



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]