Fix error for 'make check'

Implement several simple shell scripts to exercise various aspects of
Hamlib.  The previous implementation relied on the installation of
DejaGNU and the tests/config and tests/*.test directories were not
distributed.  Also, later Autotools documenation seems to suggest that
DejaGNU is to be replaced by Autotest.  The generation and use of simple
scripts was chosen to provide a usable check target until Autotest can
be supported.
Hamlib-1.2.15
Nate Bargmann 2012-01-12 15:34:38 -06:00
rodzic bd7101d8cc
commit cb1732fc2a
1 zmienionych plików z 29 dodań i 2 usunięć

Wyświetl plik

@ -1,6 +1,8 @@
# Current Autotools documentation suggests that DejaGNU is obsolete
# and replaced by Autotest. TODO: implement Autotest
AUTOMAKE_OPTIONS = dejagnu
DEJATOOL = testfreq testbcd testloc rigctl
# AUTOMAKE_OPTIONS = dejagnu
# DEJATOOL = testfreq testbcd testloc rigctl
DISTCLEANFILES = rigctl.log rigctl.sum testbcd.log testbcd.sum
@ -74,3 +76,28 @@ rigmatrix.html: rigmatrix_head.html rigmatrix listrigs
EXTRA_DIST = rigmatrix_head.html rig_split_lst.awk $(man_MANS) testctld.pl testrotctld.pl
# Support 'make check' target for simple tests
check_SCRIPTS = testrig.sh testfreq.sh testbcd.sh testloc.sh
TESTS = $(check_SCRIPTS)
testrig.sh:
echo './testrig 1' > testrig.sh
chmod +x ./testrig.sh
testfreq.sh:
echo './testfreq' > testfreq.sh
chmod +x ./testfreq.sh
testbcd.sh:
echo './testbcd 146520000 10' > testbcd.sh
chmod +x ./testbcd.sh
testloc.sh:
echo './testloc EM79UT96LW 5' > testloc.sh
chmod +x ./testloc.sh
CLEANFILES = testrig.sh testfreq.sh testbcd.sh testloc.sh