compilationunits.sh has 3 main tasks, one for each progs.
They were run sequentially without making use of multi threading.
Also make clean now removes the temp files created by compilationunits.sh
- qcsrc/**/*\r
stage: test\r
script:\r
- - ./qcsrc/tools/compilationunits.sh\r
+ - make test\r
\r
test_sv_game:\r
stage: test\r
.PHONY: skin
skin: gfx/menu/default/skinvalues.txt
+gfx/menu/default/skinvalues.txt: qcsrc/menu/skin-customizables.inc
+ $(PERL) qcsrc/menu/skin-customizables.inc > gfx/menu/default/skinvalues.txt
+
.PHONY: clean
clean:
$(MAKE) -C qcsrc clean
-gfx/menu/default/skinvalues.txt: qcsrc/menu/skin-customizables.inc
- $(PERL) qcsrc/menu/skin-customizables.inc > gfx/menu/default/skinvalues.txt
-
.PHONY: sv
sv:
$(MAKE) -C qcsrc sv
.PHONY: pk3
pk3:
$(MAKE) -C qcsrc pk3
+
+.PHONY: test
+test:
+ $(MAKE) -C qcsrc test
$(RM) $(WORKDIR)/qccversion.*
$(RM) $(WORKDIR)/csprogs-*
$(RM) $(WORKDIR)/autoexec/csprogs-*.cfg
+ $(RM) $(WORKDIR)/*.dat
$(RM) csprogs-*.pk3
.PHONY: qc
+COMPTESTS = test-server test-client test-menu
+.PHONY: test $(COMPTESTS)
+test: $(COMPTESTS)
+$(COMPTESTS):
+ tools/compilationunits.sh $@
+
%-$(VER).pk3: $(PROGS_OUT)/%.dat
MODE=${prog}
includes="-include lib/_all.inc"
[ -f ${prog}/_all.qh ] && includes="${includes} -include ${prog}/_all.qh"
- qpp ${file} test.dat \
+ qpp ${file} test-${prog}.dat \
${includes} \
-I. ${QCCIDENT} ${QCCDEFS} > ${WORKDIR}/${prog}.qc
- qcc ${QCCFLAGS} -o ../${WORKDIR}/test.dat ../${WORKDIR}/${prog}.qc >/dev/null
+ qcc ${QCCFLAGS} -o ../${WORKDIR}/test-${prog}.dat ../${WORKDIR}/${prog}.qc >/dev/null
}
function check() {
check menu
else
for var in ${@}; do
+ var=${var#test-}
check ${var}
done
fi