VirtualBox

Changeset 2284 in kBuild


Ignore:
Timestamp:
Feb 25, 2009 3:58:14 AM (16 years ago)
Author:
bird
Message:

kash/tests: more tests.

Location:
trunk/src/kash/tests
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/tests/Makefile.kmk

    • Property svn:eol-style changed from native to LF
    r2282 r2284  
    3434
    3535KASH_TEST_BIN   = $(if $(kash_1_TARGET),$(kash_1_TARGET),$(PATH_INS)/$(TEMPLATE_BIN_INST)kash$(SUFF_EXE))
    36 KASH_TESTCASES := $(addprefix $(PATH_SUB_CURRENT)/,\
     36KASH_TEST_DIR  := $(PATH_SUB_CURRENT)
     37KASH_TESTCASES := $(addprefix $(KASH_TEST_DIR)/,\
    3738        trap-exit-1 \
    3839        trap-int-1 \
    3940        trap-term-1 \
     41        tick-1 \
     42        redirect-1 \
     43        redirect-2 \
     44        redirect-3 \
    4045        )
    4146
    4247
    43 kash_tests:
     48kash_tests::
    4449        $(ECHO) "kash tests..."
     50        @export KASH_TEST_DIR=$(KASH_TEST_DIR); \
     51        KASH_FAILURE=0; \
    4552        $(foreach test,$(KASH_TESTCASES)\
    46                 ,@$(ECHO) " * $(KASH_TEST_BIN) $(test)" $(NLTAB)\
    47                 @if $(KASH_TEST_BIN) $(test); then echo " *   ==> SUCCESS"; else echo " *   ==> FAILURE!"; exit 1; fi $(NLTAB)\
    48                 )
     53                ,echo " * $(KASH_TEST_BIN) $(test)"; \
     54                if ! $(KASH_TEST_BIN) $(test); then \
     55                        echo " => FAILURE!"; \
     56                        KASH_FAILURE=`$(EXPR_EXT) $${KASH_FAILURE} + 1`; \
     57                fi; \
     58                ) \
     59        if test $$KASH_FAILURE -eq 0; then \
     60                echo 'kash tests: All tests succeeded.'; \
     61        else \
     62                echo "kash tests: $$KASH_FAILURE kash test failed"'!!'; \
     63                exit 1; \
     64        fi
    4965
    5066
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette