Fixed vcardparser tests during building. This resolves bug 2695.

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>

Removed not-required part of the patch from original Emanoil's patch (empty spaces at the end of line)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Emanoil Kotsev 8 years ago committed by Michele Calgaro
parent 07dbb3b5c9
commit 13e032939e

@ -90,9 +90,14 @@ tde_add_executable( testvcardformatimpl
LINK ${TDEABC_TESTS_LINK} LINK ${TDEABC_TESTS_LINK}
) )
add_custom_target(testing ALL add_custom_target(test ALL echo "performing tests on vcardparser"
COMMAND echo "creating test infrastructure" COMMAND bash ./test.sh
DEPENDS testread DEPENDS testing
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_custom_target(testing ALL echo "creating test infrastructure"
DEPENDS testvcardformatimpl testvcardformat testwrite2 testwrite testread2 testread
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) )

@ -44,7 +44,8 @@ if ( $#refcont != $#prscont ) {
system "touch FAILED"; system "touch FAILED";
exit 1; exit 1;
} }
@prscont = sort @prscont;
@refcont = sort @refcont;
for (my $i=0; $i<=$#refcont; $i++) { for (my $i=0; $i<=$#refcont; $i++) {
if ( $refcont[$i] ne $prscont[$i] ) { if ( $refcont[$i] ne $prscont[$i] ) {
$error++; $error++;

@ -1,6 +1,11 @@
TESTFILES="vcard1.vcf vcard2.vcf vcard3.vcf vcard4.vcf vcard6.vcf vcard7.vcf vcard8.vcf vcard9.vcf" TESTFILES="vcard1.vcf vcard2.vcf vcard3.vcf vcard4.vcf vcard6.vcf vcard7.vcf vcard8.vcf vcard9.vcf"
test -f FAILED && rm -f FAILED; test -f FAILED && rm -f FAILED
for i in $TESTFILES; for i in $TESTFILES;
do perl ./checkvcard.pl ./tests/$i ; do perl ./checkvcard.pl ./tests/$i ;
done; done;
if [ -f FAILED ]; then
echo ERROR
exit 1
fi
Loading…
Cancel
Save