Debian Codegraph @

debian/tests-patches/use_system_liblouis

raw
1 ---
2 tests/Makefile.am | 5 +----
3 tests/check_all_tables.pl | 2 +-
4 tests/check_endless_loop.pl | 2 +-
5 tests/multiple_table_path.pl | 4 ++--
6 tools/Makefile.am | 4 ++--
7 5 files changed, 7 insertions(+), 10 deletions(-)
8
9 --- a/tests/Makefile.am
10 +++ b/tests/Makefile.am
11 @@ -8,7 +8,7 @@ AM_CPPFLAGS = \
12 -I$(top_builddir)/tools
13
14 LDADD = \
15 - $(top_builddir)/liblouis/liblouis.la \
16 + -llouis \
17 $(top_builddir)/gnulib/libgnu.la \
18 $(top_builddir)/tools/libbrlcheck.la \
19 $(top_builddir)/tools/gnulib/libgnutools.la \
20 @@ -285,9 +285,6 @@ TESTS = \
21 $(dist_yaml_TESTS)
22
23 AM_TESTS_ENVIRONMENT = \
24 - LOUIS_TABLEPATH=$(abs_top_srcdir) \
25 - LD_LIBRARY_PATH=$(top_builddir)/liblouis/.libs:$$LD_LIBRARY_PATH \
26 - PATH=$(top_builddir)/tools:$$PATH \
27 WINEPATH=$(top_builddir)/tools \
28 WINE=$(WINE) \
29 EXEEXT=$(EXEEXT)
30 --- a/tools/Makefile.am
31 +++ b/tools/Makefile.am
32 @@ -9,7 +9,7 @@ AM_CPPFLAGS = \
33 lou_checkyaml_CPPFLAGS = $(AM_CPPFLAGS) $(YAML_CFLAGS)
34
35 LDADD = \
36 - $(top_builddir)/liblouis/liblouis.la \
37 + -llouis \
38 $(top_builddir)/tools/gnulib/libgnutools.la \
39 libbrlcheck.la \
40 $(LTLIBINTL) $(LIBFUZZER_NO_MAIN)
41 @@ -41,7 +41,7 @@ libbrlcheck_la_SOURCES = \
42 # liblouis library. Otherwise we get missing symbol errors when
43 # compiling the test suite, which depends on libbrlcheck.
44 libbrlcheck_la_LIBADD = \
45 - $(top_builddir)/liblouis/liblouis.la \
46 + -llouis \
47 $(top_builddir)/tools/gnulib/libgnutools.la
48
49 lou_checkyaml_LDADD = $(LDADD) $(YAML_LIBS)
50 --- a/tests/check_all_tables.pl
51 +++ b/tests/check_all_tables.pl
52 @@ -43,7 +43,7 @@ foreach my $table (@tables) {
53 print "table $table only works with ucs4. Ignoring for now...\n";
54 exit 0;
55 } else {
56 - exec ("../tools/lou_checktable $table --quiet");
57 + exec ("lou_checktable $table --quiet");
58 }
59 die "Exec of lou_checktable failed: $!";
60 }
61 --- a/tests/check_endless_loop.pl
62 +++ b/tests/check_endless_loop.pl
63 @@ -27,6 +27,6 @@ my $table="loop.ctb";
64 $SIG{ALRM} = sub { die "lou_checktable on $table stuck in endless loop\n" };
65
66 alarm 5;
67 -system("../tools/lou_checktable $table --quiet") == 0
68 +system("lou_checktable $table --quiet") == 0
69 or die "lou_checktable on $table failed\n";
70 alarm 0;
71 --- a/tests/multiple_table_path.pl
72 +++ b/tests/multiple_table_path.pl
73 @@ -56,8 +56,8 @@ my @tables = (
74
75 # ensure existing tables are found
76 foreach my $table (@tables) {
77 - system("../tools/lou_checktable $table --quiet") == 0 or die;
78 + system("lou_checktable $table --quiet") == 0 or die;
79 }
80
81 # ensure a non-existing table is not found
82 -system("../tools/lou_checktable nonexistent.ctb 2> /dev/null") != 0 or die;
83 +system("lou_checktable nonexistent.ctb 2> /dev/null") != 0 or die;