Skip to content

Commit

Permalink
Improve naming of split tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Aug 8, 2024
1 parent caae5c8 commit 189d3c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func main() {
return
}

name = strings.TrimSuffix(name, ".toml")
name = strings.Replace(name, ".", "_", -1)

contents, err := os.ReadFile(fp)
fatalIf(err)

Expand All @@ -102,7 +105,7 @@ func main() {
}

for idx, testContent := range insn.Generate(*splitF) {
asmFilename := strings.TrimSuffix(name, ".toml") + "-" + strconv.Itoa(idx)
asmFilename := name + "-" + strconv.Itoa(idx)
writeTo(*stage1OutputDirF, asmFilename+".S", testContent)
lk.Lock()
makefrag = append(makefrag, fmt.Sprintf(" %s \\\n", asmFilename))
Expand Down

0 comments on commit 189d3c4

Please sign in to comment.