From 72739e8fde9353e502edc937bd6f9f77f6b80cc6 Mon Sep 17 00:00:00 2001 From: Eric Blossom Date: Sun, 7 Nov 2010 16:42:07 -0800 Subject: Move *.test to tests directory --- gnuradio-core/src/guile/00_runtime_basics.test | 124 ----------------- gnuradio-core/src/guile/00_runtime_ctors.test | 32 ----- gnuradio-core/src/guile/Makefile.am | 14 +- gnuradio-core/src/guile/filter_ctors.test | 95 -------------- gnuradio-core/src/guile/general_ctors.test | 146 --------------------- gnuradio-core/src/guile/gengen_ctors.test | 132 ------------------- gnuradio-core/src/guile/hier_ctors.test | 30 ----- gnuradio-core/src/guile/io_ctors.test | 42 ------ .../src/guile/tests/00_runtime_basics.test | 124 +++++++++++++++++ .../src/guile/tests/00_runtime_ctors.test | 32 +++++ gnuradio-core/src/guile/tests/filter_ctors.test | 95 ++++++++++++++ gnuradio-core/src/guile/tests/general_ctors.test | 146 +++++++++++++++++++++ gnuradio-core/src/guile/tests/gengen_ctors.test | 132 +++++++++++++++++++ gnuradio-core/src/guile/tests/hier_ctors.test | 30 +++++ gnuradio-core/src/guile/tests/io_ctors.test | 42 ++++++ 15 files changed, 608 insertions(+), 608 deletions(-) delete mode 100644 gnuradio-core/src/guile/00_runtime_basics.test delete mode 100644 gnuradio-core/src/guile/00_runtime_ctors.test delete mode 100644 gnuradio-core/src/guile/filter_ctors.test delete mode 100644 gnuradio-core/src/guile/general_ctors.test delete mode 100644 gnuradio-core/src/guile/gengen_ctors.test delete mode 100644 gnuradio-core/src/guile/hier_ctors.test delete mode 100644 gnuradio-core/src/guile/io_ctors.test create mode 100644 gnuradio-core/src/guile/tests/00_runtime_basics.test create mode 100644 gnuradio-core/src/guile/tests/00_runtime_ctors.test create mode 100644 gnuradio-core/src/guile/tests/filter_ctors.test create mode 100644 gnuradio-core/src/guile/tests/general_ctors.test create mode 100644 gnuradio-core/src/guile/tests/gengen_ctors.test create mode 100644 gnuradio-core/src/guile/tests/hier_ctors.test create mode 100644 gnuradio-core/src/guile/tests/io_ctors.test diff --git a/gnuradio-core/src/guile/00_runtime_basics.test b/gnuradio-core/src/guile/00_runtime_basics.test deleted file mode 100644 index c9d251268..000000000 --- a/gnuradio-core/src/guile/00_runtime_basics.test +++ /dev/null @@ -1,124 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - -(define (vector-map f v) - (list->vector (map f (vector->list v)))) - - -(with-test-prefix "test-connect-1" - (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) - (expected-result (vector-map (lambda (x) (* x 2)) src-data)) - (tb (gr:top-block-swig "QA top block")) - (src (gr:vector-source-i src-data #f)) - (op (gr:multiply-const-ii 2)) - (dst (gr:vector-sink-i))) - - ;; using gr:ep to create endpoints - (gr:connect tb (gr:ep src 0) (gr:ep op 0)) - (gr:connect tb (gr:ep op 0) (gr:ep dst 0)) - - (gr:run tb) - ;;(pass-if (equal? expected-result (gr:data dst))) - (test-equal expected-result (gr:data dst)) - )) - -(with-test-prefix "test-connect-2" - (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) - (expected-result (vector-map (lambda (x) (* x 2)) src-data)) - (tb (gr:top-block-swig "QA top block")) - (src (gr:vector-source-i src-data #f)) - (op (gr:multiply-const-ii 2)) - (dst (gr:vector-sink-i))) - - ;; using just blocks - (gr:connect tb src op) - (gr:connect tb op dst) - - (gr:run tb) - (test-equal expected-result (gr:data dst)))) - - -(with-test-prefix "test-connect-3" - (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) - (expected-result (vector-map (lambda (x) (* x 2)) src-data)) - (tb (gr:top-block-swig "QA top block")) - (src (gr:vector-source-i src-data #f)) - (op (gr:multiply-const-ii 2)) - (dst (gr:vector-sink-i))) - - ;; using lists to represent endpoints - (gr:connect tb `(,src 0) `(,op 0)) - (gr:connect tb `(,op 0) `(,dst 0)) - - (gr:run tb) - (test-equal expected-result (gr:data dst)))) - - -(with-test-prefix "test-connect-4" - (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) - (expected-result (vector-map (lambda (x) (* x 2)) src-data)) - (tb (gr:top-block-swig "QA top block")) - (src (gr:vector-source-i src-data #f)) - (op (gr:multiply-const-ii 2)) - (dst (gr:vector-sink-i))) - - ;; using multiple endpoints - (gr:connect tb src op dst) - - (gr:run tb) - (test-equal expected-result (gr:data dst)))) - - -(with-test-prefix "test-io-signature-1" - (let ((ios1 (gr:io-signature 1 2 8)) - (ios2 (gr:io-signature2 1 2 16 32)) - (ios3 (gr:io-signature3 1 -1 14 32 48)) - (iosv (gr:io-signaturev 1 4 '(1 2 3)))) - - (test-equal 1 (gr:min-streams ios1)) - (test-equal 2 (gr:max-streams ios1)) - (test-equal 8 (gr:sizeof-stream-item ios1 0)) - (test-equal 8 (gr:sizeof-stream-item ios1 1)) - - (test-equal 1 (gr:min-streams ios2)) - (test-equal 2 (gr:max-streams ios2)) - (test-equal 16 (gr:sizeof-stream-item ios2 0)) - (test-equal 32 (gr:sizeof-stream-item ios2 1)) - - (test-equal 1 (gr:min-streams ios3)) - (test-equal -1 (gr:max-streams ios3)) - (test-equal 14 (gr:sizeof-stream-item ios3 0)) - (test-equal 32 (gr:sizeof-stream-item ios3 1)) - (test-equal 48 (gr:sizeof-stream-item ios3 2)) - (test-equal '#(14 32 48) (gr:sizeof-stream-items ios3)) - - (test-equal 1 (gr:min-streams iosv)) - (test-equal 4 (gr:max-streams iosv)) - (test-equal 1 (gr:sizeof-stream-item iosv 0)) - (test-equal 2 (gr:sizeof-stream-item iosv 1)) - (test-equal 3 (gr:sizeof-stream-item iosv 2)) - (test-equal 3 (gr:sizeof-stream-item iosv 3)) - (test-equal '#(1 2 3) (gr:sizeof-stream-items iosv)) - )) - diff --git a/gnuradio-core/src/guile/00_runtime_ctors.test b/gnuradio-core/src/guile/00_runtime_ctors.test deleted file mode 100644 index e0a946ab9..000000000 --- a/gnuradio-core/src/guile/00_runtime_ctors.test +++ /dev/null @@ -1,32 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -;;; If you're using Emacs's Scheme mode: -;;; (put 'with-test-prefix 'scheme-indent-function 1) - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - - -;;; Add test code for all constructors in these files -;;; -;;; ./runtime/gr_hier_block2.h -;;; ./runtime/gr_msg_queue.h diff --git a/gnuradio-core/src/guile/Makefile.am b/gnuradio-core/src/guile/Makefile.am index d7fdbce60..f3c02a446 100644 --- a/gnuradio-core/src/guile/Makefile.am +++ b/gnuradio-core/src/guile/Makefile.am @@ -42,12 +42,12 @@ nobase_guile_DATA = \ gnuradio/test-suite/lib.scm noinst_DATA = \ - 00_runtime_basics.test \ - 00_runtime_ctors.test \ - filter_ctors.test \ - general_ctors.test \ - gengen_ctors.test \ - hier_ctors.test \ - io_ctors.test + tests/00_runtime_basics.test \ + tests/00_runtime_ctors.test \ + tests/filter_ctors.test \ + tests/general_ctors.test \ + tests/gengen_ctors.test \ + tests/hier_ctors.test \ + tests/io_ctors.test CLEANFILES = guile.log diff --git a/gnuradio-core/src/guile/filter_ctors.test b/gnuradio-core/src/guile/filter_ctors.test deleted file mode 100644 index 040b8ba10..000000000 --- a/gnuradio-core/src/guile/filter_ctors.test +++ /dev/null @@ -1,95 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -;;; If you're using Emacs's Scheme mode: -;;; (put 'with-test-prefix 'scheme-indent-function 1) - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - -;;; Add test code for all constructors in these files -;;; -;;; ./filter/gr_adaptive_fir_ccf.h -;;; ./filter/gr_cma_equalizer_cc.h -;;; ./filter/gr_fft_filter_ccc.h -;;; ./filter/gr_fft_filter_fff.h -;;; ./filter/gr_filter_delay_fc.h -;;; ./filter/gr_fir_ccc_generic.h -;;; ./filter/gr_fir_ccc_simd.h -;;; ./filter/gr_fir_ccc_x86.h -;;; ./filter/gr_fir_ccf_generic.h -;;; ./filter/gr_fir_ccf_simd.h -;;; ./filter/gr_fir_ccf_x86.h -;;; ./filter/gr_fir_fcc_generic.h -;;; ./filter/gr_fir_fcc_simd.h -;;; ./filter/gr_fir_fcc_x86.h -;;; ./filter/gr_fir_fff_altivec.h -;;; ./filter/gr_fir_fff_armv7_a.h -;;; ./filter/gr_fir_fff_generic.h -;;; ./filter/gr_fir_fff_simd.h -;;; ./filter/gr_fir_fff_x86.h -;;; ./filter/gr_fir_filter_ccc.h -;;; ./filter/gr_fir_filter_ccf.h -;;; ./filter/gr_fir_filter_fcc.h -;;; ./filter/gr_fir_filter_fff.h -;;; ./filter/gr_fir_filter_fsf.h -;;; ./filter/gr_fir_filter_scc.h -;;; ./filter/gr_fir_fsf_generic.h -;;; ./filter/gr_fir_fsf_simd.h -;;; ./filter/gr_fir_fsf_x86.h -;;; ./filter/gr_fir_scc_generic.h -;;; ./filter/gr_fir_scc_simd.h -;;; ./filter/gr_fir_scc_x86.h -;;; ./filter/gr_fir_sysconfig_armv7_a.h -;;; ./filter/gr_fir_sysconfig_generic.h -;;; ./filter/gr_fir_sysconfig_powerpc.h -;;; ./filter/gr_fir_sysconfig_x86.h -;;; ./filter/gr_fractional_interpolator_cc.h -;;; ./filter/gr_fractional_interpolator_ff.h -;;; ./filter/gr_freq_xlating_fir_filter_ccc.h -;;; ./filter/gr_freq_xlating_fir_filter_ccf.h -;;; ./filter/gr_freq_xlating_fir_filter_fcc.h -;;; ./filter/gr_freq_xlating_fir_filter_fcf.h -;;; ./filter/gr_freq_xlating_fir_filter_scc.h -;;; ./filter/gr_freq_xlating_fir_filter_scf.h -;;; ./filter/gr_goertzel_fc.h -;;; ./filter/gr_hilbert_fc.h -;;; ./filter/gr_iir_filter_ffd.h -;;; ./filter/gr_interp_fir_filter_ccc.h -;;; ./filter/gr_interp_fir_filter_ccf.h -;;; ./filter/gr_interp_fir_filter_fcc.h -;;; ./filter/gr_interp_fir_filter_fff.h -;;; ./filter/gr_interp_fir_filter_fsf.h -;;; ./filter/gr_interp_fir_filter_scc.h -;;; ./filter/gr_pfb_arb_resampler_ccf.h -;;; ./filter/gr_pfb_channelizer_ccf.h -;;; ./filter/gr_pfb_clock_sync_ccf.h -;;; ./filter/gr_pfb_clock_sync_fff.h -;;; ./filter/gr_pfb_decimator_ccf.h -;;; ./filter/gr_pfb_interpolator_ccf.h -;;; ./filter/gr_rational_resampler_base_ccc.h -;;; ./filter/gr_rational_resampler_base_ccf.h -;;; ./filter/gr_rational_resampler_base_fcc.h -;;; ./filter/gr_rational_resampler_base_fff.h -;;; ./filter/gr_rational_resampler_base_fsf.h -;;; ./filter/gr_rational_resampler_base_scc.h -;;; ./filter/gr_single_pole_iir_filter_cc.h -;;; ./filter/gr_single_pole_iir_filter_ff.h diff --git a/gnuradio-core/src/guile/general_ctors.test b/gnuradio-core/src/guile/general_ctors.test deleted file mode 100644 index 8d272f768..000000000 --- a/gnuradio-core/src/guile/general_ctors.test +++ /dev/null @@ -1,146 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -;;; If you're using Emacs's Scheme mode: -;;; (put 'with-test-prefix 'scheme-indent-function 1) - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - -;;; Add test code for all constructors in these files -;;; -;;; ./general/gr_additive_scrambler_bb.h -;;; ./general/gr_agc2_cc.h -;;; ./general/gr_agc2_ff.h -;;; ./general/gr_agc_cc.h -;;; ./general/gr_agc_ff.h -;;; ./general/gr_align_on_samplenumbers_ss.h -;;; ./general/gr_bin_statistics_f.h -;;; ./general/gr_binary_slicer_fb.h -;;; ./general/gr_bytes_to_syms.h -;;; ./general/gr_char_to_float.h -;;; ./general/gr_check_counting_s.h -;;; ./general/gr_check_lfsr_32k_s.h -;;; ./general/gr_clock_recovery_mm_cc.h -;;; ./general/gr_clock_recovery_mm_ff.h -;;; ./general/gr_complex_to_interleaved_short.h -;;; ./general/gr_complex_to_xxx.h -;;; ./general/gr_conjugate_cc.h -;;; ./general/gr_constellation_decoder_cb.h -;;; ./general/gr_copy.h -;;; ./general/gr_correlate_access_code_bb.h -;;; ./general/gr_costas_loop_cc.h -;;; ./general/gr_cpfsk_bc.h -;;; ./general/gr_ctcss_squelch_ff.h -;;; ./general/gr_decode_ccsds_27_fb.h -;;; ./general/gr_deinterleave.h -;;; ./general/gr_delay.h -;;; ./general/gr_descrambler_bb.h -;;; ./general/gr_diff_decoder_bb.h -;;; ./general/gr_diff_encoder_bb.h -;;; ./general/gr_diff_phasor_cc.h -;;; ./general/gr_dpll_bb.h -;;; ./general/gr_encode_ccsds_27_bb.h -;;; ./general/gr_fake_channel_coder_pp.h -;;; ./general/gr_feedforward_agc_cc.h -;;; ./general/gr_fft_vcc.h -;;; ./general/gr_fft_vcc_fftw.h -;;; ./general/gr_fft_vfc.h -;;; ./general/gr_fll_band_edge_cc.h -;;; ./general/gr_float_to_char.h -;;; ./general/gr_float_to_complex.h -;;; ./general/gr_float_to_short.h -;;; ./general/gr_float_to_uchar.h -;;; ./general/gr_fmdet_cf.h -;;; ./general/gr_framer_sink_1.h -;;; ./general/gr_frequency_modulator_fc.h -;;; ./general/gr_glfsr_source_b.h -;;; ./general/gr_glfsr_source_f.h -;;; ./general/gr_head.h -;;; ./general/gr_interleave.h -;;; ./general/gr_interleaved_short_to_complex.h -;;; ./general/gr_iqcomp_cc.h -;;; ./general/gr_keep_one_in_n.h -;;; ./general/gr_kludge_copy.h -;;; ./general/gr_lfsr_32k_source_s.h -;;; ./general/gr_lms_dfe_cc.h -;;; ./general/gr_lms_dfe_ff.h -;;; ./general/gr_map_bb.h -;;; ./general/gr_mpsk_receiver_cc.h -;;; ./general/gr_nlog10_ff.h -;;; ./general/gr_nop.h -;;; ./general/gr_null_sink.h -;;; ./general/gr_null_source.h -;;; ./general/gr_ofdm_bpsk_demapper.h -;;; ./general/gr_ofdm_cyclic_prefixer.h -;;; ./general/gr_ofdm_demapper_vcb.h -;;; ./general/gr_ofdm_frame_acquisition.h -;;; ./general/gr_ofdm_frame_sink.h -;;; ./general/gr_ofdm_insert_preamble.h -;;; ./general/gr_ofdm_mapper_bcv.h -;;; ./general/gr_ofdm_sampler.h -;;; ./general/gr_pa_2x2_phase_combiner.h -;;; ./general/gr_packet_sink.h -;;; ./general/gr_peak_detector2_fb.h -;;; ./general/gr_phase_modulator_fc.h -;;; ./general/gr_pll_carriertracking_cc.h -;;; ./general/gr_pll_freqdet_cf.h -;;; ./general/gr_pll_refout_cc.h -;;; ./general/gr_pn_correlator_cc.h -;;; ./general/gr_probe_avg_mag_sqrd_c.h -;;; ./general/gr_probe_avg_mag_sqrd_cf.h -;;; ./general/gr_probe_avg_mag_sqrd_f.h -;;; ./general/gr_probe_density_b.h -;;; ./general/gr_probe_mpsk_snr_c.h -;;; ./general/gr_probe_signal_f.h -;;; ./general/gr_pwr_squelch_cc.h -;;; ./general/gr_pwr_squelch_ff.h -;;; ./general/gr_quadrature_demod_cf.h -;;; ./general/gr_rail_ff.h -;;; ./general/gr_regenerate_bb.h -;;; ./general/gr_repeat.h -;;; ./general/gr_rms_cf.h -;;; ./general/gr_rms_ff.h -;;; ./general/gr_scrambler_bb.h -;;; ./general/gr_short_to_float.h -;;; ./general/gr_simple_correlator.h -;;; ./general/gr_simple_framer.h -;;; ./general/gr_simple_squelch_cc.h -;;; ./general/gr_skiphead.h -;;; ./general/gr_squash_ff.h -;;; ./general/gr_squelch_base_cc.h -;;; ./general/gr_squelch_base_ff.h -;;; ./general/gr_stream_mux.h -;;; ./general/gr_stream_to_streams.h -;;; ./general/gr_stream_to_vector.h -;;; ./general/gr_streams_to_stream.h -;;; ./general/gr_streams_to_vector.h -;;; ./general/gr_stretch_ff.h -;;; ./general/gr_test.h -;;; ./general/gr_threshold_ff.h -;;; ./general/gr_throttle.h -;;; ./general/gr_uchar_to_float.h -;;; ./general/gr_unpack_k_bits_bb.h -;;; ./general/gr_vco_f.h -;;; ./general/gr_vector_to_stream.h -;;; ./general/gr_vector_to_streams.h -;;; ./general/gr_wavelet_ff.h -;;; ./general/gr_wvps_ff.h diff --git a/gnuradio-core/src/guile/gengen_ctors.test b/gnuradio-core/src/guile/gengen_ctors.test deleted file mode 100644 index 652556d3f..000000000 --- a/gnuradio-core/src/guile/gengen_ctors.test +++ /dev/null @@ -1,132 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -;;; If you're using Emacs's Scheme mode: -;;; (put 'with-test-prefix 'scheme-indent-function 1) - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - -;;; Add test code for all constructors in these files -;;; -;;; ./gengen/gr_add_cc.h -;;; ./gengen/gr_add_const_cc.h -;;; ./gengen/gr_add_const_ff.h -;;; ./gengen/gr_add_const_ii.h -;;; ./gengen/gr_add_const_sf.h -;;; ./gengen/gr_add_const_ss.h -;;; ./gengen/gr_add_const_vcc.h -;;; ./gengen/gr_add_const_vff.h -;;; ./gengen/gr_add_const_vii.h -;;; ./gengen/gr_add_const_vss.h -;;; ./gengen/gr_add_ff.h -;;; ./gengen/gr_add_ii.h -;;; ./gengen/gr_add_ss.h -;;; ./gengen/gr_and_bb.h -;;; ./gengen/gr_and_const_bb.h -;;; ./gengen/gr_and_const_ii.h -;;; ./gengen/gr_and_const_ss.h -;;; ./gengen/gr_and_ii.h -;;; ./gengen/gr_and_ss.h -;;; ./gengen/gr_argmax_fs.h -;;; ./gengen/gr_argmax_is.h -;;; ./gengen/gr_argmax_ss.h -;;; ./gengen/gr_chunks_to_symbols_bc.h -;;; ./gengen/gr_chunks_to_symbols_bf.h -;;; ./gengen/gr_chunks_to_symbols_ic.h -;;; ./gengen/gr_chunks_to_symbols_if.h -;;; ./gengen/gr_chunks_to_symbols_sc.h -;;; ./gengen/gr_chunks_to_symbols_sf.h -;;; ./gengen/gr_divide_cc.h -;;; ./gengen/gr_divide_ff.h -;;; ./gengen/gr_divide_ii.h -;;; ./gengen/gr_divide_ss.h -;;; ./gengen/gr_integrate_cc.h -;;; ./gengen/gr_integrate_ff.h -;;; ./gengen/gr_integrate_ii.h -;;; ./gengen/gr_integrate_ss.h -;;; ./gengen/gr_max_ff.h -;;; ./gengen/gr_max_ii.h -;;; ./gengen/gr_max_ss.h -;;; ./gengen/gr_moving_average_cc.h -;;; ./gengen/gr_moving_average_ff.h -;;; ./gengen/gr_moving_average_ii.h -;;; ./gengen/gr_moving_average_ss.h -;;; ./gengen/gr_multiply_cc.h -;;; ./gengen/gr_multiply_const_cc.h -;;; ./gengen/gr_multiply_const_ff.h -;;; ./gengen/gr_multiply_const_ii.h -;;; ./gengen/gr_multiply_const_ss.h -;;; ./gengen/gr_multiply_const_vcc.h -;;; ./gengen/gr_multiply_const_vff.h -;;; ./gengen/gr_multiply_const_vii.h -;;; ./gengen/gr_multiply_const_vss.h -;;; ./gengen/gr_multiply_ff.h -;;; ./gengen/gr_multiply_ii.h -;;; ./gengen/gr_multiply_ss.h -;;; ./gengen/gr_mute_cc.h -;;; ./gengen/gr_mute_ff.h -;;; ./gengen/gr_mute_ii.h -;;; ./gengen/gr_mute_ss.h -;;; ./gengen/gr_noise_source_c.h -;;; ./gengen/gr_noise_source_f.h -;;; ./gengen/gr_noise_source_i.h -;;; ./gengen/gr_noise_source_s.h -;;; ./gengen/gr_not_bb.h -;;; ./gengen/gr_not_ii.h -;;; ./gengen/gr_not_ss.h -;;; ./gengen/gr_or_bb.h -;;; ./gengen/gr_or_ii.h -;;; ./gengen/gr_or_ss.h -;;; ./gengen/gr_packed_to_unpacked_bb.h -;;; ./gengen/gr_packed_to_unpacked_ii.h -;;; ./gengen/gr_packed_to_unpacked_ss.h -;;; ./gengen/gr_peak_detector_fb.h -;;; ./gengen/gr_peak_detector_ib.h -;;; ./gengen/gr_peak_detector_sb.h -;;; ./gengen/gr_sample_and_hold_bb.h -;;; ./gengen/gr_sample_and_hold_ff.h -;;; ./gengen/gr_sample_and_hold_ii.h -;;; ./gengen/gr_sample_and_hold_ss.h -;;; ./gengen/gr_sig_source_c.h -;;; ./gengen/gr_sig_source_f.h -;;; ./gengen/gr_sig_source_i.h -;;; ./gengen/gr_sig_source_s.h -;;; ./gengen/gr_sub_cc.h -;;; ./gengen/gr_sub_ff.h -;;; ./gengen/gr_sub_ii.h -;;; ./gengen/gr_sub_ss.h -;;; ./gengen/gr_unpacked_to_packed_bb.h -;;; ./gengen/gr_unpacked_to_packed_ii.h -;;; ./gengen/gr_unpacked_to_packed_ss.h -;;; ./gengen/gr_vector_sink_b.h -;;; ./gengen/gr_vector_sink_c.h -;;; ./gengen/gr_vector_sink_f.h -;;; ./gengen/gr_vector_sink_i.h -;;; ./gengen/gr_vector_sink_s.h -;;; ./gengen/gr_vector_source_b.h -;;; ./gengen/gr_vector_source_c.h -;;; ./gengen/gr_vector_source_f.h -;;; ./gengen/gr_vector_source_i.h -;;; ./gengen/gr_vector_source_s.h -;;; ./gengen/gr_xor_bb.h -;;; ./gengen/gr_xor_ii.h -;;; ./gengen/gr_xor_ss.h diff --git a/gnuradio-core/src/guile/hier_ctors.test b/gnuradio-core/src/guile/hier_ctors.test deleted file mode 100644 index c297fb9dd..000000000 --- a/gnuradio-core/src/guile/hier_ctors.test +++ /dev/null @@ -1,30 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -;;; If you're using Emacs's Scheme mode: -;;; (put 'with-test-prefix 'scheme-indent-function 1) - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - -;;; Add test code for all constructors in these files -;;; -;;; ./hier/gr_channel_model.h diff --git a/gnuradio-core/src/guile/io_ctors.test b/gnuradio-core/src/guile/io_ctors.test deleted file mode 100644 index 2001e5fa5..000000000 --- a/gnuradio-core/src/guile/io_ctors.test +++ /dev/null @@ -1,42 +0,0 @@ -;;; -*- Scheme -*- -;;; -;;; Copyright 2010 Free Software Foundation, Inc. -;;; -;;; This file is part of GNU Radio -;;; -;;; GNU Radio 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 3, or (at your option) -;;; any later version. -;;; -;;; GNU Radio 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 this program. If not, see . -;;; - -;;; If you're using Emacs's Scheme mode: -;;; (put 'with-test-prefix 'scheme-indent-function 1) - -(use-modules (gnuradio test-suite lib)) -(use-modules (gnuradio core)) -(use-modules (oop goops)) - -;;; Add test code for all constructors in these files -;;; -;;; ./io/gr_file_descriptor_sink.h -;;; ./io/gr_file_descriptor_source.h -;;; ./io/gr_file_sink.h -;;; ./io/gr_file_source.h -;;; ./io/gr_histo_sink_f.h -;;; ./io/gr_message_sink.h -;;; ./io/gr_message_source.h -;;; ./io/gr_oscope_sink_f.h -;;; ./io/gr_oscope_sink_x.h -;;; ./io/gr_udp_sink.h -;;; ./io/gr_udp_source.h -;;; ./io/gr_wavfile_sink.h -;;; ./io/gr_wavfile_source.h diff --git a/gnuradio-core/src/guile/tests/00_runtime_basics.test b/gnuradio-core/src/guile/tests/00_runtime_basics.test new file mode 100644 index 000000000..c9d251268 --- /dev/null +++ b/gnuradio-core/src/guile/tests/00_runtime_basics.test @@ -0,0 +1,124 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + +(define (vector-map f v) + (list->vector (map f (vector->list v)))) + + +(with-test-prefix "test-connect-1" + (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) + (expected-result (vector-map (lambda (x) (* x 2)) src-data)) + (tb (gr:top-block-swig "QA top block")) + (src (gr:vector-source-i src-data #f)) + (op (gr:multiply-const-ii 2)) + (dst (gr:vector-sink-i))) + + ;; using gr:ep to create endpoints + (gr:connect tb (gr:ep src 0) (gr:ep op 0)) + (gr:connect tb (gr:ep op 0) (gr:ep dst 0)) + + (gr:run tb) + ;;(pass-if (equal? expected-result (gr:data dst))) + (test-equal expected-result (gr:data dst)) + )) + +(with-test-prefix "test-connect-2" + (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) + (expected-result (vector-map (lambda (x) (* x 2)) src-data)) + (tb (gr:top-block-swig "QA top block")) + (src (gr:vector-source-i src-data #f)) + (op (gr:multiply-const-ii 2)) + (dst (gr:vector-sink-i))) + + ;; using just blocks + (gr:connect tb src op) + (gr:connect tb op dst) + + (gr:run tb) + (test-equal expected-result (gr:data dst)))) + + +(with-test-prefix "test-connect-3" + (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) + (expected-result (vector-map (lambda (x) (* x 2)) src-data)) + (tb (gr:top-block-swig "QA top block")) + (src (gr:vector-source-i src-data #f)) + (op (gr:multiply-const-ii 2)) + (dst (gr:vector-sink-i))) + + ;; using lists to represent endpoints + (gr:connect tb `(,src 0) `(,op 0)) + (gr:connect tb `(,op 0) `(,dst 0)) + + (gr:run tb) + (test-equal expected-result (gr:data dst)))) + + +(with-test-prefix "test-connect-4" + (let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5)) + (expected-result (vector-map (lambda (x) (* x 2)) src-data)) + (tb (gr:top-block-swig "QA top block")) + (src (gr:vector-source-i src-data #f)) + (op (gr:multiply-const-ii 2)) + (dst (gr:vector-sink-i))) + + ;; using multiple endpoints + (gr:connect tb src op dst) + + (gr:run tb) + (test-equal expected-result (gr:data dst)))) + + +(with-test-prefix "test-io-signature-1" + (let ((ios1 (gr:io-signature 1 2 8)) + (ios2 (gr:io-signature2 1 2 16 32)) + (ios3 (gr:io-signature3 1 -1 14 32 48)) + (iosv (gr:io-signaturev 1 4 '(1 2 3)))) + + (test-equal 1 (gr:min-streams ios1)) + (test-equal 2 (gr:max-streams ios1)) + (test-equal 8 (gr:sizeof-stream-item ios1 0)) + (test-equal 8 (gr:sizeof-stream-item ios1 1)) + + (test-equal 1 (gr:min-streams ios2)) + (test-equal 2 (gr:max-streams ios2)) + (test-equal 16 (gr:sizeof-stream-item ios2 0)) + (test-equal 32 (gr:sizeof-stream-item ios2 1)) + + (test-equal 1 (gr:min-streams ios3)) + (test-equal -1 (gr:max-streams ios3)) + (test-equal 14 (gr:sizeof-stream-item ios3 0)) + (test-equal 32 (gr:sizeof-stream-item ios3 1)) + (test-equal 48 (gr:sizeof-stream-item ios3 2)) + (test-equal '#(14 32 48) (gr:sizeof-stream-items ios3)) + + (test-equal 1 (gr:min-streams iosv)) + (test-equal 4 (gr:max-streams iosv)) + (test-equal 1 (gr:sizeof-stream-item iosv 0)) + (test-equal 2 (gr:sizeof-stream-item iosv 1)) + (test-equal 3 (gr:sizeof-stream-item iosv 2)) + (test-equal 3 (gr:sizeof-stream-item iosv 3)) + (test-equal '#(1 2 3) (gr:sizeof-stream-items iosv)) + )) + diff --git a/gnuradio-core/src/guile/tests/00_runtime_ctors.test b/gnuradio-core/src/guile/tests/00_runtime_ctors.test new file mode 100644 index 000000000..e0a946ab9 --- /dev/null +++ b/gnuradio-core/src/guile/tests/00_runtime_ctors.test @@ -0,0 +1,32 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +;;; If you're using Emacs's Scheme mode: +;;; (put 'with-test-prefix 'scheme-indent-function 1) + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + + +;;; Add test code for all constructors in these files +;;; +;;; ./runtime/gr_hier_block2.h +;;; ./runtime/gr_msg_queue.h diff --git a/gnuradio-core/src/guile/tests/filter_ctors.test b/gnuradio-core/src/guile/tests/filter_ctors.test new file mode 100644 index 000000000..040b8ba10 --- /dev/null +++ b/gnuradio-core/src/guile/tests/filter_ctors.test @@ -0,0 +1,95 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +;;; If you're using Emacs's Scheme mode: +;;; (put 'with-test-prefix 'scheme-indent-function 1) + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + +;;; Add test code for all constructors in these files +;;; +;;; ./filter/gr_adaptive_fir_ccf.h +;;; ./filter/gr_cma_equalizer_cc.h +;;; ./filter/gr_fft_filter_ccc.h +;;; ./filter/gr_fft_filter_fff.h +;;; ./filter/gr_filter_delay_fc.h +;;; ./filter/gr_fir_ccc_generic.h +;;; ./filter/gr_fir_ccc_simd.h +;;; ./filter/gr_fir_ccc_x86.h +;;; ./filter/gr_fir_ccf_generic.h +;;; ./filter/gr_fir_ccf_simd.h +;;; ./filter/gr_fir_ccf_x86.h +;;; ./filter/gr_fir_fcc_generic.h +;;; ./filter/gr_fir_fcc_simd.h +;;; ./filter/gr_fir_fcc_x86.h +;;; ./filter/gr_fir_fff_altivec.h +;;; ./filter/gr_fir_fff_armv7_a.h +;;; ./filter/gr_fir_fff_generic.h +;;; ./filter/gr_fir_fff_simd.h +;;; ./filter/gr_fir_fff_x86.h +;;; ./filter/gr_fir_filter_ccc.h +;;; ./filter/gr_fir_filter_ccf.h +;;; ./filter/gr_fir_filter_fcc.h +;;; ./filter/gr_fir_filter_fff.h +;;; ./filter/gr_fir_filter_fsf.h +;;; ./filter/gr_fir_filter_scc.h +;;; ./filter/gr_fir_fsf_generic.h +;;; ./filter/gr_fir_fsf_simd.h +;;; ./filter/gr_fir_fsf_x86.h +;;; ./filter/gr_fir_scc_generic.h +;;; ./filter/gr_fir_scc_simd.h +;;; ./filter/gr_fir_scc_x86.h +;;; ./filter/gr_fir_sysconfig_armv7_a.h +;;; ./filter/gr_fir_sysconfig_generic.h +;;; ./filter/gr_fir_sysconfig_powerpc.h +;;; ./filter/gr_fir_sysconfig_x86.h +;;; ./filter/gr_fractional_interpolator_cc.h +;;; ./filter/gr_fractional_interpolator_ff.h +;;; ./filter/gr_freq_xlating_fir_filter_ccc.h +;;; ./filter/gr_freq_xlating_fir_filter_ccf.h +;;; ./filter/gr_freq_xlating_fir_filter_fcc.h +;;; ./filter/gr_freq_xlating_fir_filter_fcf.h +;;; ./filter/gr_freq_xlating_fir_filter_scc.h +;;; ./filter/gr_freq_xlating_fir_filter_scf.h +;;; ./filter/gr_goertzel_fc.h +;;; ./filter/gr_hilbert_fc.h +;;; ./filter/gr_iir_filter_ffd.h +;;; ./filter/gr_interp_fir_filter_ccc.h +;;; ./filter/gr_interp_fir_filter_ccf.h +;;; ./filter/gr_interp_fir_filter_fcc.h +;;; ./filter/gr_interp_fir_filter_fff.h +;;; ./filter/gr_interp_fir_filter_fsf.h +;;; ./filter/gr_interp_fir_filter_scc.h +;;; ./filter/gr_pfb_arb_resampler_ccf.h +;;; ./filter/gr_pfb_channelizer_ccf.h +;;; ./filter/gr_pfb_clock_sync_ccf.h +;;; ./filter/gr_pfb_clock_sync_fff.h +;;; ./filter/gr_pfb_decimator_ccf.h +;;; ./filter/gr_pfb_interpolator_ccf.h +;;; ./filter/gr_rational_resampler_base_ccc.h +;;; ./filter/gr_rational_resampler_base_ccf.h +;;; ./filter/gr_rational_resampler_base_fcc.h +;;; ./filter/gr_rational_resampler_base_fff.h +;;; ./filter/gr_rational_resampler_base_fsf.h +;;; ./filter/gr_rational_resampler_base_scc.h +;;; ./filter/gr_single_pole_iir_filter_cc.h +;;; ./filter/gr_single_pole_iir_filter_ff.h diff --git a/gnuradio-core/src/guile/tests/general_ctors.test b/gnuradio-core/src/guile/tests/general_ctors.test new file mode 100644 index 000000000..8d272f768 --- /dev/null +++ b/gnuradio-core/src/guile/tests/general_ctors.test @@ -0,0 +1,146 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +;;; If you're using Emacs's Scheme mode: +;;; (put 'with-test-prefix 'scheme-indent-function 1) + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + +;;; Add test code for all constructors in these files +;;; +;;; ./general/gr_additive_scrambler_bb.h +;;; ./general/gr_agc2_cc.h +;;; ./general/gr_agc2_ff.h +;;; ./general/gr_agc_cc.h +;;; ./general/gr_agc_ff.h +;;; ./general/gr_align_on_samplenumbers_ss.h +;;; ./general/gr_bin_statistics_f.h +;;; ./general/gr_binary_slicer_fb.h +;;; ./general/gr_bytes_to_syms.h +;;; ./general/gr_char_to_float.h +;;; ./general/gr_check_counting_s.h +;;; ./general/gr_check_lfsr_32k_s.h +;;; ./general/gr_clock_recovery_mm_cc.h +;;; ./general/gr_clock_recovery_mm_ff.h +;;; ./general/gr_complex_to_interleaved_short.h +;;; ./general/gr_complex_to_xxx.h +;;; ./general/gr_conjugate_cc.h +;;; ./general/gr_constellation_decoder_cb.h +;;; ./general/gr_copy.h +;;; ./general/gr_correlate_access_code_bb.h +;;; ./general/gr_costas_loop_cc.h +;;; ./general/gr_cpfsk_bc.h +;;; ./general/gr_ctcss_squelch_ff.h +;;; ./general/gr_decode_ccsds_27_fb.h +;;; ./general/gr_deinterleave.h +;;; ./general/gr_delay.h +;;; ./general/gr_descrambler_bb.h +;;; ./general/gr_diff_decoder_bb.h +;;; ./general/gr_diff_encoder_bb.h +;;; ./general/gr_diff_phasor_cc.h +;;; ./general/gr_dpll_bb.h +;;; ./general/gr_encode_ccsds_27_bb.h +;;; ./general/gr_fake_channel_coder_pp.h +;;; ./general/gr_feedforward_agc_cc.h +;;; ./general/gr_fft_vcc.h +;;; ./general/gr_fft_vcc_fftw.h +;;; ./general/gr_fft_vfc.h +;;; ./general/gr_fll_band_edge_cc.h +;;; ./general/gr_float_to_char.h +;;; ./general/gr_float_to_complex.h +;;; ./general/gr_float_to_short.h +;;; ./general/gr_float_to_uchar.h +;;; ./general/gr_fmdet_cf.h +;;; ./general/gr_framer_sink_1.h +;;; ./general/gr_frequency_modulator_fc.h +;;; ./general/gr_glfsr_source_b.h +;;; ./general/gr_glfsr_source_f.h +;;; ./general/gr_head.h +;;; ./general/gr_interleave.h +;;; ./general/gr_interleaved_short_to_complex.h +;;; ./general/gr_iqcomp_cc.h +;;; ./general/gr_keep_one_in_n.h +;;; ./general/gr_kludge_copy.h +;;; ./general/gr_lfsr_32k_source_s.h +;;; ./general/gr_lms_dfe_cc.h +;;; ./general/gr_lms_dfe_ff.h +;;; ./general/gr_map_bb.h +;;; ./general/gr_mpsk_receiver_cc.h +;;; ./general/gr_nlog10_ff.h +;;; ./general/gr_nop.h +;;; ./general/gr_null_sink.h +;;; ./general/gr_null_source.h +;;; ./general/gr_ofdm_bpsk_demapper.h +;;; ./general/gr_ofdm_cyclic_prefixer.h +;;; ./general/gr_ofdm_demapper_vcb.h +;;; ./general/gr_ofdm_frame_acquisition.h +;;; ./general/gr_ofdm_frame_sink.h +;;; ./general/gr_ofdm_insert_preamble.h +;;; ./general/gr_ofdm_mapper_bcv.h +;;; ./general/gr_ofdm_sampler.h +;;; ./general/gr_pa_2x2_phase_combiner.h +;;; ./general/gr_packet_sink.h +;;; ./general/gr_peak_detector2_fb.h +;;; ./general/gr_phase_modulator_fc.h +;;; ./general/gr_pll_carriertracking_cc.h +;;; ./general/gr_pll_freqdet_cf.h +;;; ./general/gr_pll_refout_cc.h +;;; ./general/gr_pn_correlator_cc.h +;;; ./general/gr_probe_avg_mag_sqrd_c.h +;;; ./general/gr_probe_avg_mag_sqrd_cf.h +;;; ./general/gr_probe_avg_mag_sqrd_f.h +;;; ./general/gr_probe_density_b.h +;;; ./general/gr_probe_mpsk_snr_c.h +;;; ./general/gr_probe_signal_f.h +;;; ./general/gr_pwr_squelch_cc.h +;;; ./general/gr_pwr_squelch_ff.h +;;; ./general/gr_quadrature_demod_cf.h +;;; ./general/gr_rail_ff.h +;;; ./general/gr_regenerate_bb.h +;;; ./general/gr_repeat.h +;;; ./general/gr_rms_cf.h +;;; ./general/gr_rms_ff.h +;;; ./general/gr_scrambler_bb.h +;;; ./general/gr_short_to_float.h +;;; ./general/gr_simple_correlator.h +;;; ./general/gr_simple_framer.h +;;; ./general/gr_simple_squelch_cc.h +;;; ./general/gr_skiphead.h +;;; ./general/gr_squash_ff.h +;;; ./general/gr_squelch_base_cc.h +;;; ./general/gr_squelch_base_ff.h +;;; ./general/gr_stream_mux.h +;;; ./general/gr_stream_to_streams.h +;;; ./general/gr_stream_to_vector.h +;;; ./general/gr_streams_to_stream.h +;;; ./general/gr_streams_to_vector.h +;;; ./general/gr_stretch_ff.h +;;; ./general/gr_test.h +;;; ./general/gr_threshold_ff.h +;;; ./general/gr_throttle.h +;;; ./general/gr_uchar_to_float.h +;;; ./general/gr_unpack_k_bits_bb.h +;;; ./general/gr_vco_f.h +;;; ./general/gr_vector_to_stream.h +;;; ./general/gr_vector_to_streams.h +;;; ./general/gr_wavelet_ff.h +;;; ./general/gr_wvps_ff.h diff --git a/gnuradio-core/src/guile/tests/gengen_ctors.test b/gnuradio-core/src/guile/tests/gengen_ctors.test new file mode 100644 index 000000000..652556d3f --- /dev/null +++ b/gnuradio-core/src/guile/tests/gengen_ctors.test @@ -0,0 +1,132 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +;;; If you're using Emacs's Scheme mode: +;;; (put 'with-test-prefix 'scheme-indent-function 1) + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + +;;; Add test code for all constructors in these files +;;; +;;; ./gengen/gr_add_cc.h +;;; ./gengen/gr_add_const_cc.h +;;; ./gengen/gr_add_const_ff.h +;;; ./gengen/gr_add_const_ii.h +;;; ./gengen/gr_add_const_sf.h +;;; ./gengen/gr_add_const_ss.h +;;; ./gengen/gr_add_const_vcc.h +;;; ./gengen/gr_add_const_vff.h +;;; ./gengen/gr_add_const_vii.h +;;; ./gengen/gr_add_const_vss.h +;;; ./gengen/gr_add_ff.h +;;; ./gengen/gr_add_ii.h +;;; ./gengen/gr_add_ss.h +;;; ./gengen/gr_and_bb.h +;;; ./gengen/gr_and_const_bb.h +;;; ./gengen/gr_and_const_ii.h +;;; ./gengen/gr_and_const_ss.h +;;; ./gengen/gr_and_ii.h +;;; ./gengen/gr_and_ss.h +;;; ./gengen/gr_argmax_fs.h +;;; ./gengen/gr_argmax_is.h +;;; ./gengen/gr_argmax_ss.h +;;; ./gengen/gr_chunks_to_symbols_bc.h +;;; ./gengen/gr_chunks_to_symbols_bf.h +;;; ./gengen/gr_chunks_to_symbols_ic.h +;;; ./gengen/gr_chunks_to_symbols_if.h +;;; ./gengen/gr_chunks_to_symbols_sc.h +;;; ./gengen/gr_chunks_to_symbols_sf.h +;;; ./gengen/gr_divide_cc.h +;;; ./gengen/gr_divide_ff.h +;;; ./gengen/gr_divide_ii.h +;;; ./gengen/gr_divide_ss.h +;;; ./gengen/gr_integrate_cc.h +;;; ./gengen/gr_integrate_ff.h +;;; ./gengen/gr_integrate_ii.h +;;; ./gengen/gr_integrate_ss.h +;;; ./gengen/gr_max_ff.h +;;; ./gengen/gr_max_ii.h +;;; ./gengen/gr_max_ss.h +;;; ./gengen/gr_moving_average_cc.h +;;; ./gengen/gr_moving_average_ff.h +;;; ./gengen/gr_moving_average_ii.h +;;; ./gengen/gr_moving_average_ss.h +;;; ./gengen/gr_multiply_cc.h +;;; ./gengen/gr_multiply_const_cc.h +;;; ./gengen/gr_multiply_const_ff.h +;;; ./gengen/gr_multiply_const_ii.h +;;; ./gengen/gr_multiply_const_ss.h +;;; ./gengen/gr_multiply_const_vcc.h +;;; ./gengen/gr_multiply_const_vff.h +;;; ./gengen/gr_multiply_const_vii.h +;;; ./gengen/gr_multiply_const_vss.h +;;; ./gengen/gr_multiply_ff.h +;;; ./gengen/gr_multiply_ii.h +;;; ./gengen/gr_multiply_ss.h +;;; ./gengen/gr_mute_cc.h +;;; ./gengen/gr_mute_ff.h +;;; ./gengen/gr_mute_ii.h +;;; ./gengen/gr_mute_ss.h +;;; ./gengen/gr_noise_source_c.h +;;; ./gengen/gr_noise_source_f.h +;;; ./gengen/gr_noise_source_i.h +;;; ./gengen/gr_noise_source_s.h +;;; ./gengen/gr_not_bb.h +;;; ./gengen/gr_not_ii.h +;;; ./gengen/gr_not_ss.h +;;; ./gengen/gr_or_bb.h +;;; ./gengen/gr_or_ii.h +;;; ./gengen/gr_or_ss.h +;;; ./gengen/gr_packed_to_unpacked_bb.h +;;; ./gengen/gr_packed_to_unpacked_ii.h +;;; ./gengen/gr_packed_to_unpacked_ss.h +;;; ./gengen/gr_peak_detector_fb.h +;;; ./gengen/gr_peak_detector_ib.h +;;; ./gengen/gr_peak_detector_sb.h +;;; ./gengen/gr_sample_and_hold_bb.h +;;; ./gengen/gr_sample_and_hold_ff.h +;;; ./gengen/gr_sample_and_hold_ii.h +;;; ./gengen/gr_sample_and_hold_ss.h +;;; ./gengen/gr_sig_source_c.h +;;; ./gengen/gr_sig_source_f.h +;;; ./gengen/gr_sig_source_i.h +;;; ./gengen/gr_sig_source_s.h +;;; ./gengen/gr_sub_cc.h +;;; ./gengen/gr_sub_ff.h +;;; ./gengen/gr_sub_ii.h +;;; ./gengen/gr_sub_ss.h +;;; ./gengen/gr_unpacked_to_packed_bb.h +;;; ./gengen/gr_unpacked_to_packed_ii.h +;;; ./gengen/gr_unpacked_to_packed_ss.h +;;; ./gengen/gr_vector_sink_b.h +;;; ./gengen/gr_vector_sink_c.h +;;; ./gengen/gr_vector_sink_f.h +;;; ./gengen/gr_vector_sink_i.h +;;; ./gengen/gr_vector_sink_s.h +;;; ./gengen/gr_vector_source_b.h +;;; ./gengen/gr_vector_source_c.h +;;; ./gengen/gr_vector_source_f.h +;;; ./gengen/gr_vector_source_i.h +;;; ./gengen/gr_vector_source_s.h +;;; ./gengen/gr_xor_bb.h +;;; ./gengen/gr_xor_ii.h +;;; ./gengen/gr_xor_ss.h diff --git a/gnuradio-core/src/guile/tests/hier_ctors.test b/gnuradio-core/src/guile/tests/hier_ctors.test new file mode 100644 index 000000000..c297fb9dd --- /dev/null +++ b/gnuradio-core/src/guile/tests/hier_ctors.test @@ -0,0 +1,30 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +;;; If you're using Emacs's Scheme mode: +;;; (put 'with-test-prefix 'scheme-indent-function 1) + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + +;;; Add test code for all constructors in these files +;;; +;;; ./hier/gr_channel_model.h diff --git a/gnuradio-core/src/guile/tests/io_ctors.test b/gnuradio-core/src/guile/tests/io_ctors.test new file mode 100644 index 000000000..2001e5fa5 --- /dev/null +++ b/gnuradio-core/src/guile/tests/io_ctors.test @@ -0,0 +1,42 @@ +;;; -*- Scheme -*- +;;; +;;; Copyright 2010 Free Software Foundation, Inc. +;;; +;;; This file is part of GNU Radio +;;; +;;; GNU Radio 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 3, or (at your option) +;;; any later version. +;;; +;;; GNU Radio 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 this program. If not, see . +;;; + +;;; If you're using Emacs's Scheme mode: +;;; (put 'with-test-prefix 'scheme-indent-function 1) + +(use-modules (gnuradio test-suite lib)) +(use-modules (gnuradio core)) +(use-modules (oop goops)) + +;;; Add test code for all constructors in these files +;;; +;;; ./io/gr_file_descriptor_sink.h +;;; ./io/gr_file_descriptor_source.h +;;; ./io/gr_file_sink.h +;;; ./io/gr_file_source.h +;;; ./io/gr_histo_sink_f.h +;;; ./io/gr_message_sink.h +;;; ./io/gr_message_source.h +;;; ./io/gr_oscope_sink_f.h +;;; ./io/gr_oscope_sink_x.h +;;; ./io/gr_udp_sink.h +;;; ./io/gr_udp_source.h +;;; ./io/gr_wavfile_sink.h +;;; ./io/gr_wavfile_source.h -- cgit