Lines Matching full:fixture
3 # Helpers for the objtool klp tests. A test builds a fixture twice, as the
137 # What every fixture is built with. These describe the kernel a fixture stands
175 # and one which becomes permanent is a fixture that quietly
330 # build_one <fixture.c> <output object> [cflags...]
333 local fixture out
334 fixture="$FIXTURES_DIR/$1"
338 [ -f "$fixture" ] || fail "missing fixture $fixture"
344 $CC -c $FIXTURE_CFLAGS "$@" -o "$out" "$fixture" 2>"$workdir/cc.log" ||
345 fail "$(basename "$fixture") does not build: $(tail -1 "$workdir/cc.log")"
348 # build_pair <fixture.c> [cflags...]
351 local fixture="$1"; shift
359 build_one "$fixture" orig.o "$@"
360 build_one "$fixture" patched.o "$@" -DPATCHED
512 # build_module_pair <fixture.c> <module name> [cflags...]
520 # The fixture defines its .modinfo name from MODNAME. Passing that through
524 local fixture="$1" modname="$2"; shift 2
526 build_pair "$fixture" -DMODNAME="\"$modname\"" "$@"
581 # assert_* the fixture is supposed to produce it -> fail
616 fail "fixture produced no section '$1' in $obj"
626 fail "fixture produced no symbol '$1' in $obj"