| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 |
|
| 7 | . "$(dirname "$0")/../lib.sh"
|
| 8 |
|
| 9 | setup
|
| 10 | build_pair basic.c
|
| 11 |
|
| 12 | ( cd "$workdir" && "$OBJTOOL" klp diff orig.o patched.o out.o ) \
|
| 13 | > "$workdir/diff.log" 2>&1 && fail "klp diff accepted an unchecksummed object"
|
| 14 |
|
| 15 | grep -q 'sym_checksum' "$workdir/diff.log" ||
|
| 16 | fail "expected a complaint about the checksum section, got: $(tail -1 "$workdir/diff.log")"
|
| 17 |
|
| 18 | pass "unchecksummed input rejected"
|