[PATCH] Add optional copy_files attribute

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Max msuraev at sysmocom.de
Wed Apr 6 15:20:05 UTC 2016



On 03/31/2016 04:19 PM, Holger Freyther wrote:
>> On 31 Mar 2016, at 15:23, msuraev at sysmocom.de wrote:
>>
>> From: Max <msuraev at sysmocom.de>
>>
>> This allows to specify additional files which shall be copied into
>> temporary directory where tests are executed.
> when we chatted I had something like this in make
>
> make_tmp_dir
> copy_recursively(orig, tmp_dir)
> run(tmp_dir/cfg_file)
>
> was your approach more simple?
>
Yes - instead of trying to re-create directory structure (which would
make test runner unnecessary complex) I simply copy necessary additional
configs explicitly. Using extension other than .cfg makes sure that they
won't be copied (this one is recursive already btw) by config tester.

-- 
Max Suraev <msuraev at sysmocom.de> http://www.sysmocom.de/
======================================================================= 
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93 
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B 
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte 




More information about the OpenBSC mailing list