mirror of
https://github.com/dynup/kpatch
synced 2025-03-11 05:07:53 +00:00
I placed the library in the top-level test directory, as the same assertions could also be used by the integration tests once we rework them a bit. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
10 lines
141 B
Bash
Executable File
10 lines
141 B
Bash
Executable File
#!/bin/bash
|
|
source $KPATCH_TEST_LIBRARY
|
|
|
|
assert_num_funcs 1
|
|
|
|
bind=$(nm $1 |awk '/__kmalloc/ {print $2}')
|
|
[[ $bind = 't' ]] || exit 1
|
|
|
|
exit 0
|