Fix: tests: skip tests on static build
[lttng-tools.git] / tests / regression / ust / clock-override / test_clock_override
index d462926f8d5d26ecee340159e4a9194772b621dd..722e7315849f6763893a46215f931d736582d18b 100755 (executable)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with this library; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
-TEST_DESC="UST - Getcpu override plugin"
+TEST_DESC="UST - Clock override plugin"
 
 CURDIR=$(dirname $0)/
 TESTDIR=$CURDIR/../../..
@@ -49,10 +49,6 @@ NUM_TESTS=33
 
 source $TESTDIR/utils/utils.sh
 
-if [ ! -x "$CURDIR/$LIBS_DIR/$LTTNG_UST_CLOCK_PLUGIN_SO" ]; then
-       BAIL_OUT "No shared object generated"
-fi
-
 # MUST set TESTDIR before calling those functions
 function run_app()
 {
@@ -167,6 +163,14 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
+if [ -x "$CURDIR/$LIBS_DIR/$LTTNG_UST_CLOCK_PLUGIN_SO" ]; then
+       foundobj=1
+else
+       foundobj=0
+fi
+
+skip $foundobj "No shared object generated. Skipping all tests." $NUM_TESTS && exit 0
+
 TESTS=(
        "test_getcpu_override_metadata"
        "test_getcpu_override_timestamp"
This page took 0.024171 seconds and 4 git commands to generate.