'Ensure includes and RPATHs for all deps are added.'

def test_all_deps(self):

    os.environ['SPACK_DEPENDENCIES'] = ':'.join([self.dep1, self.dep2, self.dep3, self.dep4])
    os.environ['SPACK_RPATH_DEPS'] = os.environ['SPACK_DEPENDENCIES']
    os.environ['SPACK_LINK_DEPS'] = os.environ['SPACK_DEPENDENCIES']
    self.check_cc('dump-args', test_command, (((((((((((((((((((((((((((((((((((self.realcc + '    ') + '-Wl,-rpath,') + self.prefix) + '/lib    ') + '-Wl,-rpath,') + self.prefix) + '/lib64    ') + '-I') + self.dep4) + '/include    ') + '-L') + self.dep3) + '/lib64    ') + '-Wl,-rpath,') + self.dep3) + '/lib64    ') + '-I') + self.dep3) + '/include    ') + '-L') + self.dep2) + '/lib64    ') + '-Wl,-rpath,') + self.dep2) + '/lib64    ') + '-L') + self.dep1) + '/lib    ') + '-Wl,-rpath,') + self.dep1) + '/lib    ') + '-I') + self.dep1) + '/include    ') + '    '.join(test_command)))
