systemc: Make the verify.py script work when run from different dirs.
authorGabe Black <gabeblack@google.com>
Thu, 21 Feb 2019 00:08:50 +0000 (16:08 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 21 Feb 2019 22:36:33 +0000 (22:36 +0000)
commit84a9094ef7fd8e322c2e532a54a37d8fae332724
treead23a31d44dd4dc4ebb7799de8ff4e97e984f6cf
parent36a5473537205da5d4b26266fb1db46006aed5e4
systemc: Make the verify.py script work when run from different dirs.

The verify.py script ran scons from the CWD, and that would fail if
there wasn't a SConstruct in that directory, ie if it wasn't from the
source of the checkout.

This change makes verify.py use scons' --directory option to run from
where the SConstruct is, or at least the SConstruct which was checked
out alongside that copy of verify.py. That location can be overridden
using the new -C or --scons-dir options.

Change-Id: I9f033d6dd30e0c2992b7f3102c573b34ea9c49e0
Reviewed-on: https://gem5-review.googlesource.com/c/16562
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/tests/verify.py