Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
82ad9444
Commit
82ad9444
authored
May 22, 2011
by
Pieter Noordhuis
Browse files
Test against unix socket connection in make check target
parent
9723a4fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
82ad9444
...
...
@@ -106,10 +106,15 @@ test: hiredis-test
./hiredis-test
check
:
hiredis-test
echo
"daemonize yes
\n
pidfile /tmp/redis-check.pid
\n
port 56379"
\
| redis-server -
./hiredis-test
-p
56379
||
(
kill
`
cat
/tmp/redis-check.pid
`
&&
false
)
kill
`
cat
/tmp/redis-check.pid
`
echo
\
"daemonize yes
\n
"
\
"pidfile /tmp/hiredis-test-redis.pid
\n
"
\
"port 56379
\n
"
\
"bind 127.0.0.1
\n
"
\
"unixsocket /tmp/hiredis-test-redis.sock"
\
| redis-server -
./hiredis-test
-h
127.0.0.1
-p
56379
-s
/tmp/hiredis-test-redis.sock
||
true
kill
`
cat
/tmp/hiredis-test-redis.pid
`
.c.o
:
$(CC)
-std
=
c99
-pedantic
-c
$(CFLAGS)
$(OBJARCH)
$(DEBUG)
$(COMPILE_TIME)
$<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment