This website works better with JavaScript.
Home
Explore
Help
Sign In
piumarta
/
ccmeta
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added test script
master
Nathan R
3 years ago
parent
85b2f7a8b3
commit
9f2caa77fd
1 changed files
with
34 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+34
-0
dotest
+ 34
- 0
dotest
View File
@ -0,0 +1,34 @@
#!/bin/sh
if test $# -gt 0; then
run="$@"
else
run="./ccmeta"
fi
die()
{
diff $1 $2 | head -20
exit 1
}
for i in tests-std/*.c; do
echo $i
j="${i%.c}.out"
$run < $i > $j
cmp $i $j || die $i $j
done
for i in tests-gnu/*.c; do
echo $i
j="${i%.c}.out"
$run < $i > $j
cmp $i $j || die $i $j
done
for i in tests-err/*.c; do
echo $i
j="${i%.c}.out"
$run < $i > $j
cmp -s $i $j || echo failed
done
Write
Preview
Loading…
Cancel
Save