~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Ag++/tests/test_08

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
DESC="Generate dependencies"
2
 
main(){
3
 
        if  ( ${AGCC} --path src -v2  -MF dep.ag -M src/*.cc );then true;else
4
 
                ERR_MSG="Failed executing  '${AGCC} -v2 -MM -MF dep.ag'";
 
2
main()
 
3
{
 
4
   mkdir src/dep
 
5
 
 
6
   EXEC="${AGCC} --path src -v2  -MF src/dep/dep.ag -M src/*.cc"
 
7
        if  ( ${EXEC} );then true;else
 
8
                ERR_MSG="Failed executing  '${EXEC}'";
5
9
                return 0;
6
10
        fi;
7
11
        
8
 
        if [ ! -f dep.ag ];then
 
12
        if [ ! -f src/dep/dep.ag ];then
9
13
                ERR_MSG="File with dependency information was not generated";
10
14
                return 0;
11
15
        fi;
12
16
 
13
 
        g++ -include src/trace.ah -M -MF dep.g  src/*.cc;
 
17
        g++ -include src/trace.ah -M -MF src/dep/dep.g  src/*.cc;
14
18
        
15
19
        echo -e "\nDIFF BETWEEN FILES 'dep.g' and 'dep.ag': \n"
16
 
        if ( diff dep.g dep.ag );then true;else
17
 
                ERR_MSG="Dependency information differs between 'g++' and 'ag++' (files: 'dep.g' and 'dep.ag')";
 
20
        if ( diff src/dep/dep.g src/dep/dep.ag );then true;else
 
21
                ERR_MSG="Dependency information differs between 'g++' and 'ag++' (files: 'src/dep/dep.g' and 'src/dep/dep.ag')";
18
22
                return 0;
19
23
        fi;
20
24
 
21
 
        rm -rf dep.*;
22
25
        return 1;
23
26
}
 
27
 
 
28
cleanup()
 
29
{
 
30
        rm -rf src/dep;
 
31
}
 
32