Hi Ricardo,

I figured out why I was getting those errors - I hadn't given ownership of the 
source folder to the unprivileged user I was using to run the tests. I gave 
that user ownership and re-ran the tests and they all ran ok (sorry, my bad).

Although, tests/respawn.sh failed (the only one that did). I don't know how 
critical that one is, but I will attach the test-suite.log file, in case that 
is of any interest.

Thanks!

Lee

P.S. I may have sent this e-mail more than once, as I've had some issues with 
my e-mail - if so, I apologize.


September 26, 2017 7:52 AM, "Ricardo Wurmus" <[email protected]> wrote:

> [email protected] writes:
> 
>> If I try 'make check' without root privileges, some other errors get
>> thrown up.
> 
> What errors are those?
> 
> --
> Ricardo
> 
> GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
> https://elephly.net
==========================================
   GNU Shepherd 0.3.2: ./test-suite.log
==========================================

# TOTAL: 8
# PASS:  7
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/respawn
===================

+ shepherd --version
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/service.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/service.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/service.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
shepherd (GNU Shepherd) 0.3.2
Copyright (C) 2016 the Shepherd authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
+ herd --version
herd (GNU Shepherd) 0.3.2
Copyright (C) 2016 the Shepherd authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
+ socket=t-socket-7568
+ conf=t-conf-7568
+ log=t-log-7568
+ stamp=t-stamp-7568
+ service1_pid=t-service1-pid-7568
+ service2_pid=t-service2-pid-7568
+ pid=t-pid-7568
+ herd='herd -s t-socket-7568'
+ trap 'cat t-log-7568 || true ;
  rm -f t-socket-7568 t-conf-7568 t-stamp-7568 t-log-7568 ;
  test -f t-pid-7568 && kill `cat t-pid-7568` || true ; rm -f t-pid-7568 ;
  test -f t-service1-pid-7568 && kill `cat t-service1-pid-7568` || true ;
  test -f t-service2-pid-7568 && kill `cat t-service2-pid-7568` || true ;
  rm -f t-service1-pid-7568 t-service2-pid-7568' EXIT
+ cat
+ rm -f t-pid-7568
+ wait_for_file t-pid-7568
+ i=0
+ test -f t-pid-7568
+ shepherd -I -s t-socket-7568 -c t-conf-7568 -l t-log-7568 --pid=t-pid-7568
+ test 0 -lt 20
+ sleep 0.3
++ expr 0 + 1
+ i=1
+ test -f t-pid-7568
+ test 1 -lt 20
+ sleep 0.3
++ expr 1 + 1
+ i=2
+ test -f t-pid-7568
+ test -f t-pid-7568
++ cat t-pid-7568
+ shepherd_pid=7577
+ kill -0 7577
+ test -S t-socket-7568
+ herd -s t-socket-7568 status
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
Started:
 + test1
 + root
Stopped:
 - test2

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
+ herd -s t-socket-7568 status test1
+ grep started
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
  It is started.
+ herd -s t-socket-7568 start test2
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
Service test2 has been started.

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
+ grep started
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument
;;; WARNING: loading compiled file 
/sources/shepherd-0.3.2/modules/shepherd/comm.go failed:
;;; ERROR: In procedure load-thunk-from-file: Invalid argument

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
  It is started.
