Forum: GNU Radio How to create run_tests from run_tests.in

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bb3ff9c86361ea921a64632a4c46e824?d=identicon&s=25 Trond Danielsen (Guest)
on 2007-01-29 15:46
(Received via mailing list)
Hi!

I am creating a signal processing block for gnuradio (svn), but I can
not figure out how to generate run_tests from run_tests.in. The m4
macro file and Makefile.am from the python folder are included in this
mail:

---------------------
[~/src/gnuradio/gr-gnss/src/python] cat Makefile.am
include $(top_srcdir)/Makefile.common
EXTRA_DIST = run_tests.in
TESTS = run_tests
noinst_PYTHON = qa_gr_gnss_ca_source.py
---------------------


---------------------
[~/src/gnuradio/config] cat grc_gr_gnss.m4
AC_DEFUN([GRC_GR_GNSS],[
    GRC_ENABLE([gr-gnss])

    AC_CONFIG_FILES([\
        gr-gnss/Makefile \
        gr-gnss/src/Makefile \
        gr-gnss/src/lib/Makefile \
        gr-gnss/src/python/Makefile \
    ])

    passed=yes
    GRC_BUILD_CONDITIONAL([gr-gnss],[
        dnl run_tests is created from run_tests.in.  Make it executable.
        AC_CONFIG_COMMANDS([run_tests_gnss], [chmod +x
gr-gnss/src/python/run_tests])
    ])
])
---------------------

--
Trond Danielsen
Cec0a4bf0e0575f3a3171892e6097e59?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-01-29 18:34
(Received via mailing list)
Trond Danielsen wrote:

> I am creating a signal processing block for gnuradio (svn), but I can
> not figure out how to generate run_tests from run_tests.in. The m4
> macro file and Makefile.am from the python folder are included in this
> mail:

The files shown look ok.  You need to have your own run_tests.in,
however.  You can copy one from another component and edit the path
changes near the bottom.

Or am I misunderstanding?

--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
Bb3ff9c86361ea921a64632a4c46e824?d=identicon&s=25 Trond Danielsen (Guest)
on 2007-01-29 20:02
(Received via mailing list)
2007/1/29, Johnathan Corgan <jcorgan@aeinet.com>:
>
> Or am I misunderstanding?
>

Ah, I should have mentioned that run_tests.in exists in src/python.

--
Trond Danielsen
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-01-29 20:29
(Received via mailing list)
On Mon, Jan 29, 2007 at 08:01:27PM +0100, Trond Danielsen wrote:
> >changes near the bottom.
> >
> >Or am I misunderstanding?
> >
>
> Ah, I should have mentioned that run_tests.in exists in src/python.

Did you insert your GRC_FOO into configure.ac?

Eric
Bb3ff9c86361ea921a64632a4c46e824?d=identicon&s=25 Trond Danielsen (Guest)
on 2007-01-29 20:32
(Received via mailing list)
2007/1/29, Eric Blossom <eb@comsec.com>:
>
> Did you insert your GRC_FOO into configure.ac?
>

Yes, I did. The Makefiles gets created, so "make" works just fine, but
"make check" does not work (obviously, because run_tests is missing).

--
Trond Danielsen
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-01-29 20:47
(Received via mailing list)
On Mon, Jan 29, 2007 at 03:43:46PM +0100, Trond Danielsen wrote:
> EXTRA_DIST = run_tests.in
>    AC_CONFIG_FILES([\
>        gr-gnss/Makefile \
>        gr-gnss/src/Makefile \
>        gr-gnss/src/lib/Makefile \
>        gr-gnss/src/python/Makefile \


You're missing

         gr-gnss/src/python/run_tests here!
Bb3ff9c86361ea921a64632a4c46e824?d=identicon&s=25 Trond Danielsen (Guest)
on 2007-01-29 20:50
(Received via mailing list)
2007/1/29, Eric Blossom <eb@comsec.com>:
>
>
> You're missing
>
>          gr-gnss/src/python/run_tests here!
>
>

Ah! Thanks, wonder how I missed that one...

--
Trond Danielsen
Cec0a4bf0e0575f3a3171892e6097e59?d=identicon&s=25 Johnathan Corgan (Guest)
on 2007-01-29 20:51
(Received via mailing list)
Eric Blossom wrote:

>
> You're missing
>
>          gr-gnss/src/python/run_tests here!

Trond--sorry I missed this earlier and sent you looking elsewhere.

-Johnathan
This topic is locked and can not be replied to.