Skip to content

Commit fcbb3b3

Browse files
authored
Merge pull request #3678 from JanVogelsang/sli2py-music-cont-proxy
Port MUSIC tests from SLI to Python
2 parents 3cee331 + 79e3639 commit fcbb3b3

50 files changed

Lines changed: 810 additions & 691 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build_support/check_copyright_headers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,12 @@ def eprint(*args, **kwargs):
8181
exclude_files = [
8282
"doc/copyright_header.cpp",
8383
"doc/copyright_header.py",
84+
"doc/copyright_header.music",
8485
"pynest/pynestkernel.cpp",
8586
"get-pip.py",
8687
]
8788

88-
templates = {
89-
("cc", "cpp", "h", "sli"): "cpp",
90-
("py", "pyx", "pxd"): "py",
91-
}
89+
templates = {("cc", "cpp", "h", "sli"): "cpp", ("py", "pyx", "pxd"): "py", ("music",): "music"}
9290

9391
template_contents = {}
9492

doc/copyright_header.music

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
% {{file_name}}
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.

examples/nest/music/clocktest.music

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
% clocktest.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
19+
120
stoptime=1.0
221
[from]
322
np=1

examples/nest/music/conttest.music

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
% conttest.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
19+
120
stoptime=1.0
221
[from]
322
np=1

examples/nest/music/eventtest.music

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
% eventtest.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
119

220
stoptime=0.02
321

examples/nest/music/minimalmusicsetup.music

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
% minimalmusicsetup.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
19+
120
stoptime=0.01
221

322
[from]

examples/nest/music/msgtest.music

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
% msgtest.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
19+
120
stoptime=1.0
221
np=1
322
[from]

examples/nest/music/three_neurons_threaded.music

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
% three_neurons_threaded.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
119

220
stoptime=0.1
321

pynest/examples/music_cont_out_proxy_example/test.music

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
% test.music
2+
%
3+
% This file is part of NEST.
4+
%
5+
% Copyright (C) 2004 The NEST Initiative
6+
%
7+
% NEST is free software: you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation, either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% NEST is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License
18+
% along with NEST. If not, see <http://www.gnu.org/licenses/>.
19+
120
stoptime=0.2
221
timestep=0.001
322
[from]

testsuite/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set( TESTSUBDIRS
2323
regressiontests
2424
mpitests
2525
mpi_selftests
26-
musictests
26+
sli2py_music
2727
cpptests
2828
pytests
2929
)
@@ -36,11 +36,12 @@ add_subdirectory( regressiontests/sli2py_ignore )
3636
add_subdirectory( mpi_selftests/fail )
3737
add_subdirectory( mpi_selftests/pass )
3838
add_subdirectory( mpitests )
39-
add_subdirectory( musictests )
39+
add_subdirectory( sli2py_music )
4040
add_subdirectory( cpptests )
4141

4242
install( DIRECTORY ${TESTSUBDIRS}
4343
DESTINATION ${CMAKE_INSTALL_DATADIR}/testsuite
44+
USE_SOURCE_PERMISSIONS
4445
)
4546

4647
install( PROGRAMS

0 commit comments

Comments
 (0)