Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020.0.0: test suite is failing #1478

Closed
kloczek opened this issue Apr 28, 2020 · 8 comments
Closed

2020.0.0: test suite is failing #1478

kloczek opened this issue Apr 28, 2020 · 8 comments

Comments

@kloczek
Copy link

kloczek commented Apr 28, 2020

+ /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu'
[1/7] Generating version.h with a custom command
fatal: not a git repository (or any parent up to mount point /home/tkloczko)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  1/165 API/ksh/ksh_debug        OK             0.30s
  2/165 b_alias                  OK             0.59s
  3/165 b_alias/shcomp           OK             0.86s
  4/165 b_basename               OK             0.42s
  5/165 b_basename/shcomp        OK             0.59s
  6/165 b_cat                    OK             0.56s
  7/165 b_cat/shcomp             OK             0.68s
  8/165 b_chmod                  FAIL           1.03s (exit status 3)
  9/165 b_chmod/shcomp           FAIL           1.01s (exit status 3)
 10/165 b_cmp                    OK             0.67s
 11/165 b_cmp/shcomp             OK             0.53s
 12/165 b_command                OK             0.71s
 13/165 b_command/shcomp         OK             0.87s
 14/165 b_cut                    OK             0.58s
 15/165 b_cut/shcomp             OK             0.84s
 16/165 b_dirname                OK             0.74s
 17/165 b_dirname/shcomp         OK             0.78s
 18/165 b_echo.exp               OK             0.36s
 19/165 b_enum                   OK             0.47s
 20/165 b_enum/shcomp            OK             0.69s
 21/165 b_grep                   OK             0.39s
 22/165 b_grep/shcomp            OK             0.47s
 23/165 b_head                   OK             0.42s
 24/165 b_head/shcomp            OK             0.52s
 25/165 b_hist.exp               OK             8.19s
 26/165 b_jobs.exp               OK             17.82s
 27/165 b_jobs                   OK             3.79s
 28/165 b_jobs/shcomp            OK             3.77s
 29/165 b_local                  OK             0.51s
 30/165 b_local/shcomp           OK             0.81s
 31/165 b_mkdir                  OK             0.62s
 32/165 b_mkdir/shcomp           OK             0.47s
 33/165 b_nameref                OK             1.75s
 34/165 b_nameref/shcomp         OK             1.76s
 35/165 b_print                  OK             0.80s
 36/165 b_print/shcomp           OK             0.96s
 37/165 b_printf                 OK             1.60s
 38/165 b_printf/shcomp          OK             1.60s
 39/165 b_read.exp               OK             0.29s
 40/165 b_read                   OK             1.89s
 41/165 b_read/shcomp            OK             1.95s
 42/165 b_return                 OK             0.45s
 43/165 b_return/shcomp          OK             0.38s
 44/165 b_set.exp                OK             0.29s
 45/165 b_set                    OK             0.40s
 46/165 b_sleep                  OK             5.43s
 47/165 b_sleep/shcomp           OK             5.49s
 48/165 b_sync                   OK             0.41s
 49/165 b_sync/shcomp            OK             0.40s
 50/165 b_test.exp               OK             0.34s
 51/165 b_test                   OK             0.52s
 52/165 b_test/shcomp            OK             0.47s
 53/165 b_time.exp               OK             3.10s
 54/165 b_times.exp              OK             2.75s
 55/165 b_ulimit                 OK             0.30s
 56/165 b_ulimit/shcomp          OK             0.59s
 57/165 b_uname                  OK             0.65s
 58/165 b_uname/shcomp           OK             0.65s
 59/165 b_wc                     OK             0.58s
 60/165 b_wc/shcomp              OK             0.40s
 61/165 b_whence                 OK             0.59s
 62/165 b_whence/shcomp          OK             0.65s
 63/165 append                   OK             1.02s
 64/165 append/shcomp            OK             0.58s
 65/165 arith                    OK             1.84s
 66/165 arith/shcomp             OK             1.89s
 67/165 arrays                   OK             2.32s
 68/165 arrays/shcomp            OK             2.66s
 69/165 arrays2                  OK             1.79s
 70/165 arrays2/shcomp           OK             1.28s
 71/165 attributes               OK             1.88s
 72/165 attributes/shcomp        OK             2.37s
 73/165 basic                    OK             25.34s
 74/165 basic/shcomp             OK             24.08s
 75/165 bracket                  OK             3.01s
 76/165 bracket/shcomp           OK             2.64s
 77/165 builtins                 OK             5.02s
 78/165 builtins/shcomp          OK             4.87s
 79/165 case                     OK             1.51s
 80/165 case/shcomp              OK             1.48s
 81/165 comvar                   OK             2.36s
 82/165 comvar/shcomp            OK             2.55s
 83/165 comvario                 OK             8.70s
 84/165 comvario/shcomp          OK             8.71s
 85/165 coprocess                OK             24.74s
 86/165 coprocess/shcomp         OK             23.73s
 87/165 cubetype                 OK             0.87s
 88/165 cubetype/shcomp          OK             1.04s
 89/165 directoryfd              OK             0.78s
 90/165 directoryfd/shcomp       OK             1.15s
 91/165 emacs.exp                OK             0.35s
 92/165 exit                     OK             0.76s
 93/165 exit/shcomp              OK             0.86s
 94/165 expand                   OK             0.46s
 95/165 expand/shcomp            OK             0.38s
 96/165 functions                OK             3.17s
 97/165 functions/shcomp         OK             3.15s
 98/165 getopts                  OK             0.53s
 99/165 getopts/shcomp           OK             0.63s
100/165 glob                     OK             0.69s
101/165 glob/shcomp              OK             0.68s
102/165 glob.exp                 OK             0.30s
103/165 heredoc                  OK             2.29s
104/165 heredoc/shcomp           OK             1.92s
105/165 ifs                      OK             0.94s
106/165 ifs/shcomp               OK             0.69s
107/165 io                       OK             18.84s
108/165 leaks                    OK             7.23s
109/165 leaks/shcomp             OK             7.36s
110/165 locale                   OK             1.23s
111/165 locale/shcomp            OK             1.93s
112/165 math                     OK             29.05s
113/165 math/shcomp              OK             29.42s
114/165 modifiers                OK             1.03s
115/165 modifiers/shcomp         OK             1.54s
116/165 namespace                OK             1.08s
117/165 namespace/shcomp         OK             1.28s
118/165 options                  OK             16.11s
119/165 options/shcomp           OK             16.68s
120/165 path                     OK             8.11s
121/165 path/shcomp              OK             8.23s
122/165 pointtype                OK             1.79s
123/165 pointtype/shcomp         OK             2.97s
124/165 quoting                  OK             4.18s
125/165 quoting/shcomp           OK             3.24s
126/165 quoting2                 OK             2.10s
127/165 quoting2/shcomp          OK             3.25s
128/165 readcsv                  OK             2.96s
129/165 readcsv/shcomp           OK             2.97s
130/165 recttype                 OK             2.88s
131/165 recttype/shcomp          OK             3.43s
132/165 restricted               OK             4.08s
133/165 restricted/shcomp        OK             4.09s
134/165 rksh                     OK             3.76s
135/165 rksh/shcomp              OK             3.86s
136/165 select                   OK             3.68s
137/165 select/shcomp            OK             2.87s
138/165 sh_match                 OK             28.21s
139/165 sh_match/shcomp          OK             27.25s
140/165 sigchld                  OK             63.85s
141/165 sigchld/shcomp           OK             62.66s
142/165 signal                   OK             12.71s
143/165 signal/shcomp            OK             12.70s
144/165 statics                  OK             4.56s
145/165 statics/shcomp           OK             4.90s
146/165 subshell                 OK             71.20s
147/165 subshell/shcomp          OK             70.18s
148/165 substring                OK             2.42s
149/165 substring/shcomp         OK             2.30s
150/165 tilde                    OK             2.34s
151/165 tilde/shcomp             OK             2.16s
152/165 timetype                 OK             1.35s
153/165 timetype/shcomp          OK             1.56s
154/165 treemove                 OK             1.87s
155/165 types                    OK             3.48s
156/165 types/shcomp             OK             3.28s
157/165 variables                TIMEOUT        31.26s
158/165 variables/shcomp         TIMEOUT        32.01s
159/165 vartree1                 OK             2.37s
160/165 vartree1/shcomp          OK             2.00s
161/165 vartree2                 OK             2.33s
162/165 vartree2/shcomp          OK             2.58s
163/165 vi.exp                   OK             0.50s
164/165 special-dev-paths        OK             0.66s
165/165 special-dev-paths/shcomp OK             0.66s

