This can be used to skip tests that require that the machine executing
the tests has the same byteorder as the test executable.
Useful for tests emulated with qemu-user.
fi
}
+function ts_check_native_byteorder {
+ if [ "$QEMU_USER" == "1" ] && [ ! -e /sys/kernel/cpu_byteorder ]; then
+ ts_skip "non-native byteorder"
+ fi
+}
+
function ts_report_skip {
ts_report " SKIPPED ($1)"
}
ts_check_test_command "$TS_CMD_LSFD"
ts_check_test_command "$TS_HELPER_MKFDS"
-ts_skip_qemu_user
+ts_check_native_byteorder
ts_cd "$TS_OUTDIR"
ts_check_test_command "$TS_CMD_LSFD"
ts_check_test_command "$TS_HELPER_MKFDS"
-ts_skip_qemu_user
+ts_check_native_byteorder
ts_cd "$TS_OUTDIR"