Changeset 6b9daf1


Ignore:
Timestamp:
Aug 16, 2018, 5:14:55 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
b215e92b
Parents:
afc2427
Message:

Add library path to executable command for tests

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    rafc2427 r6b9daf1  
    112112        global install
    113113        global timeout
     114        global ldpath
    114115
    115116        dry_run    = options.dry_run
     
    120121        arch       = Architecture(options.arch)
    121122        timeout    = Timeouts(options.timeout, options.global_timeout)
     123        ldpath     = "LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:%slibcfa/%s-%s/src/.libs\"" % (BUILDDIR, arch, "debug" if options.debug else "nodebug")
    122124
    123125
  • tests/test.py

    rafc2427 r6b9daf1  
    162162                if settings.dry_run or fileIsExecutable(exe_file) :
    163163                        # run test
    164                         retcode, _ = sh("timeout %d %s > %s 2>&1" % (settings.timeout.single, exe_file, out_file), input = in_file)
     164                        retcode, _ = sh("%s timeout %d %s > %s 2>&1" % (settings.ldpath, settings.timeout.single, exe_file, out_file), input = in_file)
    165165                else :
    166166                        # simply cat the result into the output
Note: See TracChangeset for help on using the changeset viewer.