Skip to content
Snippets Groups Projects
Makefile 1.12 KiB
Newer Older
Pascal Raymond's avatar
Pascal Raymond committed

test: remote-runtest lus2lic.diff lus2lic.time

# to perform the test on the local machine rather than on triglav
ltest: runtest lus2lic.diff lus2lic.time
Pascal Raymond's avatar
Pascal Raymond committed

testdir=$(shell pwd)

# XXX remote test should be done using --target_board, but i've failed to make it working ...
remote-runtest: 
#	runtest --all --tool lus2lic --target_board=$(testdir)/board_triglav.exp  || true
	ssh triglav "cd  $(testdir) ; runtest --all --tool lus2lic"  || true
Pascal Raymond's avatar
Pascal Raymond committed

	~/bin/runtest --all --tool lus2lic  || true
Pascal Raymond's avatar
Pascal Raymond committed

.PHONY:lus2lic.diff lus2lic.time
lus2lic.diff:
	diff -U 1 -I "Test Run By" -I "testcase \./lus2lic" -I "runtest completed at" \
	  lus2lic.log.ref lus2lic.log > lus2lic.diff || \
	(ls -l lus2lic.diff; exit 1)
lus2lic.time:
	grep "testcase \./lus2lic" lus2lic.log > lus2lic.time
	cat lus2lic.time >> lus2lic.sum
Pascal Raymond's avatar
Pascal Raymond committed

Pascal Raymond's avatar
Pascal Raymond committed

	ssh triglav "cd  $(testdir) ; runtest --all --tool lus2lic  --ignore progression.exp" || true
Pascal Raymond's avatar
Pascal Raymond committed

	ssh triglav "cd  $(testdir) ; runtest --all 	--tool lus2lic --ignore non-reg.exp" || true
Pascal Raymond's avatar
Pascal Raymond committed

clean:
	rm -f *.ec *.lus *.lut *.cov *.gp *.rif *.out