By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 2695
Collapse All | Expand All

(-)a/tdeabc/vcardparser/CMakeLists.txt (-25 / +17 lines)
Lines 90-123 tde_add_executable( testvcardformatimpl Link Here
90
  LINK ${TDEABC_TESTS_LINK}
90
  LINK ${TDEABC_TESTS_LINK}
91
)
91
)
92
92
93
add_custom_target(test ALL echo "performing tests on vcardparser"
93
add_custom_target( vcardparser_tests ALL
94
   COMMAND bash ./test.sh
94
  COMMENT "[VCardParser] Performing tests"
95
   DEPENDS testing
95
  COMMAND rm -f ${CMAKE_CURRENT_BINARY_DIR}/FAILED
96
   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
96
  DEPENDS
97
)
97
    testvcardformatimpl testvcardformat testwrite2 testwrite testread2 testread
98
99
add_custom_target(testing ALL echo "creating test infrastructure"
100
   DEPENDS testvcardformatimpl testvcardformat testwrite2 testwrite testread2 testread
101
   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
102
)
103
104
add_custom_command(
105
  TARGET testing PRE_BUILD
106
  COMMAND test
107
  ARGS -f ${CMAKE_CURRENT_BINARY_DIR}/test.sh || ln -s ${CMAKE_SOURCE_DIR}/tdeabc/vcardparser/test.sh ${CMAKE_CURRENT_BINARY_DIR}
108
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
98
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
109
)
99
)
110
100
111
add_custom_command(
101
file( GLOB vcardparser_testfiles "tests/*.vcf" )
112
  TARGET testing PRE_BUILD
102
list( REMOVE_ITEM vcardparser_testfiles "${CMAKE_CURRENT_SOURCE_DIR}/tests/vcard5.vcf" )
113
  COMMAND test
103
list( SORT vcardparser_testfiles )
114
  ARGS -f ${CMAKE_CURRENT_BINARY_DIR}/checkvcard.pl || ln -s ${CMAKE_SOURCE_DIR}/tdeabc/vcardparser/checkvcard.pl ${CMAKE_CURRENT_BINARY_DIR}
104
115
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
105
foreach(testfile ${vcardparser_testfiles})
116
)
106
  add_custom_command(
107
    TARGET vcardparser_tests
108
    COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/checkvcard.pl ${testfile}
109
  )
110
endforeach(testfile)
117
111
118
add_custom_command(
112
add_custom_command(
119
  TARGET testing PRE_BUILD
113
  TARGET vcardparser_tests
120
  COMMAND test
114
  COMMAND test ! -f ${CMAKE_CURRENT_BINARY_DIR}/FAILED
121
  ARGS -d ${CMAKE_CURRENT_BINARY_DIR}/tests || ln -s ${CMAKE_SOURCE_DIR}/tdeabc/vcardparser/tests ${CMAKE_CURRENT_BINARY_DIR}
122
  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
123
)
115
)
(-)a/tdeabc/vcardparser/test.sh (-11 lines)
Lines 1-11 Link Here
1
TESTFILES="vcard1.vcf vcard2.vcf vcard3.vcf vcard4.vcf vcard6.vcf vcard7.vcf vcard8.vcf vcard9.vcf"
2
3
test -f FAILED && rm -f FAILED
4
for i in $TESTFILES;
5
  do perl ./checkvcard.pl ./tests/$i ;
6
done;
7
8
if [ -f FAILED ]; then
9
	echo ERROR
10
	exit 1
11
fi

Return to bug 2695