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

« back to all changes in this revision

Viewing changes to Ag++/tests/test_03

  • 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 Object File from source file and link it afterwards"
2
 
main(){
3
 
        if  ( ${AGCC} -v2 --path src -c  -o Test03.o src/Test.cc );then true;else
4
 
                ERR_MSG="Failed executing '${AGCC} -v2 --path src -c  -o Test.o src/Test.cc'";
5
 
                return 0;
6
 
        fi;
7
 
        
8
 
        
9
 
        if [ ! -f Test03.o ];then
10
 
                ERR_MSG="Object file was not created";
11
 
                return 0;
12
 
        fi;
13
 
        
14
 
        
15
 
        if [  -f src/Test.acc ];then
16
 
                ERR_MSG="Intermediate .acc file was not deleted";
17
 
                return 0;
18
 
        fi;
19
 
        
20
 
        
21
 
        if  ( ${AGCC} -v2 --path src -o test03 Test03.o src/main.cc);then true;else
22
 
                ERR_MSG="Failed executing '${AGCC} -v2 --path src -o test Test03.o src/main.cc'";
 
2
 
 
3
main()
 
4
{
 
5
        mkdir src/bin
 
6
        mkdir src/obj
 
7
   
 
8
   OBJ="src/obj/Test03.o"
 
9
   BIN="src/bin/test03${EXT}"
 
10
 
 
11
        EXEC="${AGCC} -v2 --path src -c -o ${OBJ} src/Test.cc"
 
12
   if  (${EXEC});then true;else
 
13
                ERR_MSG="Failed executing '${EXEC}'";
 
14
                return 0;
 
15
        fi;
 
16
        
 
17
        if [ ! -f ${OBJ} ];then
 
18
                ERR_MSG="Object file '${OBJ}' was not created";
 
19
                return 0;
 
20
        fi;
 
21
 
 
22
 
 
23
        EXEC="${AGCC} -v2 --path src -o ${BIN} ${OBJ} src/main.cc"
 
24
        if  (${EXEC});then true;else
 
25
                ERR_MSG="Failed executing '${EXEC}";
23
26
        fi
24
27
        
25
 
        
26
 
        if [ ! -e test03 ];then
27
 
                ERR_MSG="Executble 'test03' was not created";
 
28
        if [ ! -e ${BIN} ];then
 
29
                ERR_MSG="Executable '${BIN}' was not created";
28
30
                return 0;
29
31
        fi;
30
32
        
31
 
        rm -f Test03.o test03
32
 
 
33
33
        return 1;
34
34
}
 
35
 
 
36
cleanup()
 
37
{
 
38
        rm -rf src/bin src/obj
 
39
}
 
40