mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[mailcap] Fixed tests
This commit is contained in:
parent
0db5bb7764
commit
3d1280fd2a
@ -7,11 +7,9 @@ OBJS-$(CONFIG_MIMETYPES) += mimetypes.o
|
||||
|
||||
OBJS = common.o default.o
|
||||
|
||||
#TEST_PROGS = \
|
||||
# mailcap-cache$(EXEEXT)
|
||||
TEST_PROGS = \
|
||||
mailcap-cache$(EXEEXT)
|
||||
|
||||
# The dependencies are a bit funny here! I don't know why. Just remember to
|
||||
# make clean before making the test. --jonas
|
||||
mailcap-cache.o: $(top_srcdir)/src/mime/backend/mailcap.c
|
||||
$(call cmd,compile,-DTEST_MAILCAP)
|
||||
|
||||
|
@ -785,6 +785,8 @@ struct module mailcap_mime_module = struct_module(
|
||||
|
||||
#include "util/test.h"
|
||||
|
||||
char *get_ui_clipboard_file(void) { return NULL; }
|
||||
|
||||
/* Some ugly shortcuts for getting defined symbols to work. */
|
||||
int default_mime_backend,
|
||||
install_signal_handler,
|
||||
|
@ -44,15 +44,15 @@ mailcap-cache \
|
||||
cat > expected <<EOF
|
||||
type: text/html
|
||||
block: 1
|
||||
program: elinks --force-html %
|
||||
program: elinks --force-html %f
|
||||
|
||||
type: text/x-csh
|
||||
block: 1
|
||||
program: view %
|
||||
program: view %f
|
||||
|
||||
type: application/postscript
|
||||
block: 1
|
||||
program: ps2ascii %
|
||||
program: ps2ascii %f
|
||||
|
||||
type: application/foo
|
||||
EOF
|
||||
@ -81,11 +81,11 @@ mailcap-cache \
|
||||
cat > expected <<EOF
|
||||
type: image/jpeg
|
||||
block: 0
|
||||
program: xzgv %
|
||||
program: xzgv %f
|
||||
|
||||
type: application/postscript
|
||||
block: 0
|
||||
program: gv %
|
||||
program: gv %f
|
||||
EOF
|
||||
|
||||
test_expect_success \
|
||||
|
Loading…
Reference in New Issue
Block a user