fixup testing

This commit is contained in:
Mike Frysinger 2008-03-24 06:30:21 +00:00
parent 7b08276fa8
commit 1c9c2f9fcf
6 changed files with 162 additions and 109 deletions

View File

@ -1 +1 @@
EINFO_1.0

View File

@ -1,26 +1,52 @@
ebegin ebegin
ebegin@@EINFO_1.0
ebeginv ebeginv
ebeginv@@EINFO_1.0
ebracket ebracket
ebracket@@EINFO_1.0
ecolor ecolor
ecolor@@EINFO_1.0
eend eend
eend@@EINFO_1.0
eendv eendv
eendv@@EINFO_1.0
eerror eerror
eerror@@EINFO_1.0
eerrorn eerrorn
eerrorn@@EINFO_1.0
eerrorx eerrorx
eerrorx@@EINFO_1.0
eindent eindent
eindent@@EINFO_1.0
eindentv eindentv
eindentv@@EINFO_1.0
einfo einfo
einfo@@EINFO_1.0
einfon einfon
einfon@@EINFO_1.0
einfov einfov
einfov@@EINFO_1.0
einfovn einfovn
einfovn@@EINFO_1.0
elog elog
elog@@EINFO_1.0
eoutdent eoutdent
eoutdent@@EINFO_1.0
eoutdentv eoutdentv
eoutdentv@@EINFO_1.0
eprefix eprefix
eprefix@@EINFO_1.0
ewarn ewarn
ewarn@@EINFO_1.0
ewarnn ewarnn
ewarnn@@EINFO_1.0
ewarnv ewarnv
ewarnv@@EINFO_1.0
ewarnvn ewarnvn
ewarnvn@@EINFO_1.0
ewarnx ewarnx
ewarnx@@EINFO_1.0
ewend ewend
ewend@@EINFO_1.0
ewendv ewendv
ewendv@@EINFO_1.0

View File

@ -1,65 +1,49 @@
rc_allow_plug rc_config_list
rc_env_bool rc_config_load
rc_exists rc_config_value
rc_filter_env rc_deptree_depend
rc_deptree_depends
rc_deptree_free
rc_deptree_load
rc_deptree_order
rc_deptree_update
rc_deptree_update_needed
rc_find_pids rc_find_pids
rc_free_deptree rc_getline
rc_get_config rc_newer_than
rc_get_config_entry
rc_get_depends
rc_get_depinfo
rc_get_deptype
rc_get_list
rc_get_runlevel
rc_get_runlevels
rc_get_service_option
rc_is_dir
rc_is_exec
rc_is_file
rc_is_link
rc_load_deptree
rc_ls_dir
rc_make_env
rc_mark_service
rc_order_services
rc_resolve_service
rc_rm_dir
rc_runlevel_exists rc_runlevel_exists
rc_runlevel_get
rc_runlevel_list
rc_runlevel_set
rc_runlevel_starting rc_runlevel_starting
rc_runlevel_stopping rc_runlevel_stopping
rc_schedule_clear
rc_schedule_start_service
rc_service_add rc_service_add
rc_service_daemons_crashed rc_service_daemons_crashed
rc_service_daemon_set
rc_service_delete rc_service_delete
rc_service_description rc_service_description
rc_service_exists rc_service_exists
rc_service_extra_commands
rc_service_in_runlevel rc_service_in_runlevel
rc_service_options rc_service_mark
rc_service_resolve
rc_service_schedule_clear
rc_service_schedule_start
rc_services_in_runlevel rc_services_in_runlevel
rc_services_in_state rc_services_in_state
rc_services_scheduled rc_services_scheduled
rc_services_scheduled_by rc_services_scheduled_by
rc_service_start
rc_service_started_daemon rc_service_started_daemon
rc_service_state rc_service_state
rc_set_runlevel rc_service_stop
rc_set_service_daemon rc_service_value_get
rc_set_service_option rc_service_value_set
rc_start_service rc_stringlist_add
rc_stop_service rc_stringlist_addu
rc_strcatpaths rc_stringlist_delete
rc_strlist_add rc_stringlist_free
rc_strlist_addsort rc_stringlist_new
rc_strlist_addsortc rc_stringlist_sort
rc_strlist_addsortu rc_sys
rc_strlist_addu rc_yesno
rc_strlist_delete
rc_strlist_free
rc_strlist_join
rc_strlist_reverse
rc_update_deptree
rc_waitpid
rc_wait_service
rc_xmalloc
rc_xrealloc
rc_xstrdup

View File

