tests/build.sh
author etisserant
Wed, 01 Aug 2007 13:50:14 +0200
changeset 48 3d24cc85bb3c
parent 44 3fb449ba9a72
child 55 8b7a21820737
permissions -rwxr-xr-x
Fixed some problems win 32 bits GCC and Long Long literals
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     1
#!/bin/bash
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     2
44
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     3
STFILE=$1
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     4
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     5
shift
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     6
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
     7
CFLAGS=$*
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     8
44
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     9
../iec2cc $STFILE -I ../lib 
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    10
#2>/dev/null
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
    11
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    12
gcc -I ../lib -c STD_RESSOURCE.c $CFLAGS
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
    13
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    14
gcc -I ../lib -c  STD_CONF.c $CFLAGS
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    15
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    16
gcc -I ../lib main.c STD_CONF.o STD_RESSOURCE.o $CFLAGS -l rt -o test