Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: ido: test on FreeBSD and NetBSD
The binary bash is located in /usr/local/bin on the FreeBSD and OpenBSD systems and in /usr/pkg/bin on NetBSD the system: [freebox@freebsd ~/src/iamroot]$ uname -s FreeBSD [freebox@freebsd ~/src/iamroot]$ which bash /usr/local/bin/bash -bash-5.2$ uname -s NetBSD -bash-5.2$ which bash /usr/pkg/bin/bash -bash-5.2$ uname -s OpenBSD -bash-5.2$ which bash /usr/local/bin/bash [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test environment sets IDO_COMMAND to the command run by ido... Having trouble using fetch through a firewall? Try setting the environment variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details. IDO_COMMAND=/bin/csh ido: test environment sets IDO_COMMAND to the command run by ido: [KO] Test report: ido: test environment sets IDO_COMMAND to the command run by ido at line 652 has failed! 47 test(s) succeed! Error: 1 test(s) failed! Exited! The procfs is mostly Linux specific: [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option -C=101 do not closes file descriptors < 100... /usr/home/freebox/src/iamroot/ido: line 324: [[: *: syntax error: operand expected (error token is "*") ido: test option -C=101 do not closes file descriptors < 100: [KO] Test report: ido: test option -C=101 do not closes file descriptors < 100 at line 196 has failed! 2 test(s) succeed! Error: 1 test(s) failed! Exited! [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option --close-from=100 closes file descriptor >= 100... /usr/home/freebox/src/iamroot/ido: line 324: [[: *: syntax error: operand expected (error token is "*") ido: test option --close-from=100 closes file descriptor >= 100: [OK] Test report: 3 test(s) succeed! [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option --debug-fd=100 sets and duplicates debug fd... IAMROOT_DEBUG_FD=100 ido: test option --debug-fd=100 sets and duplicates debug fd: [KO] Test report: ido: test option --debug-fd=100 sets and duplicates debug fd at line 576 has failed! 40 test(s) succeed! Error: 1 test(s) failed! Exited! Also, there is no group for root the BSD systems: [freebox@freebsd ~/src/iamroot]$ uname -s FreeBSD [freebox@freebsd ~/src/iamroot]$ getent group root -bash-5.2$ uname -s NetBSD -bash-5.2$ getent group root -bash-5.2$ uname -s OpenBSD -bash-5.2$ getent group root [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option -g=root runs command as group name root... ido: unknown group root ido: test option -g=root runs command as group name root: [KO] Test report: ido: test option -g=root runs command as group name root at line 267 has failed! 7 test(s) succeed! Error: 1 test(s) failed! Exited! [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option -P preserves group vector 1000 0... GROUPS=1000 ido: test option -P preserves group vector 1000 0: [KO] Test report: ido: test option -P preserves group vector 1000 0 at line 360 has failed! 16 test(s) succeed! Error: 1 test(s) failed! Exited! The binary bash is located in /usr/local/bin on FreeBSD or /usr/pkg/bin on NetBSD: [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option -P preserves group vector 0 1000... execvP: No such file or directory ido: test option -P preserves group vector 0 1000: [KO] Test report: ido: test option -P preserves group vector 0 1000 at line 360 has failed! 16 test(s) succeed! Error: 1 test(s) failed! Exited! [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option --preserve-groups preserves group vector 1000... execvP: No such file or directory ido: test option --preserve-groups preserves group vector 1000: [KO] Test report: ido: test option --preserve-groups preserves group vector 1000 at line 369 has failed! 17 test(s) succeed! Error: 1 test(s) failed! Exited! [freebox@freebsd ~/src/iamroot]$ make test-ido EXIT_ON_ERROR=1 (...) Running ido: test option --shell runs /bin/bash with the specified command... execvP: No such file or directory ido: test option --shell runs /bin/bash with the specified command: [KO] Test report: ido: test option --shell runs /bin/bash with the specified command at line 405 has failed! 21 test(s) succeed! Error: 1 test(s) failed! Exited!
- Loading branch information