tests/build.sh
author etisserant
Wed, 18 Jul 2007 11:57:36 +0200
changeset 43 37dd4e2fd2ec
parent 41 8998c8b24b60
child 44 3fb449ba9a72
permissions -rwxr-xr-x
Test IEC_LIB and fix bugs (EQ, GT et all)
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
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
     3
CFLAGS=$*
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     4
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
     5
../iec2cc STD_TEST.st -I ../lib 
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
     6
#2>/dev/null
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     7
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
     8
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
     9
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    10
gcc -I ../lib -c  STD_CONF.c $CFLAGS
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    11
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    12
gcc -I ../lib main.c STD_CONF.o STD_RESSOURCE.o $CFLAGS -l rt -o test