2017-04-19 14:00:12 -04:00
|
|
|
|
2021-10-04 23:47:27 -07:00
|
|
|
|
2023-03-07 00:40:55 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
2017-04-19 16:59:20 -04:00
|
|
|
|
2019-07-16 12:15:46 -04:00
|
|
|
|
2019-09-03 10:08:39 -04:00
|
|
|
|
2017-04-19 16:59:20 -04:00
|
|
|
|
2017-11-24 14:56:05 -05:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
2022-05-28 11:44:53 +02:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
2020-01-05 02:01:28 -05:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
2023-03-06 19:19:48 -07:00
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
|
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2022-10-31 22:30:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
|
|
|
|
|
2023-02-20 10:37:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2023-02-20 10:37:22 +01:00
|
|
|
|
2023-04-13 04:05:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2022-11-21 22:56:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2022-11-21 22:56:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2022-11-21 22:56:05 -07:00
|
|
|
|
2023-04-13 04:05:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-15 17:56:51 +02:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2022-09-06 17:53:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2022-09-06 17:53:21 +02:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
|
|
|
|
|
Add/fix missing WASI functionality to pass libstd tests
This rather large commit adds/fixes missing WASI functionality
in `libstd` needed to pass the `libstd` tests. As such, now by
default tests targeting `wasm32-wasi` target are enabled in
`test/tests.zig` module. However, they can be disabled by passing
the `-Dskip-wasi=true` flag when invoking the `zig build test`
command. When the flag is set to `false`, i.e., when WASI tests are
included, `wasmtime` with `--dir=.` is used as the default testing
command.
Since the majority of `libstd` tests were relying on `fs.cwd()`
call to get current working directory handle wrapped in `Dir`
struct, in order to make the tests WASI-friendly, `fs.cwd()`
call was replaced with `testing.getTestDir()` function which
resolved to either `fs.cwd()` for non-WASI targets, or tries to
fetch the preopen list from the WASI runtime and extract a
preopen for '.' path.
The summary of changes introduced by this commit:
* implement `Dir.makeDir` and `Dir.openDir` targeting WASI
* implement `Dir.deleteFile` and `Dir.deleteDir` targeting WASI
* fix `os.close` and map errors in `unlinkat`
* move WASI-specific `mkdirat` and `unlinkat` from `std.fs.wasi`
to `std.os` module
* implement `lseek_{SET, CUR, END}` targeting WASI
* implement `futimens` targeting WASI
* implement `ftruncate` targeting WASI
* implement `readv`, `writev`, `pread{v}`, `pwrite{v}` targeting WASI
* make sure ANSI escape codes are _not_ used in stderr or stdout
in WASI, as WASI always sanitizes stderr, and sanitizes stdout if
fd is a TTY
* fix specifying WASI rights when opening/creating files/dirs
* tweak `AtomicFile` to be WASI-compatible
* implement `os.renameatWasi` for WASI-compliant `os.renameat` function
* implement sleep() targeting WASI
* fix `process.getEnvMap` targeting WASI
2020-05-05 17:23:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-07-27 08:59:34 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add/fix missing WASI functionality to pass libstd tests
This rather large commit adds/fixes missing WASI functionality
in `libstd` needed to pass the `libstd` tests. As such, now by
default tests targeting `wasm32-wasi` target are enabled in
`test/tests.zig` module. However, they can be disabled by passing
the `-Dskip-wasi=true` flag when invoking the `zig build test`
command. When the flag is set to `false`, i.e., when WASI tests are
included, `wasmtime` with `--dir=.` is used as the default testing
command.
Since the majority of `libstd` tests were relying on `fs.cwd()`
call to get current working directory handle wrapped in `Dir`
struct, in order to make the tests WASI-friendly, `fs.cwd()`
call was replaced with `testing.getTestDir()` function which
resolved to either `fs.cwd()` for non-WASI targets, or tries to
fetch the preopen list from the WASI runtime and extract a
preopen for '.' path.
The summary of changes introduced by this commit:
* implement `Dir.makeDir` and `Dir.openDir` targeting WASI
* implement `Dir.deleteFile` and `Dir.deleteDir` targeting WASI
* fix `os.close` and map errors in `unlinkat`
* move WASI-specific `mkdirat` and `unlinkat` from `std.fs.wasi`
to `std.os` module
* implement `lseek_{SET, CUR, END}` targeting WASI
* implement `futimens` targeting WASI
* implement `ftruncate` targeting WASI
* implement `readv`, `writev`, `pread{v}`, `pwrite{v}` targeting WASI
* make sure ANSI escape codes are _not_ used in stderr or stdout
in WASI, as WASI always sanitizes stderr, and sanitizes stdout if
fd is a TTY
* fix specifying WASI rights when opening/creating files/dirs
* tweak `AtomicFile` to be WASI-compatible
* implement `os.renameatWasi` for WASI-compliant `os.renameat` function
* implement sleep() targeting WASI
* fix `process.getEnvMap` targeting WASI
2020-05-05 17:23:49 +02:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
2022-10-07 21:24:44 +03:30
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2019-11-30 16:13:33 +01:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
2022-10-07 21:24:44 +03:30
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2019-11-30 16:13:33 +01:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-11-30 16:13:33 +01:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-06-06 11:12:41 +02:00
|
|
|
|
2022-10-07 21:24:44 +03:30
|
|
|
|
2021-06-06 11:12:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-30 16:13:33 +01:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-09-07 10:44:21 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-02-20 18:31:17 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-02-20 18:31:17 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
|
|
|
|
|
2020-04-03 18:36:13 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-02-20 18:31:17 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-08-31 10:36:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 16:33:07 -07:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-08-31 10:36:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 16:33:07 -07:00
|
|
|
|
2020-04-21 18:42:21 +02:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-04-21 18:42:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-15 18:59:59 -07:00
|
|
|
|
2020-04-21 18:42:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-08-31 10:36:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 16:33:07 -07:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-08-31 10:36:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 16:33:07 -07:00
|
|
|
|
2020-04-03 18:36:13 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-04-03 18:36:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-15 18:59:59 -07:00
|
|
|
|
2020-04-03 18:36:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-04-20 22:08:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-04-20 22:08:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-15 19:25:26 -07:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-12-15 19:25:26 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-20 22:08:19 +02:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-04-02 19:48:48 -04:00
|
|
|
|
2022-10-11 11:11:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-02 19:48:48 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-17 00:06:19 -05:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-04-03 11:02:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-17 00:06:19 -05:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-03-03 09:44:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-17 00:06:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2022-05-15 17:56:51 +02:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2021-12-02 00:11:29 +01:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2021-12-02 00:11:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-15 17:56:51 +02:00
|
|
|
|
2021-12-02 00:11:29 +01:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2022-10-07 21:24:44 +03:30
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2019-09-21 23:00:36 +02:00
|
|
|
|
|
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-27 18:20:17 +02:00
|
|
|
|
|
|
|
|
|
2019-09-21 23:00:36 +02:00
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2022-10-07 21:24:44 +03:30
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-11 19:13:59 +02:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2019-10-11 19:13:59 +02:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2017-08-30 14:55:26 -04:00
|
|
|
|
|
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-31 04:47:55 -04:00
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-03 16:13:28 -05:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2019-02-03 16:13:28 -05:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-27 20:07:05 -04:00
|
|
|
|
2019-09-03 10:08:39 -04:00
|
|
|
|
2019-05-27 20:07:05 -04:00
|
|
|
|
|
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
2019-05-27 20:07:05 -04:00
|
|
|
|
|
|
|
|
|
2019-09-03 10:08:39 -04:00
|
|
|
|
2019-05-27 20:07:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-02 10:04:54 +02:00
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2021-08-02 10:04:54 +02:00
|
|
|
|
2022-08-17 22:17:19 -07:00
|
|
|
|
2022-11-26 14:23:32 -05:00
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2023-03-07 22:40:53 -07:00
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
2023-03-07 22:40:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-10 14:32:49 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 22:40:53 -07:00
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 22:40:53 -07:00
|
|
|
|
2023-07-29 23:57:52 -07:00
|
|
|
|
2023-07-25 13:26:32 +02:00
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-10 17:05:09 -07:00
|
|
|
|
|
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 22:40:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
|
|
|
|
|
2022-05-28 11:44:53 +02:00
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2022-05-28 11:44:53 +02:00
|
|
|
|
2022-08-17 22:17:19 -07:00
|
|
|
|
2022-11-26 14:23:32 -05:00
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2023-03-07 00:40:55 -07:00
|
|
|
|
2023-03-07 20:23:11 -07:00
|
|
|
|
2023-03-07 00:40:55 -07:00
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 20:23:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
2023-03-07 17:00:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 00:40:55 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-28 11:44:53 +02:00
|
|
|
|
|
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
2018-09-17 17:08:56 -04:00
|
|
|
|
2023-03-14 14:44:38 -07:00
|
|
|
|
2018-09-17 17:08:56 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
2023-03-14 14:44:38 -07:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-14 14:44:38 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-14 14:44:38 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-19 10:49:34 +02:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-07 00:40:55 -07:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
2023-06-24 22:50:28 -04:00
|
|
|
|
2023-03-06 22:44:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-17 17:08:56 -04:00
|
|
|
|
2023-03-08 00:16:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-17 17:08:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
2019-02-03 16:13:28 -05:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2019-02-03 16:13:28 -05:00
|
|
|
|
2017-04-19 14:00:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
2019-02-03 16:13:28 -05:00
|
|
|
|
2017-04-19 16:59:20 -04:00
|
|
|
|
2021-09-24 13:39:20 -04:00
|
|
|
|
2017-04-19 16:59:20 -04:00
|
|
|
|
|
|
|
|
|
2019-02-03 16:13:28 -05:00
|
|
|
|
2017-04-19 16:59:20 -04:00
|
|
|
|
2017-11-24 14:56:05 -05:00
|
|
|
|
2017-04-19 16:59:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-08 13:46:05 -07:00
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2020-12-08 13:46:05 -07:00
|
|
|
|
|
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2023-03-06 19:10:37 -07:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-08 13:46:05 -07:00
|
|
|
|
2020-01-02 22:45:48 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 00:27:46 -07:00
|
|
|
|
2019-05-14 21:21:59 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2019-05-14 21:21:59 -04:00
|
|
|
|
2023-03-19 19:35:58 -04:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2023-03-06 00:27:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-09 17:57:32 -04:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2019-09-09 17:57:32 -04:00
|
|
|
|
2023-04-15 19:57:24 -04:00
|
|
|
|
|
|
|
|
|
2023-03-19 19:35:58 -04:00
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2019-09-22 14:40:54 -04:00
|
|
|
|
|
|
|
|
|
2023-04-14 13:06:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 20:28:36 -07:00
|
|
|
|
2023-03-06 00:27:46 -07:00
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2023-03-06 00:27:46 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2023-03-06 00:27:46 -07:00
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
|
|
|
|
|
2023-03-06 00:27:46 -07:00
|
|
|
|
2023-04-10 18:09:39 -07:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-29 23:57:52 -07:00
|
|
|
|
2023-01-30 21:39:43 -07:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-19 10:49:34 +02:00
|
|
|
|
2019-09-21 23:55:56 -04:00
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
2023-03-12 00:39:21 -07:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
2023-03-12 00:39:21 -07:00
|
|
|
|
2023-04-13 16:44:45 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
2023-03-12 00:39:21 -07:00
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-29 23:57:52 -07:00
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
2023-07-19 10:49:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-20 10:30:27 -04:00
|
|
|
|
|
|
|
|
|
2023-04-14 13:07:34 -07:00
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
|
|
|
|
|
2023-07-30 03:18:10 -04:00
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
|
|
|
|
|
2023-04-14 13:07:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
|
|
|
|
|
2023-07-19 10:49:34 +02:00
|
|
|
|
2023-04-20 14:42:11 -04:00
|
|
|
|
2023-04-24 11:58:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-20 14:42:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-19 02:38:41 -04:00
|
|
|
|
2023-04-20 14:42:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-19 02:38:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-13 17:22:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-20 02:26:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-31 00:19:51 -07:00
|
|
|
|
2022-10-21 23:01:49 +03:00
|
|
|
|
|
|
|
|
|
2023-07-28 12:48:01 -04:00
|
|
|
|
2023-01-11 17:25:02 +02:00
|
|
|
|
2023-03-06 22:57:53 -07:00
|
|
|
|
|
|
|
|
|
2022-10-21 23:01:49 +03:00
|
|
|
|
2023-03-06 22:57:53 -07:00
|
|
|
|
|
|
|
|
|
2022-10-21 23:01:49 +03:00
|
|
|
|
2023-03-15 10:47:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-10 18:09:39 -07:00
|
|
|
|
|
|
|
|
|
2023-03-06 22:57:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-10 18:09:39 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:57:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-19 10:49:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-13 23:41:41 -07:00
|
|
|
|
2023-07-25 21:09:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-03-06 22:57:53 -07:00
|
|
|
|
2023-04-10 17:05:09 -07:00
|
|
|
|
2023-03-12 00:39:21 -07:00
|
|
|
|
|
|
|
|
|
2023-01-19 00:37:20 -05:00
|
|
|
|
2023-03-06 22:57:53 -07:00
|
|
|
|
2022-10-21 23:01:49 +03:00
|
|
|
|
|
|
|
|
|
re-enable test-cases and get them all passing
Instead of using `zig test` to build a special version of the compiler
that runs all the test-cases, the zig build system is now used as much
as possible - all with the basic steps found in the standard library.
For incremental compilation tests (the ones that look like foo.0.zig,
foo.1.zig, foo.2.zig, etc.), a special version of the compiler is
compiled into a utility executable called "check-case" which checks
exactly one sequence of incremental updates in an independent
subprocess. Previously, all incremental and non-incremental test cases
were done in the same test runner process.
The compile error checking code is now simpler, but also a bit
rudimentary, and so it additionally makes sure that the actual compile
errors do not include *extra* messages, and it makes sure that the
actual compile errors output in the same order as expected. It is also
based on the "ends-with" property of each line rather than the previous
logic, which frankly I didn't want to touch with a ten-meter pole. The
compile error test cases have been updated to pass in light of these
differences.
Previously, 'error' mode with 0 compile errors was used to shoehorn in a
different kind of test-case - one that only checks if a piece of code
compiles without errors. Now there is a 'compile' mode of test-cases,
and 'error' must be only used when there are greater than 0 errors.
link test cases are updated to omit the target object format argument
when calling checkObject since that is no longer needed.
The test/stage2 directory is removed; the 2 files within are moved to be
directly in the test/ directory.
2023-03-09 18:22:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-05-03 11:49:55 +03:00
|
|
|
|
2023-07-31 09:43:29 -04:00
|
|
|
|
re-enable test-cases and get them all passing
Instead of using `zig test` to build a special version of the compiler
that runs all the test-cases, the zig build system is now used as much
as possible - all with the basic steps found in the standard library.
For incremental compilation tests (the ones that look like foo.0.zig,
foo.1.zig, foo.2.zig, etc.), a special version of the compiler is
compiled into a utility executable called "check-case" which checks
exactly one sequence of incremental updates in an independent
subprocess. Previously, all incremental and non-incremental test cases
were done in the same test runner process.
The compile error checking code is now simpler, but also a bit
rudimentary, and so it additionally makes sure that the actual compile
errors do not include *extra* messages, and it makes sure that the
actual compile errors output in the same order as expected. It is also
based on the "ends-with" property of each line rather than the previous
logic, which frankly I didn't want to touch with a ten-meter pole. The
compile error test cases have been updated to pass in light of these
differences.
Previously, 'error' mode with 0 compile errors was used to shoehorn in a
different kind of test-case - one that only checks if a piece of code
compiles without errors. Now there is a 'compile' mode of test-cases,
and 'error' must be only used when there are greater than 0 errors.
link test cases are updated to omit the target object format argument
when calling checkObject since that is no longer needed.
The test/stage2 directory is removed; the 2 files within are moved to be
directly in the test/ directory.
2023-03-09 18:22:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-31 09:43:29 -04:00
|
|
|
|
re-enable test-cases and get them all passing
Instead of using `zig test` to build a special version of the compiler
that runs all the test-cases, the zig build system is now used as much
as possible - all with the basic steps found in the standard library.
For incremental compilation tests (the ones that look like foo.0.zig,
foo.1.zig, foo.2.zig, etc.), a special version of the compiler is
compiled into a utility executable called "check-case" which checks
exactly one sequence of incremental updates in an independent
subprocess. Previously, all incremental and non-incremental test cases
were done in the same test runner process.
The compile error checking code is now simpler, but also a bit
rudimentary, and so it additionally makes sure that the actual compile
errors do not include *extra* messages, and it makes sure that the
actual compile errors output in the same order as expected. It is also
based on the "ends-with" property of each line rather than the previous
logic, which frankly I didn't want to touch with a ten-meter pole. The
compile error test cases have been updated to pass in light of these
differences.
Previously, 'error' mode with 0 compile errors was used to shoehorn in a
different kind of test-case - one that only checks if a piece of code
compiles without errors. Now there is a 'compile' mode of test-cases,
and 'error' must be only used when there are greater than 0 errors.
link test cases are updated to omit the target object format argument
when calling checkObject since that is no longer needed.
The test/stage2 directory is removed; the 2 files within are moved to be
directly in the test/ directory.
2023-03-09 18:22:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|