[gcab] Add some simple gcab tests



commit 7a5e8749c112123069585d9ccb34e9f0856cd65f
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Dec 14 15:28:23 2012 +0100

    Add some simple gcab tests

 tests/testsuite.at |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 2fdedc9..bbda884 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -33,3 +33,15 @@ AT_CHECK_GCAB([], [1], [ignore], [ignore])
 AT_CHECK_GCAB([out.cab], [1], [ignore], [ignore])
 AT_CHECK([test -f out.cab], [1])
 AT_CLEANUP
+
+AT_SETUP([Add one file])
+AT_DATA([test.txt], [This is test.txt
+])
+AT_CHECK_GCAB([out.cab test.txt])
+AT_CHECK([cabextract -ql out.cab | tail -n+3 |  cut -d'|' -f3], [0],
+[ test.txt
+])
+cp test.txt expout
+AT_CHECK([cabextract -q out.cab], [0])
+AT_CHECK([cat test.txt], [0], [expout])
+AT_CLEANUP



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