diff options
author | SzuWei Lin <szuweilin@google.com> | 2017-02-18 15:18:30 +0800 |
---|---|---|
committer | SzuWei Lin <szuweilin@google.com> | 2017-02-21 02:13:33 +0000 |
commit | f7403df4976562ecf2c1266e5f05f800037c8772 (patch) | |
tree | 163e1ed6785a797aba5136dfb2d1613c51b6639e /tests/gen_test.sh | |
parent | 2d6381a0ee75083e95a72e927209b7080707f0b3 (diff) | |
download | libufdt-f7403df4976562ecf2c1266e5f05f800037c8772.tar.gz |
Change libufdt test cases to compare with libfdt
The dtc adds a new function fdt_overlay_apply() to support DTO.
The original libufdt test cases used /include/ trick to compare
the test case result. Change to compare with the result of
fdt_overlay_apply().
Bug: 35495792
Test: run test scripts (see libufdt/tests/README)
Change-Id: Ied68c09c479ab09025574eb97c5ef3adf58253c4
Diffstat (limited to 'tests/gen_test.sh')
-rwxr-xr-x | tests/gen_test.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gen_test.sh b/tests/gen_test.sh index dcb6d2d..9b6d06c 100755 --- a/tests/gen_test.sh +++ b/tests/gen_test.sh @@ -31,12 +31,12 @@ trap on_exit EXIT TESTCASE_NAME=$1 BASE_DTS="$IN_DATA_DIR/${TESTCASE_NAME}-base.dts" OVERLAY_DTS="$IN_DATA_DIR/${TESTCASE_NAME}-overlay.dts" -INC_MERGED_DTS="$TEMP_DIR/${TESTCASE_NAME}-inc-merged.dts" +REF_MERGED_DTS="$TEMP_DIR/${TESTCASE_NAME}-ref-merged.dts" OVL_MERGED_DTS="$TEMP_DIR/${TESTCASE_NAME}-ovl-merged.dts" # # Complie and diff # -$SCRIPT_DIR/verify_dto_inc.sh "$BASE_DTS" "$OVERLAY_DTS" "$INC_MERGED_DTS" -$SCRIPT_DIR/verify_dto_ovl.sh "$BASE_DTS" "$OVERLAY_DTS" "$OVL_MERGED_DTS" -dts_diff "$INC_MERGED_DTS" "$OVL_MERGED_DTS" +$SCRIPT_DIR/apply_overlay.sh --fdt "$BASE_DTS" "$OVERLAY_DTS" "$REF_MERGED_DTS" +$SCRIPT_DIR/apply_overlay.sh --ufdt "$BASE_DTS" "$OVERLAY_DTS" "$OVL_MERGED_DTS" +dts_diff "$REF_MERGED_DTS" "$OVL_MERGED_DTS" |