bin/ai/regression/completeness.sh
branchnoai
changeset 10198 e88e56267777
parent 9812 4bc3062476c8
equal deleted inserted replaced
10197:45364e1f4a60 10198:e88e56267777
    18 	gsub(".*local", "local")
    18 	gsub(".*local", "local")
    19 	if (match($4, "^AI")) {
    19 	if (match($4, "^AI")) {
    20 		sub("\\(.*", "", $4)
    20 		sub("\\(.*", "", $4)
    21 		locals[$2] = $4
    21 		locals[$2] = $4
    22 	}
    22 	}
       
    23 }
       
    24 
       
    25 /Valuate/ {
       
    26 	gsub(".*Valuate\\(", "")
       
    27 	gsub("\\).*", "")
       
    28 	gsub(",.*", "")
       
    29 	gsub("\\.", "::")
       
    30 	print $0
    23 }
    31 }
    24 
    32 
    25 /\./ {
    33 /\./ {
    26 	for (local in locals) {
    34 	for (local in locals) {
    27 		if (match($0, local ".")) {
    35 		if (match($0, local ".")) {
    49 		print $0
    57 		print $0
    50 	}
    58 	}
    51 }
    59 }
    52 ' | sed 's/	//g' | sort | uniq > tmp.in_regression
    60 ' | sed 's/	//g' | sort | uniq > tmp.in_regression
    53 
    61 
    54 grep 'DefSQ.*Method' ../src/ai/api/*.hpp.sq | grep -v '::GetClassName' | sed 's/^[^,]*, &//g;s/,[^,]*//g' | sort > tmp.in_api
    62 grep 'DefSQ.*Method' ../src/ai/api/*.hpp.sq | grep -v 'AIError::' | grep -v 'AIAbstractList::Valuate' | grep -v '::GetClassName' | sed 's/^[^,]*, &//g;s/,[^,]*//g' | sort > tmp.in_api
    55 
    63 
    56 diff -u tmp.in_regression tmp.in_api | grep -v '^+++' | grep '^+' | sed 's/^+//'
    64 diff -u tmp.in_regression tmp.in_api | grep -v '^+++' | grep '^+' | sed 's/^+//'
    57 
    65 
    58 rm -f tmp.in_regression tmp.in_api
    66 rm -f tmp.in_regression tmp.in_api
    59 
    67