From: Michael Stapelberg Date: Sat, 19 Aug 2017 14:51:51 +0000 (+0200) Subject: testcases: remove external AnyEvent::I3 dependency X-Git-Tag: 4.14~14^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a91544b5b39396b7b6491fa18a61de092ea5e1f7;p=i3%2Fi3 testcases: remove external AnyEvent::I3 dependency --- diff --git a/Makefile.am b/Makefile.am index 188e9e82..ec28991c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,6 +53,9 @@ check_PROGRAMS = \ check_SCRIPTS = \ testcases/complete-run.pl +check_DATA = \ + anyevent-i3.stamp + clean-check: rm -rf testsuite-* latest i3-cfg-for-* _Inline clean-local: clean-check @@ -573,6 +576,15 @@ i3-config-parser.stamp: parser/$(dirstamp) generate-command-parser.pl parser-spe $(AM_V_at) mv GENERATED_config_* $(top_builddir)/parser $(AM_V_at) touch $@ +################################################################################ +# AnyEvent-I3 build process +################################################################################ + +anyevent-i3.stamp: generate-command-parser.pl parser-specs/config.spec + $(AM_V_BUILD) (cd $(top_srcdir)/AnyEvent-I3 && perl Makefile.PL && make) + $(AM_V_at) touch $@ + CLEANFILES = \ i3-command-parser.stamp \ - i3-config-parser.stamp + i3-config-parser.stamp \ + anyevent-i3.stamp diff --git a/testcases/Makefile.PL b/testcases/Makefile.PL index 3c2a26f9..0b1f3055 100755 --- a/testcases/Makefile.PL +++ b/testcases/Makefile.PL @@ -8,7 +8,6 @@ WriteMakefile( MIN_PERL_VERSION => '5.010000', # 5.10.0 PREREQ_PM => { 'AnyEvent' => 0, - 'AnyEvent::I3' => '0.16', 'X11::XCB' => '0.12', 'Inline' => 0, 'Inline::C' => 0, diff --git a/testcases/complete-run.pl.in b/testcases/complete-run.pl.in index 2019253c..ba192469 100755 --- a/testcases/complete-run.pl.in +++ b/testcases/complete-run.pl.in @@ -18,7 +18,7 @@ use Time::HiRes qw(time); use IO::Handle; # these are shipped with the testsuite -use lib qw(@abs_top_builddir@/testcases/lib @abs_top_srcdir@/testcases/lib); +use lib qw(@abs_top_builddir@/testcases/lib @abs_top_srcdir@/testcases/lib @abs_top_srcdir@/AnyEvent-I3/blib/lib); use i3test::Util qw(slurp); use StartXServer; use StatusLine; diff --git a/testcases/lib/i3test.pm.in b/testcases/lib/i3test.pm.in index f7e1515d..18bebb52 100644 --- a/testcases/lib/i3test.pm.in +++ b/testcases/lib/i3test.pm.in @@ -7,6 +7,7 @@ use Test::Builder; use X11::XCB::Rect; use X11::XCB::Window; use X11::XCB qw(:all); +use lib qw(@abs_top_srcdir@/AnyEvent-I3/blib/lib); use AnyEvent::I3; use List::Util qw(first); use Time::HiRes qw(sleep); diff --git a/testcases/lib/i3test/XTEST.pm b/testcases/lib/i3test/XTEST.pm index 92adde42..3937b70a 100644 --- a/testcases/lib/i3test/XTEST.pm +++ b/testcases/lib/i3test/XTEST.pm @@ -6,6 +6,7 @@ use warnings; use v5.10; use i3test i3_autostart => 0; +use lib qw(@abs_top_srcdir@/AnyEvent-I3/blib/lib); use AnyEvent::I3; use ExtUtils::PkgConfig; diff --git a/testcases/t/000-load-deps.t b/testcases/t/000-load-deps.t index ab93233a..e0408338 100644 --- a/testcases/t/000-load-deps.t +++ b/testcases/t/000-load-deps.t @@ -8,7 +8,6 @@ BEGIN { X11::XCB::Connection X11::XCB::Window AnyEvent - AnyEvent::I3 IPC::Run ExtUtils::PkgConfig Inline diff --git a/travis/travis-base.Dockerfile b/travis/travis-base.Dockerfile index a415f549..5704d8e4 100644 --- a/travis/travis-base.Dockerfile +++ b/travis/travis-base.Dockerfile @@ -19,7 +19,7 @@ RUN apt-get update && \ dpkg-dev devscripts git equivs \ clang clang-format-3.8 \ lintian \ - libanyevent-perl libanyevent-i3-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libinline-c-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libipc-run-perl libxcb-xtest0-dev libx11-xcb-perl libanyevent-i3-perl && \ + libmodule-install-perl libanyevent-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libinline-c-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libipc-run-perl libxcb-xtest0-dev libx11-xcb-perl libjson-xs-perl && \ rm -rf /var/lib/apt/lists/* # Install i3 build dependencies.