Skip to content

Commit 92484aa

Browse files
committed
added script to run datastax benchmarks and changed test.pl to support inner class names
1 parent 9140a76 commit 92484aa

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

regression/run-datastax.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
test_cases=`find cbmc-java/datastax/ -name *.desc -exec dirname {} \;`
3+
./test.pl -c $1 ${test_cases}
4+
5+
count=0
6+
for test_case in ${test_cases}; do
7+
out_file=`find ${test_case} -name '*.out'`
8+
if grep -q "identifier.*not found" ${out_file}; then
9+
echo ${out_file}
10+
count=$((${count}+1))
11+
fi
12+
done;
13+
echo "Missing symbols: ${count}"

regression/test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ($$$$$)
107107
my $r;
108108
$result =~ s/\\/\\\\/g;
109109
$result =~ s/([^\\])\$/$1\\r\\\\?\$/;
110-
system("bash", "-c", "grep \$'$result' '$name/$output' >/dev/null");
110+
system("bash", "-c", "grep \$'$result' \"$name/$output\" >/dev/null");
111111
$r = ($included ? $? != 0 : $? == 0);
112112
if($r) {
113113
print LOG "$result [FAILED]\n";

0 commit comments

Comments
 (0)