summaryrefslogtreecommitdiff
path: root/tools/objtool/tests/generic/test-basic.sh
blob: 562edfbc8646f618b282616c238d6560b25f18e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
#
# Only functions whose code changed get cloned into the patch.

. "$(dirname "$0")/../lib.sh"

setup
build_pair basic.c
run_diff

assert_patched     changed
assert_not_patched untouched
assert_section     ".init.klp_funcs"
assert_section     ".init.klp_objects"

pass "changed function cloned, unchanged function left alone"