/*
* run_test.sli
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* NEST is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NEST. If not, see <http://www.gnu.org/licenses/>.
*
*/
% expects on stack name of script to run to set
% src_layer -- layer dict
% tgt_layer -- layer dict
% conns -- connection dict
/script Set
% extract file name without trunk and suffix as test name
/testname (.*/|.sli) () script regex_replace def
/outtrunk (output/) testname join def
(Testing: ) testname join ==
ResetKernel
script run % defines parameters
userdict /resolution known { 0 << /resolution resolution >> SetStatus } if
topology using
/sources src_layer CreateLayer def
/targets tgt_layer CreateLayer def
sources targets conns ConnectLayers
outtrunk (_sources.lyr) join (w) file sources DumpLayerNodes close
outtrunk (_targets.lyr) join (w) file targets DumpLayerNodes close
outtrunk (_sources.cnn) join (w) file sources /static_synapse DumpLayerConnections close
endusing