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

« back to all changes in this revision

Viewing changes to Ag++/tests/test_09

  • 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="More than one project path"
2
 
main(){
3
 
        if  ( ${AGCC} -Isrc  -I additional_aspects --real-instances --path src --path additional_aspects -o test -v2 src/*.cc );then true;else
4
 
                ERR_MSG="Failed executing '${AGCC} --real-instances --path src --path additional_aspects -v2 src/*.cc'";
 
1
DESC="Multiple project paths"
 
2
 
 
3
main()
 
4
{
 
5
   mkdir src/bin
 
6
 
 
7
   BIN="src/bin/test09${EXT}"
 
8
 
 
9
   EXEC="${AGCC} -Isrc  -I additional_aspects --real-instances --path src --path additional_aspects -o ${BIN} -v2 src/*.cc"
 
10
        if  ( ${EXEC} );then true;else
 
11
                ERR_MSG="Failed executing '${EXEC}'";
5
12
                return 0;
6
13
        fi;
7
14
        
8
 
        if [ ! -e test ];then
9
 
                ERR_MSG="Executable 'test' was not generated";
 
15
        if [ ! -f ${BIN} ];then
 
16
                ERR_MSG="Executable '${BIN}' was not generated";
10
17
                return 0;
11
18
        else
12
 
                ./test > test_09.out;
 
19
                ${BIN} > test_09.out;
13
20
        fi;
14
21
 
15
22
        echo -n "\n\nDIFF:\n"
16
 
        if (  diff -w  test_09.out test_09.ref );then true;else
 
23
        if ( diff -w  test_09.out test_09.ref );then true;else
17
24
                ERR_MSG="Outputs differ: Probably the programm was not weaved correctly";
18
25
                return 0;
19
26
        fi;
20
27
        
21
 
 
22
 
        rm -f test test_09.out;
23
28
        return 1;
24
29
}
 
30
 
 
31
cleanup()
 
32
{
 
33
        rm -rf src/bin test_09.out;
 
34
}