Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimentally rewrite part of pjdfstest in Python #48

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asomers
Copy link
Collaborator

@asomers asomers commented Mar 15, 2021

This rewrite demonstrates all the key infrastructure needed by the
tests:

  • C bindings
  • Privileged, unprivileged, and any-privileged tests
  • Configurable feature selection
  • Test selection
  • OS and FS detection
  • Parameterized tests
  • Granular tests

The biggest questions are:

  • Is it worthwhile? There are a lot of tests to convert
  • Are the C bindings worth the trouble for all functions? I initially
    planned to call the function-under-test directly with C, like the
    original pjdfstest. But Python's os module is very close to C. For
    example, os.symlink is basically the same thing as symlink(2) except
    that it accepts Python paths as arguments instead of C strings, and it
    raises exceptions on error rather than setting errno.

This rewrite demonstrates all the key infrastructure needed by the
tests:

* C bindings
* Privileged, unprivileged, and any-privileged tests
* Configurable feature selection
* Test selection
* OS and FS detection
* Parameterized tests
* Granular tests

The biggest questions are:

* Is it worthwhile?  There are a lot of tests to convert
* Are the C bindings worth the trouble for all functions?  I initially
  planned to call the function-under-test directly with C, like the
  original pjdfstest.  But Python's os module is very close to C.  For
  example, os.symlink is basically the same thing as symlink(2) except
  that it accepts Python paths as arguments instead of C strings, and it
  raises exceptions on error rather than setting errno.
asomers pushed a commit to asomers/pjdfstest that referenced this pull request Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant