Changeset 592b9fa


Ignore:
Timestamp:
Apr 27, 2017, 12:35:53 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
075d862
Parents:
278516c
Message:

Tests now only pipe errors to .err folder if run through test scripts

Location:
src/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    r278516c r592b9fa  
    2828endif
    2929
    30 
    3130# applies to both programs
    3231EXTRA_FLAGS =
    3332BUILD_FLAGS = -g -Wall -Wno-unused-function @CFA_FLAGS@ ${EXTRA_FLAGS}
    34 CFLAGS = 2> .err/${@}.log ${BUILD_FLAGS}
     33TEST_FLAGS = $(if $(test), 2> .err/${@}.log, )
     34CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
    3535CC = @CFA_BINDIR@/@CFA_NAME@
    3636
  • src/tests/Makefile.in

    r278516c r592b9fa  
    125125CFA_NAME = @CFA_NAME@
    126126CFA_PREFIX = @CFA_PREFIX@
    127 CFLAGS = 2> .err/${@}.log ${BUILD_FLAGS}
     127CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
    128128CPP = @CPP@
    129129CPPFLAGS = @CPPFLAGS@
     
    231231@BUILD_CONCURRENCY_FALSE@concurrent_test =
    232232@BUILD_CONCURRENCY_TRUE@concurrent_test = coroutine thread monitor multi-monitor sched-int sched-ext preempt
     233TEST_FLAGS = $(if $(test), 2> .err/${@}.log, )
    233234
    234235# applies to both programs
  • src/tests/test.py

    r278516c r592b9fa  
    130130
    131131        # build, skipping to next test on error
    132         make_ret, _ = sh("""%s EXTRA_FLAGS="-quiet %s" %s 2> %s 1> /dev/null""" % (make_cmd, options, test.name, out_file), dry_run)
     132        make_ret, _ = sh("""%s test=yes EXTRA_FLAGS="-quiet %s" %s 2> %s 1> /dev/null""" % (make_cmd, options, test.name, out_file), dry_run)
    133133
    134134        # if the make command succeds continue otherwise skip to diff
Note: See TracChangeset for help on using the changeset viewer.