+ test -f t-service2-pid-7568
+ wait_for_file t-service1-pid-7568
+ i=0
+ test -f t-service1-pid-7568
+ test -f t-service1-pid-7568
++ cat t-service1-pid-7568
+ kill -0 7584
++ cat t-service2-pid-7568
+ kill -0 7598
+ assert_killed_service_is_respawned t-service1-pid-7568
++ cat t-service1-pid-7568
+ old_pid=7584
+ rm t-service1-pid-7568
+ kill 7584
+ wait_for_file t-service1-pid-7568
+ i=0
+ test -f t-service1-pid-7568
+ test 0 -lt 20
+ sleep 0.3
++ expr 0 + 1
+ i=1
+ test -f t-service1-pid-7568
+ test 1 -lt 20
+ sleep 0.3
++ expr 1 + 1
+ i=2
+ test -f t-service1-pid-7568
+ test 2 -lt 20
+ sleep 0.3
++ expr 2 + 1
+ i=3
+ test -f t-service1-pid-7568
+ test -f t-service1-pid-7568
+ test -f t-service1-pid-7568
++ cat t-service1-pid-7568
+ new_pid=7617
+ test 7584 -ne 7617
+ kill -0 7617
+ assert_killed_service_is_respawned t-service2-pid-7568
++ cat t-service2-pid-7568
+ old_pid=7598
+ rm t-service2-pid-7568
+ kill 7598
+ wait_for_file t-service2-pid-7568
+ i=0
+ test -f t-service2-pid-7568
+ test 0 -lt 20
+ sleep 0.3
++ expr 0 + 1
+ i=1
+ test -f t-service2-pid-7568
+ test 1 -lt 20
+ sleep 0.3
++ expr 1 + 1
+ i=2
+ test -f t-service2-pid-7568
+ test 2 -lt 20
+ sleep 0.3
++ expr 2 + 1
+ i=3
+ test -f t-service2-pid-7568
+ test 3 -lt 20
+ sleep 0.3
++ expr 3 + 1
+ i=4
+ test -f t-service2-pid-7568
+ test 4 -lt 20
+ sleep 0.3
++ expr 4 + 1
+ i=5
+ test -f t-service2-pid-7568
+ test 5 -lt 20
+ sleep 0.3
++ expr 5 + 1
+ i=6
+ test -f t-service2-pid-7568
+ test -f t-service2-pid-7568
+ test -f t-service2-pid-7568
++ cat t-service2-pid-7568
+ new_pid=7628
+ test 7598 -ne 7628
+ kill -0 7628
+ assert_killed_service_is_respawned t-service1-pid-7568
++ cat t-service1-pid-7568
+ old_pid=7617
+ rm t-service1-pid-7568
+ kill 7617
+ wait_for_file t-service1-pid-7568
+ i=0
+ test -f t-service1-pid-7568
+ test 0 -lt 20
+ sleep 0.3
++ expr 0 + 1
+ i=1
+ test -f t-service1-pid-7568
+ test 1 -lt 20
+ sleep 0.3
++ expr 1 + 1
+ i=2
+ test -f t-service1-pid-7568
+ test 2 -lt 20
+ sleep 0.3
++ expr 2 + 1
+ i=3
+ test -f t-service1-pid-7568
+ test 3 -lt 20
+ sleep 0.3
++ expr 3 + 1
+ i=4
+ test -f t-service1-pid-7568
+ test -f t-service1-pid-7568
+ test -f t-service1-pid-7568
++ cat t-service1-pid-7568
+ new_pid=7650
+ test 7617 -ne 7650
+ kill -0 7650
+ assert_killed_service_is_respawned t-service2-pid-7568
++ cat t-service2-pid-7568
+ old_pid=7628
+ rm t-service2-pid-7568
+ kill 7628
+ wait_for_file t-service2-pid-7568
+ i=0
+ test -f t-service2-pid-7568
+ test 0 -lt 20
+ sleep 0.3
++ expr 0 + 1
+ i=1
+ test -f t-service2-pid-7568
+ test 1 -lt 20
+ sleep 0.3
++ expr 1 + 1
+ i=2
+ test -f t-service2-pid-7568
+ test 2 -lt 20
+ sleep 0.3
++ expr 2 + 1
+ i=3
+ test -f t-service2-pid-7568
+ test 3 -lt 20
+ sleep 0.3
++ expr 3 + 1
+ i=4
+ test -f t-service2-pid-7568
+ test 4 -lt 20
+ sleep 0.3
++ expr 4 + 1
+ i=5
+ test -f t-service2-pid-7568
+ test 5 -lt 20
+ sleep 0.3
++ expr 5 + 1
+ i=6
+ test -f t-service2-pid-7568
+ test 6 -lt 20
+ sleep 0.3
++ expr 6 + 1
+ i=7
+ test -f t-service2-pid-7568
+ test 7 -lt 20
+ sleep 0.3
++ expr 7 + 1
+ i=8
+ test -f t-service2-pid-7568
+ test 8 -lt 20
+ sleep 0.3
++ expr 8 + 1
+ i=9
+ test -f t-service2-pid-7568
+ test 9 -lt 20
+ sleep 0.3
++ expr 9 + 1
+ i=10
+ test -f t-service2-pid-7568
+ test 10 -lt 20
+ sleep 0.3
++ expr 10 + 1
+ i=11
+ test -f t-service2-pid-7568
+ test 11 -lt 20
+ sleep 0.3
++ expr 11 + 1
+ i=12
+ test -f t-service2-pid-7568
+ test 12 -lt 20
+ sleep 0.3
++ expr 12 + 1
+ i=13
+ test -f t-service2-pid-7568
+ test 13 -lt 20
+ sleep 0.3
++ expr 13 + 1
+ i=14
+ test -f t-service2-pid-7568
+ test 14 -lt 20
+ sleep 0.3
++ expr 14 + 1
+ i=15
+ test -f t-service2-pid-7568
+ test 15 -lt 20
+ sleep 0.3
++ expr 15 + 1
+ i=16
+ test -f t-service2-pid-7568
+ test 16 -lt 20
+ sleep 0.3
++ expr 16 + 1
+ i=17
+ test -f t-service2-pid-7568
+ test 17 -lt 20
+ sleep 0.3
++ expr 17 + 1
+ i=18
+ test -f t-service2-pid-7568
+ test 18 -lt 20
+ sleep 0.3
++ expr 18 + 1
+ i=19
+ test -f t-service2-pid-7568
+ test 19 -lt 20
+ sleep 0.3
++ expr 19 + 1
+ i=20
+ test -f t-service2-pid-7568
+ test 20 -lt 20
+ test -f t-service2-pid-7568
+ cat t-log-7568
2017-09-26 18:48:23 Service root has been started.
2017-09-26 18:48:23 Service test1 has been started.
2017-09-26 18:48:25 Service test2 has been started.
2017-09-26 18:48:26 Respawning test1.
2017-09-26 18:48:26 Service test1 has been started.
2017-09-26 18:48:27 Respawning test2.
2017-09-26 18:48:28 Service test2 has been started.
2017-09-26 18:48:29 Respawning test1.
2017-09-26 18:48:29 Service test1 has been started.
2017-09-26 18:48:30 Respawning test2.
2017-09-26 18:48:35 Service test2 could not be started.
+ rm -f t-socket-7568 t-conf-7568 t-stamp-7568 t-log-7568
+ test -f t-pid-7568
++ cat t-pid-7568
+ kill 7577
+ rm -f t-pid-7568
+ test -f t-service1-pid-7568
++ cat t-service1-pid-7568
+ kill 7650
+ test -f t-service2-pid-7568
+ true
+ rm -f t-service1-pid-7568 t-service2-pid-7568
./tests/respawn.sh: line 6:  7577 Terminated              shepherd -I -s 
"$socket" -c "$conf" -l "$log" --pid="$pid"
FAIL tests/respawn.sh (exit status: 1)

Reply via email to