makefile test.

This commit is contained in:
Norayr Chilingarian 2022-02-23 02:21:04 +04:00
parent b797733ce3
commit 85b5c0a00f

View file

@ -11,7 +11,7 @@ DPS = dps
VIPACK = vipack VIPACK = vipack
all: fetch_deps all: deps
#git submodule init #git submodule init
#git submodule update #git submodule update
mkdir -p $(build_dir_path) mkdir -p $(build_dir_path)
@ -41,16 +41,34 @@ all: fetch_deps
../src/vpkInstaller.Mod \ ../src/vpkInstaller.Mod \
../src/vipack.Mod -m ../src/vipack.Mod -m
fetch_deps: deps: $(mkfile_dir_path)/$(DPS)/Internet $(mkfile_dir_path)/$(DPS)/lists $(mkfile_dir_path)/$(DPS)/opts $(mkfile_dir_path)/$(DPS)/time
mkdir -p $(DPS) mkdir -p $(mkfile_dir_path)/$(DPS)
cd $(DPS) && git clone https://github.com/norayr/Internet cd $$(mkfile_dir_path)/(DPS)
cd $(DPS) && git clone https://github.com/norayr/lists ifneq "$(wildcard Internet )" ""
cd $(DPS) && git clone https://github.com/norayr/opts cd Internet && git pull && cd ..
cd $(DPS) && git clone https://github.com/norayr/time else
git clone https://github.com/norayr/Internet
endif
ifneq "$(wildcard lists )" ""
cd lists && git pull && cd ..
else
git clone https://github.com/norayr/lists
endif
ifneq "$(wildcard opts )" ""
cd opts && git pull && cd ..
else
git clone https://github.com/norayr/opts
endif
ifneq "$(wildcard time )" ""
cd time && git pull && cd ..
else
git clone https://github.com/norayr/Internet
endif
tests: tests:
mkdir -p $(BLD) mkdir -p $(mkfile_dir_path)/$(BLD)
cd $(BLD) && $(VOC) -s ../src/unix/vpkFiles.Mod ../tst/testFiles.Mod -m cd $(mkfile_dir_path)/$(BLD)
$(VOC) -s ../src/unix/vpkFiles.Mod ../tst/testFiles.Mod -m
cd $(BLD) && $(VOC) -s ../src/vpkJsonParser.Mod ../tst/testJsonParser.Mod -m cd $(BLD) && $(VOC) -s ../src/vpkJsonParser.Mod ../tst/testJsonParser.Mod -m
mkfifo /tmp/fifo mkfifo /tmp/fifo
$(BLD)/testFiles $(BLD)/testFiles