macaw/macaw-ppc/tests/Main.hs
Tristan Ravitch 9d750c944a Add a new type of test to PowerPC
It runs code discovery over a large-ish binary to test coverage.  We currently
fail due to unsupported instructions (expected).  This test will guide
priorities on implementing new semantics.
2017-11-09 17:18:20 -08:00

17 lines
449 B
Haskell

module Main ( main ) where
import System.FilePath.Glob ( namesMatching )
import qualified Test.Tasty as T
import qualified PPC64Tests as PPC64
import qualified PPC64InstructionCoverage as PPC64
main :: IO ()
main = do
testFiles <- namesMatching "tests/ppc/*.s.expected"
bins <- namesMatching "tests/ppc/bin/*"
T.defaultMain $ T.testGroup "PPCMacawTests" [
PPC64.ppcAsmTests testFiles,
PPC64.ppc64InstructionCoverageTests bins
]