@ -1 +1,3 @@
RC_1.0
rc_environ_fd rc_environ_fd
rc_environ_fd@@RC_1.0

View File

@ -1,65 +1,96 @@
rc_allow_plug rc_config_list
rc_env_bool rc_config_list@@RC_1.0
rc_exists rc_config_load
rc_filter_env rc_config_load@@RC_1.0
rc_config_value
rc_config_value@@RC_1.0
rc_deptree_depend
rc_deptree_depend@@RC_1.0
rc_deptree_depends
rc_deptree_depends@@RC_1.0
rc_deptree_free
rc_deptree_free@@RC_1.0
rc_deptree_load
rc_deptree_load@@RC_1.0
rc_deptree_order
rc_deptree_order@@RC_1.0
rc_deptree_update
rc_deptree_update_needed
rc_deptree_update_needed@@RC_1.0
rc_deptree_update@@RC_1.0
rc_find_pids rc_find_pids
rc_free_deptree rc_find_pids@@RC_1.0
rc_get_config rc_newer_than
rc_get_config_entry rc_newer_than@@RC_1.0
rc_get_depends
rc_get_depinfo
rc_get_deptype
rc_get_list
rc_get_runlevel
rc_get_runlevels
rc_get_service_option
rc_is_dir
rc_is_exec
rc_is_file
rc_is_link
rc_load_deptree
rc_ls_dir
rc_make_env
rc_mark_service
rc_order_services
rc_resolve_service
rc_rm_dir
rc_runlevel_exists rc_runlevel_exists
rc_runlevel_exists@@RC_1.0
rc_runlevel_get
rc_runlevel_get@@RC_1.0
rc_runlevel_list
rc_runlevel_list@@RC_1.0
rc_runlevel_set
rc_runlevel_set@@RC_1.0
rc_runlevel_starting rc_runlevel_starting
rc_runlevel_starting@@RC_1.0
rc_runlevel_stopping rc_runlevel_stopping
rc_schedule_clear rc_runlevel_stopping@@RC_1.0
rc_schedule_start_service
rc_service_add rc_service_add
rc_service_add@@RC_1.0
rc_service_daemons_crashed rc_service_daemons_crashed
rc_service_daemons_crashed@@RC_1.0
rc_service_daemon_set
rc_service_daemon_set@@RC_1.0
rc_service_delete rc_service_delete
rc_service_delete@@RC_1.0
rc_service_description rc_service_description
rc_service_description@@RC_1.0
rc_service_exists rc_service_exists
rc_service_exists@@RC_1.0
rc_service_extra_commands
rc_service_extra_commands@@RC_1.0
rc_service_in_runlevel rc_service_in_runlevel
rc_service_options rc_service_in_runlevel@@RC_1.0
rc_service_mark
rc_service_mark@@RC_1.0
rc_service_resolve
rc_service_resolve@@RC_1.0
rc_service_schedule_clear
rc_service_schedule_clear@@RC_1.0
rc_service_schedule_start
rc_service_schedule_start@@RC_1.0
rc_services_in_runlevel rc_services_in_runlevel
rc_services_in_runlevel@@RC_1.0
rc_services_in_state rc_services_in_state
rc_services_in_state@@RC_1.0
rc_services_scheduled rc_services_scheduled
rc_services_scheduled_by rc_services_scheduled_by
rc_services_scheduled_by@@RC_1.0
rc_services_scheduled@@RC_1.0
rc_service_start
rc_service_started_daemon rc_service_started_daemon
rc_service_started_daemon@@RC_1.0
rc_service_start@@RC_1.0
rc_service_state rc_service_state
rc_set_runlevel rc_service_state@@RC_1.0
rc_set_service_daemon rc_service_stop
rc_set_service_option rc_service_stop@@RC_1.0
rc_start_service rc_service_value_get
rc_stop_service rc_service_value_get@@RC_1.0
rc_strcatpaths rc_service_value_set
rc_strlist_add rc_service_value_set@@RC_1.0
rc_strlist_addsort rc_stringlist_add
rc_strlist_addsortc rc_stringlist_add@@RC_1.0
rc_strlist_addsortu rc_stringlist_addu
rc_strlist_addu rc_stringlist_addu@@RC_1.0
rc_strlist_delete rc_stringlist_delete
rc_strlist_free rc_stringlist_delete@@RC_1.0
rc_strlist_join rc_stringlist_free
rc_strlist_reverse rc_stringlist_free@@RC_1.0
rc_update_deptree rc_stringlist_new
rc_waitpid rc_stringlist_new@@RC_1.0
rc_wait_service rc_stringlist_sort
rc_xmalloc rc_stringlist_sort@@RC_1.0
rc_xrealloc rc_sys
rc_xstrdup rc_sys@@RC_1.0
rc_yesno
rc_yesno@@RC_1.0

