mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Split test sims and fun sims into separate directories.
The test/makefile was not being committed because it was in the .gitignore file. refs #191
This commit is contained in:
parent
d884370175
commit
dd43bfa36c
2
test/.gitignore
vendored
2
test/.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
DP_rt_*.xml
|
||||
makefile
|
||||
SIM*/makefile
|
||||
S_job_execution
|
||||
S_run_summary
|
||||
send_hs
|
||||
|
67
test/makefile
Normal file
67
test/makefile
Normal file
@ -0,0 +1,67 @@
|
||||
|
||||
export TRICK_HOST_CPU := $(shell $(TRICK_HOME)/bin/trick-gte TRICK_HOST_CPU)
|
||||
|
||||
# List out sims we want to compile
|
||||
COMPILE_DIRS = \
|
||||
SIM_demo_sdefine \
|
||||
SIM_events \
|
||||
SIM_rti \
|
||||
SIM_stls \
|
||||
SIM_stls2 \
|
||||
SIM_test_dp \
|
||||
SIM_test_dr \
|
||||
SIM_test_io \
|
||||
SIM_test_ip \
|
||||
SIM_test_sched \
|
||||
SIM_test_templates \
|
||||
SIM_threads
|
||||
|
||||
SIMS_NEEDING_TEST = \
|
||||
SIM_alloc_test \
|
||||
SIM_demo_inputfile \
|
||||
SIM_stls3 \
|
||||
SIM_test_abstract \
|
||||
SIM_test_inherit \
|
||||
SIM_test_ip2 \
|
||||
SIM_threads_simple \
|
||||
SIM_trickcomm
|
||||
|
||||
# Sims with problems, no purpose, or maybe shouldn't be a test
|
||||
# SIM_stls3
|
||||
# SIM_leaks
|
||||
# SIM_test_varserv
|
||||
# SIM_dynamic_sim_object
|
||||
# SIM_segments
|
||||
|
||||
# This test is temporarily sitting out until fixed.
|
||||
# SIM_test_varserv
|
||||
|
||||
EXECUTABLES = $(addsuffix /T_main_${TRICK_HOST_CPU}_test.exe, $(COMPILE_DIRS) $(SIMS_NEEDING_TEST))
|
||||
UNIT_TEST_RESULTS = $(addprefix $(TRICK_HOME)/trick_test/, $(addsuffix .xml, $(COMPILE_DIRS)))
|
||||
|
||||
test: $(EXECUTABLES) $(UNIT_TEST_RESULTS) data_record_results
|
||||
|
||||
clean:
|
||||
rm -f $(UNIT_TEST_RESULTS)
|
||||
- for i in $(COMPILE_DIRS) ; do \
|
||||
if [ -f "$$i/"[Mm]"akefile" ] ; then \
|
||||
$(MAKE) -C $$i spotless ; \
|
||||
fi \
|
||||
done
|
||||
|
||||
$(EXECUTABLES):
|
||||
@ cd $(@D) ; ${TRICK_HOME}/bin/trick-CP -t
|
||||
|
||||
$(UNIT_TEST_RESULTS): $(TRICK_HOME)/trick_test/%.xml : %/T_main_${TRICK_HOST_CPU}_test.exe
|
||||
@ cd $* ; ./T_main_${TRICK_HOST_CPU}_test.exe RUN_test/unit_test.py
|
||||
|
||||
DR_RESULTS = $(TRICK_HOME)/test/SIM_test_dr/RUN_test
|
||||
data_record_results: $(UNIT_TEST_RESULTS)
|
||||
diff $(DR_RESULTS)/log_DR_bitfieldsASCII.csv $(DR_RESULTS)/Ref_Logs/log_DR_bitfieldsASCII_Master.csv
|
||||
diff $(DR_RESULTS)/log_DR_typesASCII.csv $(DR_RESULTS)/Ref_Logs/log_DR_typesASCII_Master.csv
|
||||
ifneq ($(wildcard $(DR_RESULTS)/Ref_Logs/typesB_${TRICK_HOST_CPU}.trk), )
|
||||
cmp -b $(DR_RESULTS)/log_DR_bitfieldsBINARY.trk $(DR_RESULTS)/Ref_Logs/bitfB_${TRICK_HOST_CPU}.trk
|
||||
cmp -b $(DR_RESULTS)/log_DR_typesBINARY.trk $(DR_RESULTS)/Ref_Logs/typesB_${TRICK_HOST_CPU}.trk
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user