~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Ag++/tests/test_02

  • 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
 
DESC="Generate puma.config and weave source file afterwards"
2
 
main(){
3
 
        if  ( ${AGCC} --gen_config );then true;else
4
 
                ERR_MSG="Failed executing '${AGCC} --gen_config'";
 
1
DESC="Generate puma.config (default name) and weave source file afterwards using generated config"
 
2
 
 
3
main()
 
4
{       
 
5
   EXEC="${AGCC} --gen_config"
 
6
   if  ( ${EXEC} );then true;else
 
7
                ERR_MSG="Failed executing '${EXEC}'";
5
8
                return 0;
6
9
        fi;
7
10
 
9
12
                ERR_MSG="Puma configuration file was not created";
10
13
                return 0;
11
14
        fi;
12
 
        
13
 
        if  ( ${AGCC} --path src -o src/main.acc -v2 --weave_only --config puma.config  src/main.cc );then true;else
14
 
                ERR_MSG="Failed executing '${AGCC} -v2 --weave_only --config puma.config  src/main.cc'";
 
15
   
 
16
   EXEC="${AGCC} --path src -o src/main.acc -v2 --weave_only --config puma.config  src/main.cc" 
 
17
        if  ( ${EXEC} );then true;else
 
18
                ERR_MSG="Failed executing '${EXEC}'";
15
19
                return 0;
16
20
        fi;
17
21
        
18
22
        if [ ! -f src/main.acc ];then
19
 
                ERR_MSG="Intermediate acc file was not created";
 
23
                ERR_MSG="Acc file was not created";
20
24
                return 0;
21
25
        fi;
22
 
 
23
 
        
 
26
   
24
27
        return 1;
25
28
}
 
29
 
 
30
cleanup()
 
31
{
 
32
   rm -f puma.config src/main.acc
 
33
}