From 052bdb5899bb723b6d375c66ab2ceab028adab06 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 21 Oct 2015 12:00:03 -0400 Subject: core: use syscall wrappers instead of direct syscalls - regression test various xlators and other components are invoking system calls directly instead of using the libglusterfs/syscall.[ch] wrappers. If not using the system call wrappers there should be a comment in the source explaining why the wrapper isn't used. Change-Id: Id2207deb81a75e1af6f34bf857e74725f8bb532f BUG: 1267967 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/12410 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Jeff Darcy --- tests/basic/0symbol-check.t | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 tests/basic/0symbol-check.t (limited to 'tests/basic/0symbol-check.t') diff --git a/tests/basic/0symbol-check.t b/tests/basic/0symbol-check.t new file mode 100755 index 00000000000..d5b2ac4be86 --- /dev/null +++ b/tests/basic/0symbol-check.t @@ -0,0 +1,46 @@ +#!/bin/bash +# + +. $(dirname $0)/../include.rc + +buildscratch="" + +case $OSTYPE in +Linux) + ;; +*) + echo "Skip Linux specific test" >&2 + SKIP_TESTS + exit 0 + ;; +esac + +# look in the usual places for the build tree +if [ -d /build/scratch ]; then + buildscratch="/build/scratch" +else + # might be in developer's tree + if [ -d ./libglusterfs/src/.libs ]; then + buildscratch="." + elif [ -d ../libglusterfs/src/.libs]; then + buildscratch=".." + fi +fi + +if [ -z ${buildscratch} ]; then + echo "could find build tree in /build/scratch, . or .." >&2 + SKIP_TESTS + exit 0 +fi + +# check symbols + +rm -f ./.symbol-check-errors + +TEST find ${buildscratch} -name \*.o -exec ./tests/basic/symbol-check.sh {} \\\; + +TEST [ ! -e ./.symbol-check-errors ] + +rm -f ./.symbol-check-errors + +cleanup -- cgit