Last change
on this file since 1054 was 1054, checked in by Bruno Cornec, 17 years ago |
- Backporting more trunk content into stable
- Adding the test and lib directories
- Preparing for l10n
|
-
Property svn:executable
set to
*
|
File size:
597 bytes
|
Rev | Line | |
---|
[1054] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # $Id$
|
---|
| 4 | #
|
---|
| 5 | # test script for library functions
|
---|
| 6 | #
|
---|
| 7 |
|
---|
| 8 | lib="../lib/mr_conf.c ../lib/mr_msg.c ../lib/mr_err.c ../lib/mr_mem.c"
|
---|
| 9 |
|
---|
| 10 | echo "Generating test-msg"
|
---|
| 11 | gcc -O2 -g -I../common -I../include test-msg.c $lib -o test-msg
|
---|
| 12 | echo "Generating test-string"
|
---|
| 13 | gcc -O2 -g -I../common -I../include test-string.c ../lib/mr_str.c $lib -o test-string
|
---|
| 14 | echo "Generating test-conf"
|
---|
| 15 | gcc -O2 -g -I../common -I../include test-conf.c $lib -o test-conf
|
---|
| 16 |
|
---|
| 17 | for f in test-conf test-string test-msg; do
|
---|
| 18 | chmod 755 $f
|
---|
| 19 | ./$f > /tmp/$f.res
|
---|
| 20 | diff -q $f.res /tmp/$f.res
|
---|
| 21 | if [ $? -ne 0 ]; then
|
---|
| 22 | echo "$f test KO !!"
|
---|
| 23 | fi
|
---|
| 24 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.