[mesa-users] de-testify test suite
Amber Lauer
alauer1 at tigers.lsu.edu
Wed Sep 10 20:53:27 EDT 2014
Sadly it seems there's no way to avoid removing the include statement in
the makefiles using sed, since both the offending MESA_DIR = /../../ and
the include 'MESA_DIR' are in caps, but i added it back in using the
following third sed command :
sed -i '$a include $(MESA_DIR)/star/work_standard_makefile'
./*/make/makefile
I've never touched ruby in my life, so I'm hesitant to try and learn Bill
Wolf's utility.
On Wed, Sep 10, 2014 at 7:21 PM, Amber Lauer <alauer1 at tigers.lsu.edu> wrote:
> the last command may not be right, it seems to remove the include command
> as well.
>
> On Wed, Sep 10, 2014 at 6:38 PM, Amber Lauer <alauer1 at tigers.lsu.edu>
> wrote:
>
>> Thanks Francis, on ubuntu 14.04 the following command worked to remove
>> the mesa_dir reference from all inlists in the entire test suite when
>> called from inside the test_suite directory:
>>
>>
>> sed -ie '\|mesa_dir|d' ./*/inlist
>>
>> I also had to remove the reference in the makefiles, which was done
>> thusly:
>>
>> sed -ie '\|MESA_DIR|d' ./*/make/makefile
>>
>> There are .mod and other default files that sometimes are referred to
>> directly instead of using the environment variable, I'll still have to do
>> those by hand, but this saved me a bunch of time.
>>
>> On Wed, Sep 10, 2014 at 6:21 PM, Amber Lauer <alauer1 at tigers.lsu.edu>
>> wrote:
>>
>>> well, I am trying to get a better feel for all that MESA is capable of
>>> and really become a 'poweruser', and I was told to always start with the
>>> cases in the test suite, that they should be the basis for any new
>>> scenarios. But also, we don't want to use the main copy of the test suite,
>>> better to keep it clean so I am working with a copy.
>>>
>>> On Tue, Sep 9, 2014 at 11:43 PM, Francis Timmes <fxt44 at mac.com> wrote:
>>>
>>>> one can delete the entire line with
>>>>
>>>> sed -ie '\|mesa_dir|d' inlist
>>>>
>>>> fxt
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Sep 9, 2014, at 8:48 PM, Richard Townsend <townsend at astro.wisc.edu>
>>>> wrote:
>>>>
>>>> > Hi Amber —
>>>> >
>>>> > How about this:
>>>> >
>>>> > sed -e ’s%\.\./\.\./\.\./%mesa_is_awesome%’ <filename>
>>>> >
>>>> > cheers,
>>>> >
>>>> > Rich
>>>> >
>>>> > On Sep 9, 2014, at 9:15 PM, Amber Lauer <alauer1 at tigers.lsu.edu>
>>>> wrote:
>>>> >
>>>> >> Hi all, I am attempting to modify the test suite to be run from
>>>> another folder so I can bend and mold it to my will. I want to remove the
>>>> reference to the mesa dir location, I believe the line is mesa_dir =
>>>> '../../..'. At the moment I am stuck doing it by hand each time I compile a
>>>> new case, but I would like to do it in bulk. I tried to learn a little
>>>> about the 'sed' utility, but it didn't like the /'s and ..'s in the
>>>> command, even when I used delimiters (I tried several). Either that or my
>>>> syntax was off altogether.
>>>> >>
>>>> >> --
>>>> >> Amber Lauer. M.S. Physics
>>>> >> PhD Student,
>>>> >> Graduate School of Physics,
>>>> >> Louisiana State University
>>>> >>
>>>> ------------------------------------------------------------------------------
>>>> >> Want excitement?
>>>> >> Manually upgrade your production database.
>>>> >> When you want reliability, choose Perforce
>>>> >> Perforce version control. Predictably reliable.
>>>> >>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
>>>> >> mesa-users mailing list
>>>> >> mesa-users at lists.sourceforge.net
>>>> >> https://lists.sourceforge.net/lists/listinfo/mesa-users
>>>> >
>>>> >
>>>> ------------------------------------------------------------------------------
>>>> > Want excitement?
>>>> > Manually upgrade your production database.
>>>> > When you want reliability, choose Perforce
>>>> > Perforce version control. Predictably reliable.
>>>> >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
>>>> > mesa-users mailing list
>>>> > mesa-users at lists.sourceforge.net
>>>> > https://lists.sourceforge.net/lists/listinfo/mesa-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Amber Lauer. M.S. Physics
>>> PhD Student,
>>> Graduate School of Physics,
>>> Louisiana State University
>>>
>>
>>
>>
>> --
>> Amber Lauer. M.S. Physics
>> PhD Student,
>> Graduate School of Physics,
>> Louisiana State University
>>
>
>
>
> --
> Amber Lauer. M.S. Physics
> PhD Student,
> Graduate School of Physics,
> Louisiana State University
>
--
Amber Lauer. M.S. Physics
PhD Student,
Graduate School of Physics,
Louisiana State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20140910/6e7d1d50/attachment.html>
More information about the Mesa-users
mailing list