-
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.
- Loading branch information
1 parent
829bf72
commit 438b214
Showing
12 changed files
with
188 additions
and
72 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
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
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,39 @@ | ||
{ | ||
"testDir": "/home/justin/school/415/vcalc-marking/testfiles", | ||
"testedExecutablePaths": { | ||
"solution": "/home/justin/CDOL/Solutions/VCalc24Solution/bin/vcalc" | ||
}, | ||
"runtimes": { | ||
"solution": "/home/justin/CDOL/Solutions/VCalc24Solution/bin/libvcalcrt.so" | ||
}, | ||
"solutionExecutable": "solution", | ||
"toolchains": { | ||
"vcalc-llc": [ | ||
{ | ||
"stepName": "vcalc", | ||
"executablePath": "$EXE", | ||
"arguments": ["$INPUT", "$OUTPUT"], | ||
"output": "vcalc.ll" | ||
}, | ||
{ | ||
"stepName": "llc", | ||
"executablePath": "/home/justin/install/llvm/llvm-18/bin/llc", | ||
"arguments": ["-filetype=obj", "-relocation-model=pic", "$INPUT", "-o", "$OUTPUT"], | ||
"output": "vcalc.o" | ||
}, | ||
{ | ||
"stepName": "clang", | ||
"executablePath": "/usr/bin/clang", | ||
"arguments": ["$INPUT", "-o", "$OUTPUT", "-L$RT_PATH", "-l$RT_LIB"], | ||
"output": "vcalc" | ||
}, | ||
{ | ||
"stepName": "run", | ||
"executablePath": "$INPUT", | ||
"arguments": [], | ||
"usesInStr": true, | ||
"usesRuntime": 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
15 changes: 15 additions & 0 deletions
15
tests/packages/CPackage/RegularPass/valid_tests/018_no_conflict.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,15 @@ | ||
#include <stdio.h> | ||
|
||
// INPUT:a | ||
// INPUT:a | ||
|
||
int main() { | ||
|
||
char c; | ||
scanf("%c", &c); | ||
printf("%c", c); | ||
|
||
return 0; | ||
} | ||
|
||
//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,17 @@ | ||
# | ||
# Quick script | ||
# | ||
# | ||
|
||
import os | ||
import subprocess | ||
from pathlib import Path | ||
|
||
if __name__ == "__main__": | ||
|
||
script_dir = Path(__file__).parent.absolute() | ||
for file in os.listdir(script_dir): | ||
if "test_" in file: | ||
print(file) | ||
subprocess.run(f"pytest {os.path.join(script_dir, file)}", shell=True) | ||
|
Oops, something went wrong.