Ignore:
Timestamp:
Oct 20, 2014, 12:16:28 PM (10 years ago)
Author:
cfuguet
Message:

reconf: including test recipe in unit tests makefiles

  • The execution and result verification are performed by using the 'make test' command
Location:
branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/test
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/test/common.mk

    r850 r852  
    1010DOXYGEN    := doxygen
    1111SED        := sed
     12SHELL      := bash
    1213
    1314CFLAGS     := -Wall                        \
  • branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/test/simple_wdt_test/Makefile

    r850 r852  
    3030
    3131# =============================================================================
    32 # Documentation generation
    33 # =============================================================================
    34 
    35 DOCCONF := doxygen.config
    36 DOCDIR  := doc
    37 
    38 # =============================================================================
    3932# Object files
    4033# =============================================================================
     
    4841
    4942TARGET := $(BUILD_DIR)/soft.elf
     43
     44# =============================================================================
     45# Test variables
     46# =============================================================================
     47PLATFORM  := ../../../../../platforms/tsar_generic_iob
     48SIMULATOR := $(PLATFORM)/simul.x
     49
     50# batch mode => no xterm or frame buffer windows
     51SOCLIB_TTY := FILES
     52SOCLIB_FB  := HEADLESS
     53SOCLIB_GDB ?=
     54export SOCLIB_TTY SOCLIB_FB SOCLIB_GDB
    5055
    5156# =============================================================================
     
    6267$(OBJS): $(CONF) | $(BUILD_DIR)
    6368
    64 doc: $(DOCCONF)
    65         doxygen $<
    66 
    6769$(LIB_TARGET): $(LIB_OBJS)
    6870        $(AR) rcs $@ $(LIB_OBJS)
     
    7274        $(DU) -D $@ > $@.txt
    7375
     76test: $(SIMULATOR) $(TARGET)
     77        -$< -SOFT $(TARGET) -DISK /dev/null 2> /dev/null >> $(CONFDIR)/log
     78        -soclib-cleanup-terms &> /dev/null
     79        mv term0 $(CONFDIR)/term
     80        grep -q "success" $(CONFDIR)/term
     81        if [ $$? == 0 ]; then \
     82                echo $$(basename $(PWD)) ": Success"; \
     83        else \
     84                echo $$(basename $(PWD)) ": Failure"; \
     85        fi;
     86
     87$(SIMULATOR) $(CONF): $(PLATFORM)/scripts/onerun.py
     88        ./$< -o $(CONFDIR) -p $(PLATFORM) -x1 -y1 -n1 -c
     89
    7490$(BUILD_DIR):
    7591        $(MKDIR) $@
     
    7894        $(RM) $(BUILD_DIR)
    7995
    80 clean-doc:
    81         $(RM) $(DOCDIR)
    82 
    8396clean-log:
    8497        $(RM) $(CONFDIR)
    8598
    86 distclean: clean clean-doc clean-log
     99distclean: clean clean-log
  • branches/reconfiguration/modules/vci_cc_vcache_wrapper/caba/test/simple_wdt_test/main.c

    r850 r852  
    2727void main(void)
    2828{
    29     cpu_set_wdt_max(500);
     29    cpu_set_wdt_max(100);
    3030
    3131    /*
Note: See TracChangeset for help on using the changeset viewer.