<div dir="ltr">FYI mostly unrelated 2c - Opening issues for questions is not overkill IMO. In fact it serves as a great knowledge base with discussion that is easily searchable. Just close the issue when the question is resolved .</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 28, 2021 at 10:52 PM Albus Matt Piroglu <<a href="mailto:mattapiroglu@gmail.com">mattapiroglu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"> <div><div><p>Note I have opened an issue on gitlab, but I know it's an overkill to open issues for questions. I couldn't find an appropriate channel until I found this mailing list. I'll close the issue, and here is my question for your consideration:</p><p><br></p><p dir="auto">Hi,
I'm trying to test a functionality that depends on loading systems.
Thusly I ended up writing some tests that need to load a "test-system"
during the tests, and I clear the system afterwards.</p>
<p dir="auto">A simplified code for the test in question is:</p>
<pre lang="plaintext"><code><span id="gmail-m_-6788506191256628137gmail-LC1" lang="plaintext">(test check-the-system-is-loaded-as-expected ()</span>
<span id="gmail-m_-6788506191256628137gmail-LC2" lang="plaintext"> (asdf:load-system "my-test-system-under-test-folder")</span>
<span id="gmail-m_-6788506191256628137gmail-LC3" lang="plaintext"> (is --check that the system loaded as expected--)</span>
<span id="gmail-m_-6788506191256628137gmail-LC4" lang="plaintext"> (asdf:clear-system "my-test-system-under-test-folder")</span>
<span id="gmail-m_-6788506191256628137gmail-LC5" lang="plaintext"> (delete-package "PACKAGE-FROM-TEST-SYSTEM"))</span></code></pre>
<p dir="auto">and, to clarify, another test
relies on the same system not being loaded, so I don't think a
dependency would solve the issue, it is rather a dynamic decision to
load or not.</p>
<p dir="auto">Now, I know that this feature
is deprecated and may not work. What I'm wondering if there's a safer
way to achieve this. Wouldn't some tests for asdf itself need loading
some test systems for example? (hmm it actually might be a good idea to
go check them now). OK, for example there's a hello-world-example.asd in
test, which looks similar to my my-test-system-under-test-folder.</p>
<p dir="auto">So, instead of asdf:load-system in the above test code, should I be using a lower-level operation call?</p>
<p dir="auto">Thanks! <br></p><p dir="auto">Albus</p></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Wilfredo Velázquez-Rodríguez<br></div></div></div></div>