-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bootstrapping the Emacs test suite #72
Comments
I want to look into this one as an intro to rust, and I have a little elisp experience. Do you have any starting thoughts for it? I was able to get this repo to compile. How would we run a single test against it? For example, would we integrate with a rust test library or do some scripting to run the elisp against a compiled binary? Fundamentally, we need a way to signal success or failure and report it. |
I am glad you are interested! To run the tests we first need to bootstrap ert. This may have other dependencies that we will need to enable along the way. I copy the lisp files that have been bootstrapped into a matching directory here and then make sure they get loaded in the bootstrap. This will get loaded with Once that is working we can enable some of the test in the src directory that test many of the built-in functionality. |
I added I do not see |
Adding @CeleritasCelery I'm just playing around, been following from sidelines for a while, and now seems like a good time to try to help to my meager abilities and learn some Rust along the way. If you think I can help out, please let me know the stupidest way to start. |
Forgot to update this, I added a few things and ran into a missing native function:
diff --git a/lisp/bootstrap.el b/lisp/bootstrap.el
index 8fdcf4a..b5adcdb 100644
--- a/lisp/bootstrap.el
+++ b/lisp/bootstrap.el
@@ -4,6 +4,8 @@
(load "cconv")
(load "warnings") ;; should be autoloaded
(load "bytecomp")
+(defvar source-directory nil)
+(load "ert")
;; check bytecodes any ideas?
|
I got past that and hit the next issue, I'll spin up a branch |
A couple style questions,
|
I am not, but this would be a good thing to track. Things that have obvious missing functionality should have a
I suspect this will be the case, which is part of the reason why this would be so valuable.
Obviously the more correct the better. but correctness is judged by “what does Emacs do”. So things like ERT will help put us on firmer footing.
Adding the docstring is fine. I have not be doing that because I have been developing this in Emacs and I have the docstrings at hand. |
Also keep in mind that we are pulling lisp from the 29.1 branch. |
@bhankas to load a new file either add it to |
Emacs ships with over 7000 elisp tests. Bootstrapping these tests would make a good milestone and help ensure correctness. These tests can be run with
make check
in GNU Emacs.The text was updated successfully, but these errors were encountered: