judge: pass envirent vars to checker

This commit is contained in:
undefined committed 2022-02-08 19:10:18 +08:00
1 parent 9158550139
commit abec5fd3ec
11 files changed
+54 -47

No files matched your search

+21
View File
@@ -1,12 +1,33 @@
import { CopyInFile } from './sandbox/interface';
export interface Execute {
execute: string,
clean: Function,
copyIn: Record<string, CopyInFile>,
time?: number,
}
export interface CompileErrorInfo {
stdout?: string,
stderr?: string,
status?: number
}
export interface CheckConfig {
checker_type: string;
input: CopyInFile;
output: CopyInFile;
user_stdout: CopyInFile;
user_stderr: CopyInFile;
copyIn: Record<string, CopyInFile>;
score: number;
detail: boolean;
env?: Record<string, string>;
}
export interface CheckResult {
status: number,
score: number,
message: string,
code?: number,
}