SaturateAtoms_singleDegree
Last change
on this file since 19bfb5 was e674c9, checked in by Frederik Heber <heber@…>, 13 years ago |
FIX: Copy&paste error in tests/CodeChecks memdebug for variable ok.
- we had all the files from MoleCuilder in here, which are not needed.
|
-
Property mode
set to
100644
|
File size:
742 bytes
|
Line | |
---|
1 | AT_SETUP([Checking for present MemDebug.hpp include])
|
---|
2 | AT_KEYWORDS([CodeCheck MemDebug])
|
---|
3 | ok=""
|
---|
4 | echo `pwd`
|
---|
5 | echo "${#ok[*]} are ok to not contain MemDebug.hpp: ${ok[0]} ${ok[1]}."
|
---|
6 | liste=`find ${abs_top_srcdir}/src -name '*.cpp'`
|
---|
7 | for file in $liste
|
---|
8 | do
|
---|
9 | # check whether its one of the excluded ones
|
---|
10 | found=0
|
---|
11 | for item in $ok
|
---|
12 | do
|
---|
13 | if test "$item" == "`basename $file`"
|
---|
14 | then
|
---|
15 | found=1
|
---|
16 | break
|
---|
17 | fi
|
---|
18 | done
|
---|
19 | # if not, check whether it contains the include if its NOT a unit test
|
---|
20 | if test -z `echo $file | grep unittests`
|
---|
21 | then
|
---|
22 | if test $found -eq 0
|
---|
23 | then
|
---|
24 | AT_CHECK([egrep -q '^#include.*MemDebug.hpp' $file], 0, [ignore], [ignore], [echo "Could not find MemDebug.hpp include in $file."])
|
---|
25 | fi
|
---|
26 | fi
|
---|
27 | done
|
---|
28 | AT_CLEANUP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.