diff --git a/src/protocol/ftp/meson.build b/src/protocol/ftp/meson.build index a12435539..206241821 100644 --- a/src/protocol/ftp/meson.build +++ b/src/protocol/ftp/meson.build @@ -1,8 +1,8 @@ srcs += files('ftp.c', 'parse.c') -#TEST_PROGS = \ -# ftp-parser$(EXEEXT) +executable('ftp-parser', 'ftp-parser.c', meson.source_root()+'/src/protocol/date.c', 'parse.c', testdeps, +c_args:['-DHAVE_CONFIG_H'], include_directories:['.','..','../..', '../../..']) -#TESTDEPS = \ -# $(top_builddir)/src/protocol/date.o \ -# $(top_builddir)/src/protocol/ftp/parse.o +test_lib = environment({'TEST_LIB': meson.source_root()+'/test/libtest.sh'}) +t = find_program('test-ftp-parser') +test('ftp-parser', t, env: test_lib, workdir: meson.current_build_dir(), should_fail: true)