Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion brian2/devices/cpp_standalone/templates/win_makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ all: main.exe
clean:
del *.obj /s
del *.exe /s
del sourcefiles.txt

{% for fname, base in zip(source_files, source_bases) | sort(attribute='0')%}
{{base}}.obj: win_makefile
Expand Down
15 changes: 15 additions & 0 deletions brian2/tests/test_cpp_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,21 @@ def test_run_with_debug():
run(defaultclock.dt)


@pytest.mark.cpp_standalone
@pytest.mark.standalone_only
def test_run_with_clean():
# We just want to make sure that it works for now (there was a bug on Windows where
# using clean=True deleted sourcefiles.txt)
set_device(
"cpp_standalone", build_on_run=True, debug=True, clean=True, directory=None
)
group = NeuronGroup(1, "v: 1", threshold="False")
syn = Synapses(group, group, on_pre="v += 1")
syn.connect()
mon = SpikeMonitor(group)
run(defaultclock.dt)


@pytest.mark.cpp_standalone
@pytest.mark.standalone_only
def test_run_with_synapses_and_profile():
Expand Down
Loading