On 5/3/19 1:20 PM, Frederic Lecaille wrote:
So on OSX you should try to use/create a temporary working director
where you have enough permissions to create a stats UNIX socket with
0600 as permissions.
I meant you should try to create a temporary working directory for vtest
using the TMPDIR environment variable, as follows for instance:
$ mkdir ~/tmp/foo
$ TMPDIR=~/tmp/foo make reg-tests
reg-tests/http-capture/multiple_headers.vtc
########################## Preparing to run tests ##########################
Testing with haproxy version: 2.0-dev2-a48237-261
Target : linux2628
Options : +EPOLL -KQUEUE -MY_EPOLL -MY_SPLICE +NETFILTER +PCRE -PCRE_JIT
-PCRE2 -PCRE2_JIT +POLL -PRIVATE_CACHE +THREAD -PTHREAD_PSHARED -REGPARM
-STATIC_PCRE -STATIC_PCRE2 +TPROXY +LINUX_TPROXY +LINUX_SPLICE +LIBCRYPT
+CRYPT_H -VSYSCALL -GETADDRINFO +OPENSSL +LUA +FUTEX +ACCEPT4
-MY_ACCEPT4 +ZLIB -SLZ +CPU_AFFINITY -TFO -NS +DL +RT -DEVICEATLAS
-51DEGREES -WURFL -SYSTEMD -OBSOLETE_LINKER +PRCTL
########################## Gathering tests to run ##########################
Add test: reg-tests/http-capture/multiple_headers.vtc
########################## Starting vtest ##########################
Testing with haproxy version: 2.0-dev2-a48237-261
# top TEST reg-tests/http-capture/multiple_headers.vtc TIMED OUT
(kill -9)
# top TEST reg-tests/http-capture/multiple_headers.vtc FAILED
(10.010) signal=9
1 tests failed, 0 tests skipped, 0 tests passed
########################## Gathering results ##########################
###### Test case: reg-tests/http-capture/multiple_headers.vtc ######
## test results in:
"/home/flecaille/tmp/foo/haregtests-2019-05-03_13-24-59.2P0ECZ/vtc.1327.1fe5daa1"
---- c1 5.0 HTTP rx timeout (fd:9 5000 ms)
Makefile:971: recipe for target 'reg-tests' failed
make: *** [reg-tests] Error 1
As you can see the logs are now in /home/flecaille/tmp/foo (with ~ my
home directory: /home/flecaille)
The LOG file is here:
/home/flecaille/tmp/foo/haregtests-2019-05-03_13-24-59.2P0ECZ/vtc.1327.1fe5daa1/LOG
and the UNIX stats socket is here:
$ grep stats
/home/flecaille/tmp/foo/haregtests-2019-05-03_13-24-59.2P0ECZ/vtc.1327.1fe5daa1/LOG
**** h 0.0 conf|\tstats socket
"/home/flecaille/tmp/foo/haregtests-2019-05-03_13-24-59.2P0ECZ/vtc.1327.1fe5daa1/h/stats.sock"
level admin mode 600