File tree Expand file tree Collapse file tree 6 files changed +942
-9
lines changed Expand file tree Collapse file tree 6 files changed +942
-9
lines changed Original file line number Diff line number Diff line change
1
+ module github.com/markhuang1212/code-grader
2
+
3
+ go 1.16
4
+
5
+ require (
6
+ github.com/containerd/containerd v1.5.2 // indirect
7
+ github.com/docker/docker v20.10.7+incompatible // indirect
8
+ github.com/docker/go-connections v0.4.0 // indirect
9
+ github.com/sirupsen/logrus v1.8.1 // indirect
10
+ google.golang.org/grpc v1.38.0 // indirect
11
+ )
Load Diff Large diffs are not rendered by default.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
package main
7
7
8
8
import (
9
+ "encoding/json"
10
+ "io"
9
11
"os"
12
+ "os/exec"
13
+ "path/filepath"
14
+
15
+ "github.com/markhuang1212/code-grader/types"
10
16
)
11
17
12
18
var testCaseDir string
13
19
14
20
func main () {
15
21
testCaseDir = os .Getenv ("TEST_CASE_DIR" )
16
22
23
+ testCaseJson , err := os .ReadFile (filepath .Join (testCaseDir , "testcase.json" ))
24
+ if err != nil {
25
+ panic (err )
26
+ }
27
+ var testCaseOptions types.TestCaseOptions
28
+ json .Unmarshal (testCaseJson , & testCaseOptions )
29
+
30
+ // compileCmd := exec.Command("g++", testCaseOptions.CompilerOptions.Flags...)
31
+
17
32
}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments