|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
|
|
|
|
|
int main( int argc, char **argv )
|
|
|
|
|
{
|
|
|
|
|
setenv("GNUPGHOME", KDESRCDIR "/gnupg_home", 1 );
|
|
|
|
|
setenv("GNUPGHOME", TDESRCDIR "/gnupg_home", 1 );
|
|
|
|
|
setenv("LC_ALL", "C", 1);
|
|
|
|
|
setenv("TDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.kde-unit-test" ), 1);
|
|
|
|
|
|
|
|
|
@ -57,8 +57,8 @@ int main( int argc, char **argv )
|
|
|
|
|
KCmdLineArgs::init( argc, argv, &aboutData );
|
|
|
|
|
KApplication app( false, false );
|
|
|
|
|
|
|
|
|
|
const TQString sigFileName = KDESRCDIR "/test.data.sig";
|
|
|
|
|
const TQString dataFileName = KDESRCDIR "/test.data";
|
|
|
|
|
const TQString sigFileName = TDESRCDIR "/test.data.sig";
|
|
|
|
|
const TQString dataFileName = TDESRCDIR "/test.data";
|
|
|
|
|
|
|
|
|
|
TQFile sigFile( sigFileName );
|
|
|
|
|
assert( sigFile.open( IO_ReadOnly ) );
|
|
|
|
@ -77,7 +77,7 @@ int main( int argc, char **argv )
|
|
|
|
|
assert( sig.creationTime() == 1189650248L );
|
|
|
|
|
assert( sig.validity() == GpgME::Signature::Full );
|
|
|
|
|
|
|
|
|
|
const TQString opaqueFileName = KDESRCDIR "/test.data.gpg";
|
|
|
|
|
const TQString opaqueFileName = TDESRCDIR "/test.data.gpg";
|
|
|
|
|
TQFile opaqueFile( opaqueFileName );
|
|
|
|
|
assert( opaqueFile.open( IO_ReadOnly ) );
|
|
|
|
|
TQByteArray clearText;
|
|
|
|
|