-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from birth-software/integral-tests
Divide tests between standalone and integral
- Loading branch information
Showing
20 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const std = #import("std"); | ||
const assert = std.assert; | ||
const Executable = std.build.Executable; | ||
|
||
const main = fn () s32 { | ||
const argument_count = std.start.argument_count; | ||
const argument_values = std.start.argument_values; | ||
assert(ok = argument_count == 3); | ||
|
||
const executable = Executable{ | ||
.target = .{ | ||
.cpu = .x86_64, | ||
.os = .linux, | ||
.abi = .gnu, | ||
}, | ||
.main_source_path = "src/main.nat", | ||
}; | ||
|
||
const compiler_path = argument_values[2]; | ||
|
||
if (executable.compile(compiler_path)) { | ||
return 0; | ||
} else { | ||
std.print(bytes = "Executable failed to compile!\n"); | ||
return 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const main = fn () s32 { | ||
return 0; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.