Changeset 2284 in kBuild
- Timestamp:
- Feb 25, 2009 3:58:14 AM (16 years ago)
- 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
toLF
r2282 r2284 34 34 35 35 KASH_TEST_BIN = $(if $(kash_1_TARGET),$(kash_1_TARGET),$(PATH_INS)/$(TEMPLATE_BIN_INST)kash$(SUFF_EXE)) 36 KASH_TESTCASES := $(addprefix $(PATH_SUB_CURRENT)/,\ 36 KASH_TEST_DIR := $(PATH_SUB_CURRENT) 37 KASH_TESTCASES := $(addprefix $(KASH_TEST_DIR)/,\ 37 38 trap-exit-1 \ 38 39 trap-int-1 \ 39 40 trap-term-1 \ 41 tick-1 \ 42 redirect-1 \ 43 redirect-2 \ 44 redirect-3 \ 40 45 ) 41 46 42 47 43 kash_tests: 48 kash_tests:: 44 49 $(ECHO) "kash tests..." 50 @export KASH_TEST_DIR=$(KASH_TEST_DIR); \ 51 KASH_FAILURE=0; \ 45 52 $(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 49 65 50 66 -
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.