blob: bbc7930bb850632616f25d6faf9c62bc13acc2f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#
# Compile at the maximum warning level to probe for warnings
#
#MCS=mono ../mcs/mcs.exe --wlevel 4 # for linux
MCS=../mcs/mcs.exe --wlevel 4 # for windows
all:
@ failed=false; \
for i in cs*.cs; do \
case $$i in \
cs[0-9]*-[0-9]*cs) \
error=`echo $$i | sed -e 's/cs*//' -e 's/.cs//' -e 's/-.*//'`; \
;;\
cs[0-9-]*cs) \
error=`echo $$i | sed -e 's/cs*//' -e 's/.cs//'`; \
;;\
esac; \
echo -n "Running test $$i ... "; \
if $(MCS) --unsafe --expect-error $$error $$i > /dev/null; \
then echo OK; \
else echo FAILED; \
flist="$$flist $$i"; \
failed=true; \
fi; \
done; \
if $$failed; then \
echo "The following tests failed: $$flist"; \
else \
echo All tests passed; \
fi
|