Skip to content

Commit

Permalink
check_sys: check the driver presence
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanbulck committed Oct 1, 2024
1 parent c365643 commit 41a718d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions check_sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ assert_not_contains "$cpuinfo" "umip" "not disabled in /proc/cpuinfo"

if [ "$config_x2apic" -eq 0 ]; then
assert_not_contains "$cpuinfo" "x2apic" "not disabled in /proc/cpuinfo, but config.h defines X2APIC=0"
else
assert_contains "$cpuinfo" "x2apic" "not enabled in /proc/cpuinfo, but config.h defines X2APIC=1"
fi
end_check

Expand All @@ -105,3 +107,9 @@ if [[ $cpuinfo =~ "cpu_meltdown" ]]; then
fi
end_check

############################################################################
start_check "SGX-Step driver"
lkms=`lsmod`
assert_contains "$lkms" "sgx_step" "kernel module not loaded; try \`cd kernel; make load\`"
end_check

0 comments on commit 41a718d

Please sign in to comment.