From 7f328ba6990044b0a9d510060a2dcd468cf0fd9f Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Wed, 8 May 2013 21:43:09 +0200 Subject: Add XZ tdeioslave Based on KDE GIT commit bbe9e8f5 --- tdeio/magic | 3 +++ tdeio/tests/kfiltertest.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+) (limited to 'tdeio') diff --git a/tdeio/magic b/tdeio/magic index c12cec4ba..6356a04c1 100644 --- a/tdeio/magic +++ b/tdeio/magic @@ -484,6 +484,9 @@ # ACE archive 7 string **ACE** application/x-ace +# XZ +0 string \0fd\037\07a\058\05a\000 application/x-xz + #------------------------------------------------------------------------------ # frame: file(1) magic for FrameMaker files diff --git a/tdeio/tests/kfiltertest.cpp b/tdeio/tests/kfiltertest.cpp index 1922e207e..f16b957ab 100644 --- a/tdeio/tests/kfiltertest.cpp +++ b/tdeio/tests/kfiltertest.cpp @@ -94,11 +94,14 @@ int main() getcwd( currentdir, PATH_MAX ); TQString pathgz = TQFile::decodeName(currentdir) + "/test.gz"; TQString pathbz2 = TQFile::decodeName(currentdir) + "/test.bz2"; + TQString pathxz = TQFile::decodeName(currentdir) + "/test.xz"; kdDebug() << " -- test_block_write gzip -- " << endl; test_block_write(pathgz); kdDebug() << " -- test_block_write bzip2 -- " << endl; test_block_write(pathbz2); + kdDebug() << " -- test_block_write xz -- " << endl; + test_block_write(pathxz); kdDebug() << " -- test_block gzip -- " << endl; test_block(pathgz); @@ -114,5 +117,12 @@ int main() kdDebug() << " -- test_textstream bzip2 -- " << endl; test_textstream(pathbz2); + kdDebug() << " -- test_block xz -- " << endl; + test_block(pathxz); + kdDebug() << " -- test_getch xz -- " << endl; + test_getch(pathxz); + kdDebug() << " -- test_textstream xz -- " << endl; + test_textstream(pathxz); + return 0; } -- cgit v1.2.1