test-compiled-code #48

Merged
sashakoshka merged 28 commits from test-compiled-code into main 2024-02-27 00:50:17 -07:00

28 Commits

Author SHA1 Message Date
Sasha Koshka
5e740ebf5f Compiler has bug() to wrap unexpected errors 2024-02-27 02:45:32 -05:00
Sasha Koshka
d5bb1be894 Add some interface tests to compiler 2024-02-27 02:36:35 -05:00
Sasha Koshka
0c39d0a1cb Compiler debug output makes more sense 2024-02-27 02:33:35 -05:00
Sasha Koshka
dda8cea996 Generator's "errNotFound" is more useful when it bubbles to the surface 2024-02-27 02:29:52 -05:00
Sasha Koshka
2c3bc9acce Fix analyzer.Tree.methodExists and clear raw maps
This was too urgent not to continue without
2024-02-27 02:24:03 -05:00
Sasha Koshka
60c49a1d9a Add test for printing argv
Disabled for now due to #47
2024-02-27 00:22:02 -05:00
Sasha Koshka
d92aa7c3a9 Add test case for counting cli args 2024-02-27 00:09:01 -05:00
Sasha Koshka
73f70304ed Temporarily circumvent crash in analyzer #46 2024-02-27 00:00:33 -05:00
Sasha Koshka
2b9c99fff2 Added a test case for depending on compiled units 2024-02-26 23:59:47 -05:00
Sasha Koshka
4c26410274 Added a test case for depending on compiled units 2024-02-26 23:50:14 -05:00
Sasha Koshka
cc2b1315a0 Tests can now compile dependencies first 2024-02-26 23:32:40 -05:00
Sasha Koshka
785a77b21b Fixed test case file for systeminclude 2024-02-26 14:40:03 -05:00
Sasha Koshka
cc3315280a Resolver no longer requires system units to be files (????????) 2024-02-26 14:39:44 -05:00
Sasha Koshka
ad828ee01e Added test case for grabbing a module from /usr/include/fspl 2024-02-26 14:33:31 -05:00
Sasha Koshka
179c0e00c2 Fix hello world test 2024-02-26 14:24:47 -05:00
Sasha Koshka
c1d574b60f Compiler test now uses testcommon.CompareHex 2024-02-26 14:22:51 -05:00
Sasha Koshka
6bef8aea76 Add testcommon.CompareHex 2024-02-26 14:22:33 -05:00
Sasha Koshka
818b8058e4 testcommon.LogColumns has a configurable width 2024-02-26 14:18:09 -05:00
Sasha Koshka
e5144fdf6a Split compiler_test.go into common file and test file 2024-02-26 14:04:37 -05:00
Sasha Koshka
5c8afd52af Added test case for exit code 2024-02-26 14:03:10 -05:00
Sasha Koshka
e87717ac21 Compiler test now holds output from compiler until end 2024-02-26 13:56:37 -05:00
Sasha Koshka
9459f6192b Compiler uses a default optimization level when unconfigured 2024-02-26 13:46:54 -05:00
Sasha Koshka
c65a307f4a Add the hello world test case 2024-02-26 13:46:30 -05:00
Sasha Koshka
da434f00b6 Add a test-data directory for compiler 2024-02-26 13:46:10 -05:00
Sasha Koshka
f42b76d5c1 Compiler now passes relatvive paths to fs.FS as it should 2024-02-26 12:50:49 -05:00
Sasha Koshka
33995288cc Much of the compiler now uses fs.FS instead of os 2024-02-26 11:46:59 -05:00
Sasha Koshka
a158f26120 Moved everything that should touch "os" to compiler.go 2024-02-26 11:36:16 -05:00
Sasha Koshka
515eb172a5 Moved Compiler.CompileUnit into another file
Need to be sure it is the only thing that can access OS files
2024-02-26 11:35:03 -05:00