#!/bin/bash
-# SPDX-License-Identifier: GPL-2.0+ or MIT
+# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: 2020 EfficiOS Inc.
SH_TAP=1
"$RSEQ_TESTS_BUILDDIR"/param_test_compare_twice "${args[@]}" -r ${REPS} -t ${NR_THREADS} "${EXTRA_ARGS[@]}"
ok $? "Running compare-twice test ${test_name}"
+
+ "$RSEQ_TESTS_BUILDDIR"/param_test_mm_cid "${args[@]}" -r ${REPS} -t ${NR_THREADS} "${EXTRA_ARGS[@]}"
+ res=$?
+ skip $(($res != 2 )) "Running mm_cid test ${test_name}" 1 || {
+ ok $res "Running mm_cid test ${test_name}"
+ }
+
+ "$RSEQ_TESTS_BUILDDIR"/param_test_mm_cid_compare_twice "${args[@]}" -r ${REPS} -t ${NR_THREADS} "${EXTRA_ARGS[@]}"
+ res=$?
+ skip $(($res != 2)) "Running compare-twice mm_cid test ${test_name}" 1 || {
+ ok $res "Running compare-twice mm_cid test ${test_name}"
+ }
}
function do_tests()
do_test "memcpy" -T m "${@}"
do_test "memcpy with barrier" -T m -M "${@}"
do_test "increment" -T i "${@}"
+ do_test "membarrier" -T r "${@}"
}
function do_tests_loops()
if [[ $? == 2 ]]; then
plan_skip_all "The rseq syscall is unavailable"
else
- plan_tests $(( 2 * 7 * 37 ))
+ plan_tests $(( 4 * 8 * 37 ))
fi
diag "Default parameters"