Introduce common generic header file
[librseq.git] / tests / run_param_test.tap
index 7501a6c0c13ff638ea9eaf8bdd342ad67fff4c21..ad6fbff518fd539d90d7c2f67a17bb183517252f 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
-# SPDX-License-Identifier: GPL-2.0+ or MIT
+# SPDX-License-Identifier: MIT
+# SPDX-FileCopyrightText: 2020 EfficiOS Inc.
 
 SH_TAP=1
 
@@ -31,6 +32,18 @@ function do_test()
 
        "$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()
@@ -44,6 +57,7 @@ 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()
@@ -75,7 +89,7 @@ function do_tests_inject()
 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"
This page took 0.022292 seconds and 4 git commands to generate.