1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/cmd/ksh93/tests
Martijn Dekker d3cd4cf906 Fixes to compile on Solaris variants, NetBSD, and NixOS
Solaris, Illumos distributions, and NetBSD need LDFLAGS set to link
explicitly to libm, otherwise, due to as-yet unknown reasons, the
src/lib/libdll/features/dll fails to write a valid header file and
compilation fails due to unknown identifiers such as Dllscan_t.
This commit adds the flag on those systems.

NixOS is a Linux distro that uses very different paths from the
usual Unix conventions (though it's POSIX compliant), and the
regression tests still needed a lot of tweaks to be compatible.

src/cmd/INIT/package.sh, bin/package:
- On SunOS (Solaris and illumos distros) and NetBSD, add '-lm' to
  LDFLAGS before compiling.

src/cmd/INIT/mamprobe.sh, bin/mamprobe,
src/cmd/INIT/execrate.sh, bin/execrate:
- Instead of only in /bin, /usr/bin, /sbin and /usr/sbin, search
  utilities in the path given by the OS 'getconf PATH', and use the
  user's original $PATH as a fallback.

src/cmd/ksh93/tests/*.sh:
- Miscellaneous portability fixes, mainly elimination of unportable
  hardcoded paths to commands.
- basic.sh: Remove test for 'time' keyword millisecond precision.
  It was racy and could fail depending on system and system load.
2020-08-03 09:24:16 +01:00
..
alias.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
append.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
arith.sh Fix a syntax error when ((...)) is combined with redirections (#68) 2020-07-09 22:12:04 +01:00
arrays.sh Fix creation of extra associative array element '0' (#101) 2020-07-31 17:32:09 +01:00
arrays2.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
attributes.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
basic.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
bracket.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
builtins.sh tests/builtin.sh: sleep -s: give more time for fork 2020-07-29 23:01:28 +01:00
case.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
comvar.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
comvario.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
coprocess.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
cubetype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
enum.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
exit.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
expand.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
functions.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
glob.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
grep.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
heredoc.sh Fix command substitutions run on the same line as a here-doc (#91) 2020-07-24 00:03:57 +01:00
io.sh Fix subshell file descriptor leak 2020-07-21 04:12:40 +01:00
leaks.sh tests/leaks.sh: Avoid spurious leak results 2020-07-29 22:47:30 +01:00
locale.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
math.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
nameref.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
namespace.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
options.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
path.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
pointtype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
pty.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
quoting.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
quoting2.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
readcsv.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
recttype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
restricted.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
return.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
select.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
shtests Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
sigchld.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
signal.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
statics.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
subshell.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
substring.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
tilde.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
timetype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
treemove.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
types.sh Fix type names starting with lowercase 'a' (#69) 2020-07-10 17:54:51 +01:00
variables.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
vartree1.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
vartree2.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00