-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add errors for missing Testfile paths
- Loading branch information
1 parent
a100a74
commit e5116cd
Showing
16 changed files
with
320 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
**/__pycache__/** | ||
venv/ | ||
build/ | ||
dist/ | ||
dragon_runner.egg-info/ | ||
scratch/ | ||
|
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
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 |
---|---|---|
|
@@ -62,4 +62,3 @@ def __len__(self) -> int: | |
|
||
def __getitem__(self, index: int) -> Step: | ||
return self.steps[index] | ||
|
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,24 @@ | ||
{ | ||
"testDir": "../packages/CMixedPackage", | ||
"testedExecutablePaths": { | ||
"gcc": "/usr/bin/gcc" | ||
}, | ||
"toolchains": { | ||
"GCC-toolchain": [ | ||
{ | ||
"stepName": "compile", | ||
"executablePath": "$EXE", | ||
"arguments": ["$INPUT", "-o", "$OUTPUT"], | ||
"output": "/tmp/test.o", | ||
"allowError": true | ||
}, | ||
{ | ||
"stepName": "run", | ||
"executablePath": "$INPUT", | ||
"arguments": [], | ||
"usesInStr": true, | ||
"allowError": true | ||
} | ||
] | ||
} | ||
} |
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 @@ | ||
{ | ||
"testDir": "../packages/CPackage", | ||
"testedExecutablePaths": { | ||
"gcc": "/usr/bin/gcc" | ||
}, | ||
"runtimes": { | ||
"gcc": "../lib/lib-this-runtime-dne.so" | ||
}, | ||
"toolchains": { | ||
"GCC-toolchain": [ | ||
{ | ||
"stepName": "compile", | ||
"executablePath": "$EXE", | ||
"arguments": ["$INPUT", "-o", "$OUTPUT"], | ||
"output": "/tmp/test.o", | ||
"allowError": true | ||
}, | ||
{ | ||
"stepName": "run", | ||
"executablePath": "$INPUT", | ||
"arguments": [], | ||
"usesInStr": true, | ||
"allowError": true | ||
} | ||
] | ||
} | ||
} |
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,15 @@ | ||
#include <stdio.h> | ||
|
||
/// This will fail since there is an extra newline emitted. | ||
/// The expected file will have 5 bytes, the generated will have 6 | ||
|
||
int main() { | ||
|
||
printf("a\nb\nc\n"); | ||
|
||
return 0; | ||
} | ||
|
||
//CHECK:a | ||
//CHECK:b | ||
//CHECK:c |
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,11 @@ | ||
// INPUT:a | ||
|
||
#include <stdio.h> | ||
|
||
int main() { | ||
char c; | ||
scanf("%c", &c); | ||
printf("%c", c); | ||
} | ||
|
||
// CHECK:a |
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,10 @@ | ||
#include <stdio.h> | ||
|
||
int main() { | ||
|
||
printf("print\n "); | ||
return 0; | ||
} | ||
|
||
// CHECK:print | ||
// CHECK: |
Oops, something went wrong.