This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lcov -d . -c -o coverage.info | |
lcov --list-full-path -e coverage.info ${1} -o coverage-stripped.info | |
genhtml -o html-coverage coverage-stripped.info | |
lcov -d . -z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QMAKE_CXXFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0 | |
QMAKE_LFLAGS += -g -Wall -fprofile-arcs -ftest-coverage -O0 | |
LIBS += \ | |
-lgcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-xml > testresults.out && /<path_to_script>/processCoverage.sh "*/<name_of_Qt_project_to_test>/src/*" && <browser_executable> html-coverage/index.html & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-xml > testresults.out && /home/robert/bin/processCoverage.sh "*/libRowloSqlitePersistence/src/*" && /usr/bin/opera html-coverage/index.html & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/bin/leapd & | |
/usr/bin/LeapControlPanel & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QList<QObject*> buildObjectList() | |
{ | |
qint64 size = 10000000; | |
QList<QObject*> objectList; | |
for (int i = 0; i < size; i++) | |
{ | |
objectList << new QTimer(); | |
} | |
return objectList; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int k = 0; k < (list.size()/2); k++) list.swap(k,list.size()-(1+k)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int k = 0, max = (list.size()/2); k < max; k++) list.swap(k,list.size()-(1+k)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int k=0, s=list.size(), max=(s/2); k<max; k++) list.swap(k,s-(1+k)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QList<QObject*> buildObjectListWithReserve() | |
{ | |
qint64 size = 10000000; | |
QList<QObject*> objectList; | |
objectList.reserve(size); | |
for (int i = 0; i < size; i++) | |
{ | |
objectList << new QTimer(); | |
} | |
return objectList; |
OlderNewer