Skip to content

Commit

Permalink
nfs_tools: add test_nfs_tools.py for intergration testing
Browse files Browse the repository at this point in the history
Add test_nfs helper for validating changes to nfs_tools.py

Signed-off-by: Dai Ngo <[email protected]>
  • Loading branch information
daimngo authored and brenns10 committed Dec 5, 2023
1 parent a89bf32 commit c9eafcf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drgn_tools/tests/test_nfs_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
import pytest

import drgn_tools.nfs_tools
from drgn_tools.module import KernelModule


def test_nfs(prog):
nfs = KernelModule.find(prog, "nfs")
if not nfs:
pytest.skip("NFS module not loaded")

# This is just a smoke test
drgn_tools.nfs_tools.nfsshow(prog)

0 comments on commit c9eafcf

Please sign in to comment.