From 08885d74619328532bc0157ba9cef7f26496b146 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Tue, 28 Feb 2017 13:32:38 -0800 Subject: Use test_run_dir for more tests. (#534) * Use test_run_dir for more tests. * Use official option and DRY. Make "test_run_dir" the default for ChiselSpec. Verify output files are created in DriverSpec tests. --- src/test/scala/chiselTests/AnnotationNoDedup.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/scala/chiselTests/AnnotationNoDedup.scala') diff --git a/src/test/scala/chiselTests/AnnotationNoDedup.scala b/src/test/scala/chiselTests/AnnotationNoDedup.scala index 7c7c0583..93167f69 100644 --- a/src/test/scala/chiselTests/AnnotationNoDedup.scala +++ b/src/test/scala/chiselTests/AnnotationNoDedup.scala @@ -50,7 +50,7 @@ class UsesMuchUsedModule(addAnnos: Boolean) extends Module with NoDedupAnnotator class AnnotationNoDedup extends FreeSpec with Matchers { "Firrtl provides transform that reduces identical modules to a single instance" - { "Annotations can be added which will defeat this deduplication for specific modules instances" in { - Driver.execute(Array("-X", "low"), () => new UsesMuchUsedModule(addAnnos = true)) match { + Driver.execute(Array("-X", "low", "--target-dir", "test_run_dir"), () => new UsesMuchUsedModule(addAnnos = true)) match { case ChiselExecutionSuccess(_, _, Some(firrtlResult: FirrtlExecutionSuccess)) => val lowFirrtl = firrtlResult.emitted @@ -63,7 +63,7 @@ class AnnotationNoDedup extends FreeSpec with Matchers { } } "Turning off these nnotations dedup all the occurrences" in { - Driver.execute(Array("-X", "low"), () => new UsesMuchUsedModule(addAnnos = false)) match { + Driver.execute(Array("-X", "low", "--target-dir", "test_run_dir"), () => new UsesMuchUsedModule(addAnnos = false)) match { case ChiselExecutionSuccess(_, _, Some(firrtlResult: FirrtlExecutionSuccess)) => val lowFirrtl = firrtlResult.emitted -- cgit v1.2.3