@@ -602,13 +602,15 @@ EXTRA_DIST += \
602602 tools/timeline/mactime.base \
603603 tools/timeline/.perltidyrc
604604
605- tools/timeline/mactime : tools/timeline/mactime.base Makefile
605+ tools/timeline/mactime : $(srcdir ) /tools/timeline/mactime.base Makefile
606+ @mkdir -p $(dir $@ )
606607 @echo " #!$( PERL) -w" > $@
607608 @echo " my \$ $VER =\" $( VERSION) \" ;" >> $@
608609 @cat $(srcdir ) /tools/timeline/mactime.base >> $@
609610 @chmod +x $@
610611
611- tools/sorter/sorter : tools/sorter/sorter.base Makefile
612+ tools/sorter/sorter : $(srcdir ) /tools/sorter/sorter.base Makefile
613+ @mkdir -p $(dir $@ )
612614 @echo " #!$( PERL) -w" > $@
613615 @echo " my \$ $BIN_DIR =\" $( bindir) \" ;" >> $@
614616 @echo " my \$ $DATA_DIR =\" $( datadir) \" ;" >> $@
@@ -622,7 +624,8 @@ tools/sorter/sorter: tools/sorter/sorter.base Makefile
622624
623625EXTRA_DIST += test/legacy/runtests.sh
624626
625- check_SCRIPTS = \
627+ # # Check system
628+ check_script_files = \
626629 test/check_static.sh \
627630 test/test_libraries.sh \
628631 test/test_static_tools.sh \
@@ -635,6 +638,9 @@ check_SCRIPTS = \
635638 test/tools/vstools/test_mmls.sh \
636639 test/tools/vstools/test_mmls_E01.sh
637640
641+ check_SCRIPTS = $(check_script_files )
642+ EXTRA_DIST += $(check_script_files )
643+
638644TESTS = \
639645 test/runner \
640646 test/test_libraries.sh \
@@ -688,20 +694,33 @@ test_runner_SOURCES = \
688694 test/tsk/img/test_vmdk.cpp \
689695 test/tsk/util/test_crypto.cpp \
690696 test/tsk/hashdb/test_binsrch_index.cpp \
691- test/runner.cpp
697+ test/runner.cpp \
698+ vendors/catch.hpp
692699
693700EXTRA_test_runner_DEPENDENCIES = test/get_images/test_images.txt
694701
695- test_fiwalk_fiwalk_test_CPPFLAGS = $(AM_CPPFLAGS ) -Ivendors $(CATCH2_CPPFLAGS )
702+ test_fiwalk_fiwalk_test_CPPFLAGS = $(AM_CPPFLAGS ) -I $( srcdir ) /vendors $(CATCH2_CPPFLAGS )
696703test_fiwalk_fiwalk_test_LDADD = $(TSK_LIBS )
697704test_fiwalk_fiwalk_test_SOURCES = \
698705 test/fiwalk/fiwalk_test.cpp \
699706 $(tools_fiwalk_src_libfiwalk_la_SOURCES )
700707
701708EXTRA_test_fiwalk_fiwalk_test_DEPENDENCIES = test/get_images/test_images.txt
702709
703- test/get_images/test_images.txt : test/get_images/test_images.yaml test/get_images/get_test_images.bash test/get_images/get_test_images.py
704- test/get_images/get_test_images.bash
710+ # System for getting test images
711+ # This will be replaced with a sub repo
712+
713+ get_images_inputs = \
714+ test/get_images/get_test_images.bash \
715+ test/get_images/get_test_images.py \
716+ test/get_images/test_images.yaml
717+
718+ test/get_images/test_images.txt : $(get_images_inputs )
719+ bash $(srcdir ) /test/get_images/get_test_images.bash
720+
721+ EXTRA_DIST += $(get_images_inputs )
722+
723+ # #
705724
706725CLEANFILES += test/get_images/test_images.txt
707726
0 commit comments