X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Fcli%2Fauto-source-discovery%2Ftest_auto_source_discovery;h=470df17e57b16b4b570a59115766642103249d29;hp=07b0475e95f5488628799dfba2523322be6896b8;hb=ff89ed28f8f411258190b9c1972a58af3d5c850e;hpb=d7fd29385b85f38cfbef2849c850951cff681b20 diff --git a/tests/cli/auto-source-discovery/test_auto_source_discovery b/tests/cli/auto-source-discovery/test_auto_source_discovery index 07b0475e..470df17e 100755 --- a/tests/cli/auto-source-discovery/test_auto_source_discovery +++ b/tests/cli/auto-source-discovery/test_auto_source_discovery @@ -26,7 +26,7 @@ fi # shellcheck source=../../utils/utils.sh SH_TAP=1 source "$UTILSSH" -NUM_TESTS=2 +NUM_TESTS=1 plan_tests $NUM_TESTS @@ -34,24 +34,31 @@ data_dir="${BT_TESTS_DATADIR}/cli/auto-source-discovery" plugin_dir="${data_dir}" trace_dir="${data_dir}/traces" -expected_file=$(mktemp expected.XXXXXX) -actual_file=$(mktemp actual.XXXXXX) +if [ "$BT_OS_TYPE" = "mingw" ]; then + # Use Windows native paths for comparison because Unix + # paths are converted by the shell before they are passed + # to the native babeltrace2 binary. + trace_dir=$(cygpath -w "$trace_dir") + dir_sep='\' +else + dir_sep='/' +fi -run_python_bt2 "$BT_TESTS_BT2_BIN" convert --plugin-path "${plugin_dir}" "ABCDE" "${trace_dir}" some_other_leftover | sort > "$actual_file" -ok "${PIPESTATUS[0]}" "successful execution" +expected_file=$(mktemp -t expected.XXXXXX) +stderr_expected=/dev/null cat > "$expected_file" <