Ok:                 161
Expected Fail:      0
Fail:               2
Unexpected Pass:    0
Skipped:            0
Timeout:            2


The output from the failed tests:

  8/165 b_chmod                  FAIL           1.03s (exit status 3)

--- command ---
14:25:39 LD_LIBRARY_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libast:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libcmd:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll' TEST_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests' LANG='en_US.UTF-8' SHELL='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh' SRC_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0' LIBSAMPLE_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll/libsample.so' /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests/util/run_test.sh b_chmod
--- stdout ---
<I> run_test[112]: TEST_DIR=/tmp/ksh.b_chmod.0j8At5
<I> run_test[153]: ITERS_PER_10MS=26000
--- stderr ---
chmod: symlink_to_foo: cannot change mode [Operation not supported]
chmod: foo/symlink_to_barH: cannot change mode [Operation not supported]
<E> b_chmod[88]: chmod -RH should not follow symbolic links
<E> expect: |---------- drwxr-x--x -rwxr-x--x lr-xr-xr-x lrwxrwxrwx |
<E> actual: |---------- drwxr-x--x -rwxr-x--x lrwxrwxrwx lrwxrwxrwx |
chmod: symlink_to_foo: cannot change mode [Operation not supported]
chmod: foo/symlink_to_barL: cannot change mode [Operation not supported]
<E> b_chmod[112]: chmod -RL should follow symbolic links
<E> expect: |---------- drwxr-x--x -rwxr-x--x lr-xr-xr-x lrwxrwxrwx |
<E> actual: |---------- drwxr-x--x -rwxr-x--x lrwxrwxrwx lrwxrwxrwx |
chmod: /tmp/ksh.b_chmod.0j8At5/symlink_to_foo: cannot change mode [Operation not supported]
<E> b_chmod[163]: chmod -l failed should change permissions on symbolic link
<W> b_chmod[-1]: error_count = 3
-------

  9/165 b_chmod/shcomp           FAIL           1.01s (exit status 3)

--- command ---
14:25:40 LD_LIBRARY_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libast:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libcmd:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll' TEST_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests' LANG='en_US.UTF-8' SHELL='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh' SHCOMP='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/shcomp' SRC_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0' LIBSAMPLE_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll/libsample.so' /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests/util/run_test.sh shcomp b_chmod
--- stdout ---
<I> run_test[112]: TEST_DIR=/tmp/ksh.b_chmod.E33RHM
<I> run_test[153]: ITERS_PER_10MS=26000
--- stderr ---
chmod: symlink_to_foo: cannot change mode [Operation not supported]
chmod: foo/symlink_to_barH: cannot change mode [Operation not supported]
<E> b_chmod[88]: chmod -RH should not follow symbolic links
<E> expect: |---------- drwxr-x--x -rwxr-x--x lr-xr-xr-x lrwxrwxrwx |
<E> actual: |---------- drwxr-x--x -rwxr-x--x lrwxrwxrwx lrwxrwxrwx |
chmod: symlink_to_foo: cannot change mode [Operation not supported]
chmod: foo/symlink_to_barL: cannot change mode [Operation not supported]
<E> b_chmod[112]: chmod -RL should follow symbolic links
<E> expect: |---------- drwxr-x--x -rwxr-x--x lr-xr-xr-x lrwxrwxrwx |
<E> actual: |---------- drwxr-x--x -rwxr-x--x lrwxrwxrwx lrwxrwxrwx |
chmod: /tmp/ksh.b_chmod.E33RHM/symlink_to_foo: cannot change mode [Operation not supported]
<E> b_chmod[163]: chmod -l failed should change permissions on symbolic link
<W> b_chmod[-1]: error_count = 3
-------

157/165 variables                TIMEOUT        31.26s

