Commit Graph

78 Commits

Author SHA1 Message Date
Jeremiah Orians 286964d5f8
Properly remove blocks that aren't executed 2022-12-10 20:55:41 -05:00
Andrius Štikonas 62b53a554e Implement fixed sized integers: (u)int8_t, (u)int16_t, (u)int32_t. 2022-12-04 02:04:36 +00:00
Andrius Štikonas 7e7558768a Add support for global structs. 2022-11-05 23:30:46 +00:00
Andrius Štikonas adb4fb3781 make clean should cleanup all tests. 2022-10-26 00:38:43 +01:00
Jeremiah Orians c50dcade62
Even more segfaults 2022-05-19 19:40:19 -04:00
Jeremiah Orians d80d8a652b
Move more functionality into M2libc 2021-04-03 22:41:52 -04:00
Jeremiah Orians 46cf81af83
Replace file_print with fputs 2021-04-03 18:56:55 -04:00
Jeremiah Orians 6f8e2eb905
Removed need for fixup 2021-02-02 23:39:27 -05:00
Jeremiah Orians 204d2612d7 whitespace 2021-01-12 02:57:35 +01:00
Jeremiah Orians f5f996626a tests: --output-sync for readability 2021-01-12 02:57:35 +01:00
Jeremiah Orians d34bb92b0d tests: workaround parallel clean/test make error
Something weird happens if one tries to clean and test at the same time
with a command like:

make clean test -j2

See https://lists.gnu.org/archive/html/help-make/2021-01/msg00000.html

To be safe until further investigation, we breakup the makefile into 2
files and serialize the first where M2-Planet is built.
2021-01-12 02:57:35 +01:00
deesix 9f26dbcc68 tests: support for make -j
For any test there's a directory with a script for each architecture.

These scripts generate intermediate files in the dir during compilation,
with the same names no matter the arch. So if one tries to execute the
scripts in parallel they all fight for the files.

To allow for parallel testing, now we create a temporal dir named after
the arch to isolate the intermediate files. Scripts are patched
accordingly.

This also allows easier clean-up: now, removing the temporal dirs is
almost all that we need (and the per-test .gitignore files are replaced
with a couple of lines in test/.gitignore). A common script replaces
the per-test cleanup.sh. It gets the number of the test as an argument
and takes care of some minor special cases. The makefile is adapted to
use this new test/cleanup_test.sh script.

Those special files are created during the last stage of each test, but
only if the host arch matches the test. They're _not_ isolated here
because it's harder (due to how we do the checksum) and they cannot
collide unless emulation is used and several calls to make are made at
the same time.
2021-01-12 00:00:00 +01:00
Sanne Wouda 0e3d5b609a Add support for global char foo[12]; definitions
- only enabled in --bootstrap-mode

- allocates space for both the char array and the pointer to the start of
  the array
2021-01-10 23:01:08 +00:00
Sanne Wouda 6f2cebc4ca Add a test for supported preprocessor features 2021-01-08 21:32:03 +00:00
Sanne Wouda a18e0c1782 Add newline tokens to parse stream
- needed to determine start and end of macro directives
- the main parser doesn't need them, so strip out the newline tokens
  before parsing to avoid changing it
2021-01-05 22:23:15 +00:00
Jeremiah Orians 0615223052
Broke tests into processor specific sets and updated the M1 test 2020-12-01 22:24:36 -05:00
Jeremiah Orians 1975d88581
Fix GCC 10 compatibility issue 2020-11-15 20:28:33 -05:00
Jeremiah Orians 39915de931
harmonize integer behavior when reading strings 2020-10-17 13:50:25 -04:00
Jeremiah Orians 87672ddfdb
Release 1.6.0 2020-04-30 22:35:22 -04:00
Jeremiah Orians 09783ac089
Fixed continue behavior and added a test to verify correct behavior 2020-02-28 18:48:58 -05:00
Jeremiah Orians 6343e48600
Major relocation of tests to better structure for future additions 2020-02-28 18:27:12 -05:00
Jeremiah Orians aad1198faf
Revised tests to include dwarf stubs 2020-02-01 17:50:26 -05:00
fosslinux 510d4203ec
Add chdir family and getcwd family tests 2020-02-02 09:11:06 +11:00
deesix 7dc280a10d aarch64: tests 2020-02-01 21:23:49 +01:00
Jeremiah Orians 4b2fce69b0
Adding support for hardware native and removed unneeded lines in .gitignore 2020-01-31 16:12:34 -05:00
Jeremiah Orians 0709770730
Enabled forgotten cleanup scripts and add logic to catch ?alloc errors 2020-01-25 14:15:45 -05:00
Jeremiah Orians 4b2a048f14
Start reducing number of segfaults possible in M2-Planet 2020-01-22 18:03:28 -05:00
Jan Nieuwenhuizen 30a09a592b build: Add dist target.
* makefile (dist): Create reproducible tarball.
2019-11-17 11:41:07 +01:00
Jeremiah Orians 27cf071ee9
Release_1.3.0 2019-04-22 19:30:08 -04:00
Jeremiah Orians e55dc78597
4/24 working tests for AMD64 2019-04-19 17:43:59 -04:00
Jeremiah Orians 420f8b62b9
1/24 working tests for AMD64 Port 2019-04-17 20:19:17 -04:00
Jeremiah Orians 99f2881546
Release_1.2.0 2019-04-14 10:24:13 -04:00
Jeremiah Orians 5384977d5a
23/24 working tests for armv7l 2019-04-14 08:49:11 -04:00
Jeremiah Orians 119226d569
Fixed ARMV7l stack behavior thanks to dddddd 2019-04-13 08:31:39 -04:00
Jeremiah Orians 442601197c
17/24 working tests for armv7l 2019-03-30 09:25:52 -04:00
Jeremiah Orians c3ad31d66a
15/24 working tests for armv7l 2019-03-23 18:29:19 -04:00
Jeremiah Orians 87b1daaaa9
13/24 working tests for armv7l 2019-03-17 22:34:26 -04:00
Jeremiah Orians 95107d9fb6
10/24 working tests for armv7l 2019-03-17 10:08:56 -04:00
Jeremiah Orians fe95136b49
8/24 working tests for ARMv7l 2019-03-17 06:15:20 -04:00
Jeremiah Orians b61144efd7
6/24 working tests for ARMv7l 2019-03-16 23:27:52 -04:00
Jeremiah Orians eb034f51e8
5/24 working tests for ARMv7l 2019-03-16 20:03:56 -04:00
Jeremiah Orians f357464727
4/24 working tests for ARMv7l 2019-03-10 13:07:19 -04:00
Jeremiah Orians 740f376828
Test02 for ARMv7l 2019-03-10 11:24:13 -04:00
Jeremiah Orians 8f247d9716
Added second working test for ARMv7l 2019-03-10 09:33:45 -04:00
Jeremiah Orians d1036c60c8
First working test for ARMv7l 2019-03-09 20:22:29 -05:00
Jeremiah Orians d5d64bb254
knight-posix is now fully supported 2019-03-09 15:25:29 -05:00
Jeremiah Orians f01f805803
Upgraded to 23/24 working tests 2019-03-09 11:56:16 -05:00
Jeremiah Orians 01658364e5
Upgraded to 16/24 working tests 2019-02-28 20:52:01 -05:00
Jeremiah Orians 577f19dea9
Upgraded to 14/24 working tests 2019-02-26 18:04:49 -05:00
Jeremiah Orians d3965e811f
Incorporated 2 more working tests for knight-posix 2019-02-24 20:53:45 -05:00