Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5156168
test-verify.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
709 B
Referenced Files
None
Subscribers
None
test-verify.sh
View Options
#!/bin/sh
. "${srcdir=.}/init.sh"
# We are not interested in triggering bugs in the compilers and tools
# (such as gcc 4.3.1 on openSUSE 11.0).
unset MALLOC_PERTURB_
# Rather than figure out how to invoke the compiler with the right
# include path ourselves, we let make do it:
(cd "$initial_cwd_" && rm -f test-verify.o \
&& $MAKE test-verify.o >/dev/null 2>&1) \
|| skip_ "cannot compile error-free"
# Now, prove that we encounter all expected compilation failures:
: >out
: >err
for i in 1 2 3 4 5; do
(cd "$initial_cwd_"
rm -f test-verify.o
$MAKE CFLAGS=-DEXP_FAIL=$i test-verify.o) >>out 2>>err \
&& { warn_ "compiler didn't detect verification failure $i"; fail=1; }
done
Exit $fail
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Wed, Jun 25, 11:43 PM (11 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1253324
Default Alt Text
test-verify.sh (709 B)
Attached To
Mode
rFRED fred
Attached
Detach File
Event Timeline
Log In to Comment