--- command ---
14:27:01 LD_LIBRARY_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libast:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libcmd:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll' TEST_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests' LANG='en_US.UTF-8' SHELL='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh' SRC_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0' LIBSAMPLE_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll/libsample.so' /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests/util/run_test.sh variables
--- stdout ---
<I> run_test[112]: TEST_DIR=/tmp/ksh.variables.5wTiZD
<I> run_test[153]: ITERS_PER_10MS=28000
--- stderr ---
/tmp/ksh.variables.5wTiZD/variables.sh: line 254: xx=0: not found
/tmp/ksh.variables.5wTiZD/variables.sh: line 262: 1/0: divide by zero
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `:' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `%' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `+' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `/' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: ${3b}: bad substitution
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `*' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `*' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `@' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `}' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `[' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `}' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `!' unexpected
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: ${*a}: bad substitution
/tmp/ksh.variables.5wTiZD/variables.sh[460]: eval: syntax error at line 2: `$' unexpected
-------

158/165 variables/shcomp         TIMEOUT        32.01s

--- command ---
14:27:01 LD_LIBRARY_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libast:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libcmd:/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll' TEST_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests' LANG='en_US.UTF-8' SHELL='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh' SHCOMP='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/shcomp' SRC_ROOT='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0' LIBSAMPLE_PATH='/home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/lib/libdll/libsample.so' /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/src/cmd/ksh93/ksh /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/src/cmd/ksh93/tests/util/run_test.sh shcomp variables
--- stdout ---
<I> run_test[112]: TEST_DIR=/tmp/ksh.variables.fXQG1R
<I> run_test[153]: ITERS_PER_10MS=28000
--- stderr ---
/tmp/ksh.variables.fXQG1R/variables.sh.comp: line 254: xx=0: not found
/tmp/ksh.variables.fXQG1R/variables.sh.comp: line 262: 1/0: divide by zero
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `:' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `%' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `+' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `/' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: ${3b}: bad substitution
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `*' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `*' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `@' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `}' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `[' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `}' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `!' unexpected
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: ${*a}: bad substitution
/tmp/ksh.variables.fXQG1R/variables.sh.comp[460]: eval: syntax error at line 2: `$' unexpected
-------

Full log written to /home/tkloczko/rpmbuild/BUILD/ksh-2020.0.0/x86_64-redhat-linux-gnu/meson-logs/testlog.txt
@jelmd
Copy link

jelmd commented Apr 28, 2020

FWIW: This is an unsupported, experimental, discontinued version.

@kloczek
Copy link
Author

kloczek commented Apr 28, 2020

Bu that is latest version.

So which one should I use?

@gordonwoodhull
Copy link
Contributor

Please see #1466 for an explanation of what happened with ksh2020.

This repo only provides the AT&T-released versions, specifically ksh93u+, and is only minimally supported. I don't know if ksh2020 is actively supported or not.

You need to search for forks of this repo to find active support.

@kloczek
Copy link
Author

kloczek commented Apr 28, 2020

So it means that ast ksh is dead?? .. I do not understand why it happened and all changes have been moved to branch. Some legal reasons?

@jghub
Copy link

jghub commented Apr 28, 2020

@kloczek: as @gordonwoodhull said, please read up on the reasons in #1466 and links therein. ast ksh definitely is not dead. ksh2020 just went off in an ultimately different direction and has stalled since (AFAIK).

maybe also look at

https://github.com/ksh-community

which aims at maintaining ksh93 proper in the future. so if you see a bug in ksh93u+ (not in ksh2020 alone...), please report it there.

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Apr 28, 2020

Thanks @jghub. As described in the linked issue and other issues, we at AT&T decided that the ksh2020 branch, maintained by external contributors, was not going in a direction which we could support.

We also do not have the resources to actively support this repo, as all of the original authors have left the company.

So we reverted this repo to the last stable AT&T version, and invited the community to fork.

There were basically two factions - one wanted to maintain ksh93u+, and another wanted ksh2020. We invited each to go their own way.

The History section of the KornShell Wikipedia page is a good overview.

@kloczek
Copy link
Author

kloczek commented May 1, 2020

Still I do not understand cureewnt situation.

A lot of good work on the code has been done and now all that looks like have been rolled back on master.

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented May 1, 2020

I feel that I have explained this. Please read the other issues for more info.

Yes, we rolled back master on this repo. If you want ksh2020 you could look at this fork of the repo, as linked in #1466 (which I guess you still have not read).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants