Skip to content

Commit

Permalink
all: enable test cases of Coreutils and SQLite; updated using Clang 10.0
Browse files Browse the repository at this point in the history
Updates #132.
  • Loading branch information
mewmew committed Apr 22, 2020
1 parent 0c8dd50 commit f22b4ba
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 122 deletions.
225 changes: 111 additions & 114 deletions asm/asm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,120 +391,117 @@ func TestParseFile(t *testing.T) {
{path: "../testdata/llvm/test/DebugInfo/X86/sdag-combine.ll"},
{path: "../testdata/llvm/test/DebugInfo/X86/stack-value-dwarf2.ll"},

// TODO: update these tests. disabled until we update these to Clang 10.0.
/*
// Coreutils.
{path: "../testdata/coreutils/test/[.ll"},
{path: "../testdata/coreutils/test/b2sum.ll"},
{path: "../testdata/coreutils/test/base32.ll"},
{path: "../testdata/coreutils/test/base64.ll"},
{path: "../testdata/coreutils/test/basename.ll"},
{path: "../testdata/coreutils/test/cat.ll"},
{path: "../testdata/coreutils/test/chcon.ll"},
{path: "../testdata/coreutils/test/chgrp.ll"},
{path: "../testdata/coreutils/test/chmod.ll"},
{path: "../testdata/coreutils/test/chown.ll"},
{path: "../testdata/coreutils/test/chroot.ll"},
{path: "../testdata/coreutils/test/cksum.ll"},
{path: "../testdata/coreutils/test/comm.ll"},
{path: "../testdata/coreutils/test/cp.ll"},
{path: "../testdata/coreutils/test/csplit.ll"},
{path: "../testdata/coreutils/test/cut.ll"},
{path: "../testdata/coreutils/test/date.ll"},
{path: "../testdata/coreutils/test/dd.ll"},
{path: "../testdata/coreutils/test/df.ll"},
{path: "../testdata/coreutils/test/dir.ll"},
{path: "../testdata/coreutils/test/dircolors.ll"},
{path: "../testdata/coreutils/test/dirname.ll"},
{path: "../testdata/coreutils/test/du.ll"},
{path: "../testdata/coreutils/test/echo.ll"},
{path: "../testdata/coreutils/test/env.ll"},
{path: "../testdata/coreutils/test/expand.ll"},
{path: "../testdata/coreutils/test/expr.ll"},
{path: "../testdata/coreutils/test/factor.ll"},
{path: "../testdata/coreutils/test/false.ll"},
{path: "../testdata/coreutils/test/fmt.ll"},
{path: "../testdata/coreutils/test/fold.ll"},
{path: "../testdata/coreutils/test/getlimits.ll"},
{path: "../testdata/coreutils/test/ginstall.ll"},
{path: "../testdata/coreutils/test/groups.ll"},
{path: "../testdata/coreutils/test/head.ll"},
{path: "../testdata/coreutils/test/hostid.ll"},
{path: "../testdata/coreutils/test/id.ll"},
{path: "../testdata/coreutils/test/join.ll"},
{path: "../testdata/coreutils/test/kill.ll"},
{path: "../testdata/coreutils/test/link.ll"},
{path: "../testdata/coreutils/test/ln.ll"},
{path: "../testdata/coreutils/test/logname.ll"},
{path: "../testdata/coreutils/test/ls.ll"},
{path: "../testdata/coreutils/test/make-prime-list.ll"},
{path: "../testdata/coreutils/test/md5sum.ll"},
{path: "../testdata/coreutils/test/mkdir.ll"},
{path: "../testdata/coreutils/test/mkfifo.ll"},
{path: "../testdata/coreutils/test/mknod.ll"},
{path: "../testdata/coreutils/test/mktemp.ll"},
{path: "../testdata/coreutils/test/mv.ll"},
{path: "../testdata/coreutils/test/nice.ll"},
{path: "../testdata/coreutils/test/nl.ll"},
{path: "../testdata/coreutils/test/nohup.ll"},
{path: "../testdata/coreutils/test/nproc.ll"},
{path: "../testdata/coreutils/test/numfmt.ll"},
{path: "../testdata/coreutils/test/od.ll"},
{path: "../testdata/coreutils/test/paste.ll"},
{path: "../testdata/coreutils/test/pathchk.ll"},
{path: "../testdata/coreutils/test/pinky.ll"},
{path: "../testdata/coreutils/test/pr.ll"},
{path: "../testdata/coreutils/test/printenv.ll"},
{path: "../testdata/coreutils/test/printf.ll"},
{path: "../testdata/coreutils/test/ptx.ll"},
{path: "../testdata/coreutils/test/pwd.ll"},
{path: "../testdata/coreutils/test/readlink.ll"},
{path: "../testdata/coreutils/test/realpath.ll"},
{path: "../testdata/coreutils/test/rm.ll"},
{path: "../testdata/coreutils/test/rmdir.ll"},
{path: "../testdata/coreutils/test/runcon.ll"},
{path: "../testdata/coreutils/test/seq.ll"},
{path: "../testdata/coreutils/test/sha1sum.ll"},
{path: "../testdata/coreutils/test/sha224sum.ll"},
{path: "../testdata/coreutils/test/sha256sum.ll"},
{path: "../testdata/coreutils/test/sha384sum.ll"},
{path: "../testdata/coreutils/test/sha512sum.ll"},
{path: "../testdata/coreutils/test/shred.ll"},
{path: "../testdata/coreutils/test/shuf.ll"},
{path: "../testdata/coreutils/test/sleep.ll"},
{path: "../testdata/coreutils/test/sort.ll"},
{path: "../testdata/coreutils/test/split.ll"},
{path: "../testdata/coreutils/test/stat.ll"},
{path: "../testdata/coreutils/test/stdbuf.ll"},
{path: "../testdata/coreutils/test/stty.ll"},
{path: "../testdata/coreutils/test/sum.ll"},
{path: "../testdata/coreutils/test/sync.ll"},
{path: "../testdata/coreutils/test/tac.ll"},
{path: "../testdata/coreutils/test/tail.ll"},
{path: "../testdata/coreutils/test/tee.ll"},
{path: "../testdata/coreutils/test/test.ll"},
{path: "../testdata/coreutils/test/timeout.ll"},
{path: "../testdata/coreutils/test/touch.ll"},
{path: "../testdata/coreutils/test/tr.ll"},
{path: "../testdata/coreutils/test/true.ll"},
{path: "../testdata/coreutils/test/truncate.ll"},
{path: "../testdata/coreutils/test/tsort.ll"},
{path: "../testdata/coreutils/test/tty.ll"},
{path: "../testdata/coreutils/test/uname.ll"},
{path: "../testdata/coreutils/test/unexpand.ll"},
{path: "../testdata/coreutils/test/uniq.ll"},
{path: "../testdata/coreutils/test/unlink.ll"},
{path: "../testdata/coreutils/test/uptime.ll"},
{path: "../testdata/coreutils/test/users.ll"},
{path: "../testdata/coreutils/test/vdir.ll"},
{path: "../testdata/coreutils/test/wc.ll"},
{path: "../testdata/coreutils/test/who.ll"},
{path: "../testdata/coreutils/test/whoami.ll"},
{path: "../testdata/coreutils/test/yes.ll"},
// SQLite.
{path: "../testdata/sqlite/test/shell.ll"},
*/
// Coreutils.
{path: "../testdata/coreutils/test/[.ll"},
{path: "../testdata/coreutils/test/b2sum.ll"},
{path: "../testdata/coreutils/test/base32.ll"},
{path: "../testdata/coreutils/test/base64.ll"},
{path: "../testdata/coreutils/test/basename.ll"},
{path: "../testdata/coreutils/test/cat.ll"},
{path: "../testdata/coreutils/test/chcon.ll"},
{path: "../testdata/coreutils/test/chgrp.ll"},
{path: "../testdata/coreutils/test/chmod.ll"},
{path: "../testdata/coreutils/test/chown.ll"},
{path: "../testdata/coreutils/test/chroot.ll"},
{path: "../testdata/coreutils/test/cksum.ll"},
{path: "../testdata/coreutils/test/comm.ll"},
{path: "../testdata/coreutils/test/cp.ll"},
{path: "../testdata/coreutils/test/csplit.ll"},
{path: "../testdata/coreutils/test/cut.ll"},
{path: "../testdata/coreutils/test/date.ll"},
{path: "../testdata/coreutils/test/dd.ll"},
{path: "../testdata/coreutils/test/df.ll"},
{path: "../testdata/coreutils/test/dir.ll"},
{path: "../testdata/coreutils/test/dircolors.ll"},
{path: "../testdata/coreutils/test/dirname.ll"},
{path: "../testdata/coreutils/test/du.ll"},
{path: "../testdata/coreutils/test/echo.ll"},
{path: "../testdata/coreutils/test/env.ll"},
{path: "../testdata/coreutils/test/expand.ll"},
{path: "../testdata/coreutils/test/expr.ll"},
{path: "../testdata/coreutils/test/factor.ll"},
{path: "../testdata/coreutils/test/false.ll"},
{path: "../testdata/coreutils/test/fmt.ll"},
{path: "../testdata/coreutils/test/fold.ll"},
{path: "../testdata/coreutils/test/getlimits.ll"},
{path: "../testdata/coreutils/test/ginstall.ll"},
{path: "../testdata/coreutils/test/groups.ll"},
{path: "../testdata/coreutils/test/head.ll"},
{path: "../testdata/coreutils/test/hostid.ll"},
{path: "../testdata/coreutils/test/id.ll"},
{path: "../testdata/coreutils/test/join.ll"},
{path: "../testdata/coreutils/test/kill.ll"},
{path: "../testdata/coreutils/test/link.ll"},
{path: "../testdata/coreutils/test/ln.ll"},
{path: "../testdata/coreutils/test/logname.ll"},
{path: "../testdata/coreutils/test/ls.ll"},
{path: "../testdata/coreutils/test/make-prime-list.ll"},
{path: "../testdata/coreutils/test/md5sum.ll"},
{path: "../testdata/coreutils/test/mkdir.ll"},
{path: "../testdata/coreutils/test/mkfifo.ll"},
{path: "../testdata/coreutils/test/mknod.ll"},
{path: "../testdata/coreutils/test/mktemp.ll"},
{path: "../testdata/coreutils/test/mv.ll"},
{path: "../testdata/coreutils/test/nice.ll"},
{path: "../testdata/coreutils/test/nl.ll"},
{path: "../testdata/coreutils/test/nohup.ll"},
{path: "../testdata/coreutils/test/nproc.ll"},
{path: "../testdata/coreutils/test/numfmt.ll"},
{path: "../testdata/coreutils/test/od.ll"},
{path: "../testdata/coreutils/test/paste.ll"},
{path: "../testdata/coreutils/test/pathchk.ll"},
{path: "../testdata/coreutils/test/pinky.ll"},
{path: "../testdata/coreutils/test/pr.ll"},
{path: "../testdata/coreutils/test/printenv.ll"},
{path: "../testdata/coreutils/test/printf.ll"},
{path: "../testdata/coreutils/test/ptx.ll"},
{path: "../testdata/coreutils/test/pwd.ll"},
{path: "../testdata/coreutils/test/readlink.ll"},
{path: "../testdata/coreutils/test/realpath.ll"},
{path: "../testdata/coreutils/test/rm.ll"},
{path: "../testdata/coreutils/test/rmdir.ll"},
{path: "../testdata/coreutils/test/runcon.ll"},
{path: "../testdata/coreutils/test/seq.ll"},
{path: "../testdata/coreutils/test/sha1sum.ll"},
{path: "../testdata/coreutils/test/sha224sum.ll"},
{path: "../testdata/coreutils/test/sha256sum.ll"},
{path: "../testdata/coreutils/test/sha384sum.ll"},
{path: "../testdata/coreutils/test/sha512sum.ll"},
{path: "../testdata/coreutils/test/shred.ll"},
{path: "../testdata/coreutils/test/shuf.ll"},
{path: "../testdata/coreutils/test/sleep.ll"},
{path: "../testdata/coreutils/test/sort.ll"},
{path: "../testdata/coreutils/test/split.ll"},
{path: "../testdata/coreutils/test/stat.ll"},
{path: "../testdata/coreutils/test/stdbuf.ll"},
{path: "../testdata/coreutils/test/stty.ll"},
{path: "../testdata/coreutils/test/sum.ll"},
{path: "../testdata/coreutils/test/sync.ll"},
{path: "../testdata/coreutils/test/tac.ll"},
{path: "../testdata/coreutils/test/tail.ll"},
{path: "../testdata/coreutils/test/tee.ll"},
{path: "../testdata/coreutils/test/test.ll"},
{path: "../testdata/coreutils/test/timeout.ll"},
{path: "../testdata/coreutils/test/touch.ll"},
{path: "../testdata/coreutils/test/tr.ll"},
{path: "../testdata/coreutils/test/true.ll"},
{path: "../testdata/coreutils/test/truncate.ll"},
{path: "../testdata/coreutils/test/tsort.ll"},
{path: "../testdata/coreutils/test/tty.ll"},
{path: "../testdata/coreutils/test/uname.ll"},
{path: "../testdata/coreutils/test/unexpand.ll"},
{path: "../testdata/coreutils/test/uniq.ll"},
{path: "../testdata/coreutils/test/unlink.ll"},
{path: "../testdata/coreutils/test/uptime.ll"},
{path: "../testdata/coreutils/test/users.ll"},
{path: "../testdata/coreutils/test/vdir.ll"},
{path: "../testdata/coreutils/test/wc.ll"},
{path: "../testdata/coreutils/test/who.ll"},
{path: "../testdata/coreutils/test/whoami.ll"},
{path: "../testdata/coreutils/test/yes.ll"},

// SQLite.
{path: "../testdata/sqlite/test/shell.ll"},
}
hasTestdata := osutil.Exists("../testdata/llvm")
for _, g := range golden {
Expand Down
2 changes: 1 addition & 1 deletion ir/asm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestModule(t *testing.T) {
// LLVM IR compatibility.
{path: "../testdata/llvm/test/Bitcode/compatibility.ll"},
// Coreutils.
//{path: "../testdata/coreutils/test/cat.ll"}, // TODO: update these tests. disabled until we update these to Clang 10.0.
{path: "../testdata/coreutils/test/cat.ll"},
}
hasTestdata := osutil.Exists("../testdata/llvm")
for _, g := range golden {
Expand Down
7 changes: 2 additions & 5 deletions ir/constant/asm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ func TestModule(t *testing.T) {
{path: "../../testdata/llvm/test/Transforms/InstCombine/vec_demanded_elts.ll"},
{path: "../../testdata/llvm/test/Transforms/InstCombine/vector_insertelt_shuffle.ll"},
// Coreutils.
// TODO: update these tests. disabled until we update these to Clang 10.0.
/*
{path: "../../testdata/coreutils/test/timeout.ll"},
{path: "../../testdata/coreutils/test/vdir.ll"},
*/
{path: "../../testdata/coreutils/test/timeout.ll"},
{path: "../../testdata/coreutils/test/vdir.ll"},
}
hasTestdata := osutil.Exists("../../testdata/llvm")
for _, g := range golden {
Expand Down
2 changes: 1 addition & 1 deletion ir/metadata/asm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestModule(t *testing.T) {
// Specialized metadata nodes.
{path: "../../testdata/llvm/test/Assembler/debug-info.ll"},
// Coreutils.
//{path: "../../testdata/coreutils/test/cat.ll"}, // TODO: update these tests. disabled until we update these to Clang 10.0.
{path: "../../testdata/coreutils/test/cat.ll"},
}
hasTestdata := osutil.Exists("../../testdata/llvm")
for _, g := range golden {
Expand Down
2 changes: 1 addition & 1 deletion testdata
Submodule testdata updated 222 files

0 comments on commit f22b4ba

Please sign in to comment.