summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2010-11-09 20:22:44 +0000
committerBruno Dilly <bdilly@profusion.mobi>2010-11-09 20:22:44 +0000
commitb8602362df148a34c1212cff383ee6d83785fefa (patch)
treecef222e31534674432c202d08e921cd8e5e55c9f /tests
parent0dd9c7c1b6c1a9b426961bccc5a56a49e5f4560b (diff)
Blacklist some false positives on elm test_setter.sh
SVN revision: 54373
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_setter.sh6
-rw-r--r--tests/test_setter_blacklist.txt17
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_setter.sh b/tests/test_setter.sh
index 8b82532..eef7200 100755
--- a/tests/test_setter.sh
+++ b/tests/test_setter.sh
@@ -1,9 +1,15 @@
1#!/bin/bash 1#!/bin/bash
2ret=0 2ret=0
3 3
4BLACKLIST="tests/test_setter_blacklist.txt"
5
4check(){ 6check(){
5 func=$(echo $1 | grep -oe '_\?elm_\w\+') 7 func=$(echo $1 | grep -oe '_\?elm_\w\+')
6 base=${func%_set} 8 base=${func%_set}
9 cat $BLACKLIST | grep -q $func
10 if [ $? == 0 ];then
11 return
12 fi
7 echo $1 | grep -qe "_set(const \+[^\(char \+\*\)]" 13 echo $1 | grep -qe "_set(const \+[^\(char \+\*\)]"
8 if [ $? == 0 ];then 14 if [ $? == 0 ];then
9 echo -e "\e[31;1mCONST\e[m\t $func" 15 echo -e "\e[31;1mCONST\e[m\t $func"
diff --git a/tests/test_setter_blacklist.txt b/tests/test_setter_blacklist.txt
new file mode 100644
index 0000000..63f3006
--- /dev/null
+++ b/tests/test_setter_blacklist.txt
@@ -0,0 +1,17 @@
1elm_widget_del_hook_set
2elm_widget_del_pre_hook_set
3elm_widget_focus_hook_set
4elm_widget_activate_hook_set
5elm_widget_disable_hook_set
6elm_widget_theme_hook_set
7elm_widget_event_hook_set
8elm_widget_changed_hook_set
9elm_widget_signal_emit_hook_set
10elm_widget_signal_callback_add_hook_set
11elm_widget_signal_callback_del_hook_set
12elm_widget_focus_next_hook_set
13elm_widget_on_focus_hook_set
14elm_widget_on_change_hook_set
15elm_widget_on_show_region_hook_set
16elm_widget_focus_region_hook_set
17elm_widget_on_focus_region_hook_set