Last change
on this file since 55 was
55,
checked in by meunier, 11 years ago
|
Tried to clean the test_regression directory:
- Code formatting
- Supressed warnings
- Made comprehensible outputs
- Factorized Makefiles
There's still a lot to do (many tests don't pass for either good or bad reasons)
|
File size:
869 bytes
|
Rev | Line | |
---|
[55] | 1 | |
---|
[1] | 2 | include ../env.mk |
---|
[55] | 3 | RES1 = systemcass_a_nodynamiclink_10.txt |
---|
| 4 | RES2 = systemcass_p_nodynamiclink_10.txt |
---|
| 5 | RES3 = systemcass_m_nodynamiclink_10.txt |
---|
| 6 | RES4 = systemcass_dynamiclink_10.txt |
---|
| 7 | ERASE = $(RES1) $(RES2) $(RES3) $(RES4) |
---|
| 8 | include ../Makefile.common |
---|
[1] | 9 | |
---|
[55] | 10 | test: $(SC_CASS) |
---|
| 11 | @echo -ne "| Testing $$(basename $$(pwd)): " ; |
---|
| 12 | @(./$(EXE_SCASS) --a --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES1) |
---|
| 13 | @(./$(EXE_SCASS) --p --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES2) |
---|
| 14 | @(./$(EXE_SCASS) --m --nodynamiclink 10 2> /dev/null ) | tail -n 5 > $(RES3) |
---|
| 15 | @(./$(EXE_SCASS) 10 2> /dev/null ) | tail -n 5 > $(RES4) |
---|
| 16 | @if diff $(RES1) $(RES2) > /dev/null ; then \ |
---|
| 17 | if diff $(RES1) $(RES3) > /dev/null ; then \ |
---|
| 18 | if diff $(RES1) $(RES4) > /dev/null ; then \ |
---|
| 19 | echo "OK" ; \ |
---|
| 20 | else \ |
---|
| 21 | echo "KO" ; \ |
---|
| 22 | fi ; \ |
---|
| 23 | else \ |
---|
| 24 | echo "KO" ; \ |
---|
| 25 | fi ; \ |
---|
| 26 | else \ |
---|
| 27 | echo "KO" ; \ |
---|
| 28 | fi ; |
---|
[1] | 29 | |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.