View File

@ -1,13 +1,23 @@
#!/bin/sh #!/bin/sh
top_srcdir=${top_srcdir:-../..} top_srcdir=${top_srcdir:-../..}
srcdir=${builddir:-..} srcdir=${builddir:-.}
top_builddir=${top_srcdir:-../..} top_builddir=${top_srcdir:-../..}
builddir=${builddir:-..} builddir=${builddir:-.}
export LD_LIBRARY_PATH=${builddir}:${LD_LIBRARY_PATH}
. ${top_srcdir}/sh/functions.sh . ${top_srcdir}/sh/functions.sh
export PATH=${builddir}:${PATH}
libeinfo_srcdir="${srcdir}/../libeinfo"
libeinfo_builddir="${builddir}/../libeinfo"
librc_srcdir="${srcdir}/../librc"
librc_builddir="${builddir}/../librc"
rc_srcdir="${srcdir}/../rc"
rc_builddir="${builddir}/../rc"
make -s -C ${rc_builddir} links
export LD_LIBRARY_PATH=${libeinfo_builddir}:${librc_builddir}:${LD_LIBRARY_PATH}
export PATH=${rc_builddir}:${PATH}
checkit() { checkit() {
local base=$1; shift local base=$1; shift
@ -21,14 +31,14 @@ ret=0
ebegin "Checking exported symbols in libeinfo.so (data)" ebegin "Checking exported symbols in libeinfo.so (data)"
checkit einfo.data $( checkit einfo.data $(
readelf -Ws ${builddir}/libeinfo.so \ readelf -Ws ${libeinfo_builddir}/libeinfo.so \
| awk '$4 == "OBJECT" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \ | awk '$4 == "OBJECT" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
| sort -u | sort -u
) )
ebegin "Checking exported symbols in libeinfo.so (functions)" ebegin "Checking exported symbols in libeinfo.so (functions)"
checkit einfo.funcs $( checkit einfo.funcs $(
readelf -Ws ${builddir}/libeinfo.so \ readelf -Ws ${libeinfo_builddir}/libeinfo.so \
| awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \ | awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
| sort -u \ | sort -u \
| egrep -v \ | egrep -v \
@ -37,14 +47,14 @@ readelf -Ws ${builddir}/libeinfo.so \
ebegin "Checking exported symbols in librc.so (data)" ebegin "Checking exported symbols in librc.so (data)"
checkit rc.data $( checkit rc.data $(
readelf -Ws ${builddir}/librc.so \ readelf -Ws ${librc_builddir}/librc.so \
| awk '$4 == "OBJECT" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \ | awk '$4 == "OBJECT" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
| sort -u | sort -u
) )
ebegin "Checking exported symbols in librc.so (functions)" ebegin "Checking exported symbols in librc.so (functions)"
checkit rc.funcs $( checkit rc.funcs $(
readelf -Ws ${builddir}/librc.so \ readelf -Ws ${librc_builddir}/librc.so \
| awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \ | awk '$4 == "FUNC" && $5 == "GLOBAL" && $7 != "UND" {print $NF}' \
| sort -u \ | sort -u \
| egrep -v \ | egrep -v \
@ -52,10 +62,10 @@ readelf -Ws ${builddir}/librc.so \
) )
ebegin "Checking hidden functions in librc.so" ebegin "Checking hidden functions in librc.so"
sed -n '/^librc_hidden_proto/s:.*(\(.*\))$:\1:p' ../librc.h \ sed -n '/^librc_hidden_proto/s:.*(\(.*\))$:\1:p' ${librc_srcdir}/librc.h \
| sort -u \ | sort -u \
> librc.funcs.hidden.list > librc.funcs.hidden.list
readelf -Wr $(grep -l '#include[[:space:]]"librc\.h"' ${builddir}/*.c | sed 's:\.c$:.o:') \ readelf -Wr $(grep -l '#include[[:space:]]"librc\.h"' ${librc_srcdir}/*.c | sed 's:\.c$:.o:') \
| awk '$5 ~ /^rc_/ {print $5}' \ | awk '$5 ~ /^rc_/ {print $5}' \
| sort -u \ | sort -u \
| egrep -v '^rc_environ_fd$' \ | egrep -v '^rc_environ_fd$' \