Newer
Older
test: ltop clean reftest lus2lic.time
Erwan Jahier
committed
TEST_MACHINE=grivola
# This fixes sporadic memory errors I get when running tests
Erwan Jahier
committed
OCAMLRUNPARAM=s=1M,i=32M,o=150
Erwan Jahier
committed
# ltop is necessary because it is used for the non-reg test and it depends on some src here...
# When I use rdbg -lurette, I can throw that ltop dep away
ltop:
cd .. ; make ltop
cp -f extern_files/* .
testdir=$(shell pwd)
remote-runtest:
# runtest --all --tool lus2lic --target_board=$(testdir)/board_$(TEST_MACHINE).exp || true
ssh $(TEST_MACHINE) "cd $(testdir) ; export OCAMLRUNPARAM=o=200 ; runtest --all --tool lus2lic" || true
.PHONY:lus2lic.diff lus2lic.time
lus2lic.diff:
Erwan Jahier
committed
cat lus2lic.log | grep -v "Process " | grep -v "Killing process " | \
grep -v "simec_trap " | grep -v " Version " > lus2lic2.log
Erwan Jahier
committed
mv lus2lic2.log lus2lic.log
diff -U 1 -I "Test Run By" -I "testcase \./lus2lic" -I "runtest completed at" \
Erwan Jahier
committed
-I "This is Lurette Version " \
lus2lic.log.ref lus2lic.log > lus2lic.diff || \
(cat lus2lic.diff; echo "make utest if it is fine"; exit 1)
time:lus2lic.time
lus2lic.time:
grep "testcase \./lus2lic" lus2lic*.log > lus2lic.time
echo "* Ref time: " >> lus2lic.time
cat lus2lic.ref_time >> lus2lic.time || true
echo "* Quick time (-j 4):" >> lus2lic.time
cat lus2lic.quick_time >> lus2lic.time || true
cat lus2lic.time >> lus2lic.sum
Erwan Jahier
committed
cat lus2lic.time
.PHONY:lus2lic.time
utest:
cp lus2lic.log lus2lic.log.ref
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
LOG=lus2lic0.log lus2lic1.log lus2lic2.log lus2lic3.log lus2lic4.log
# reftest isslower than qtest, but less sensible to the load of the machine (wrt time measurements)
reftest:
rm -f $(LOG)
make tmpdirs
time -o lus2lic.ref_time make $(LOG)
cat lus2lic.time
qtest:
rm -f $(LOG)
make tmpdirs
time -o lus2lic.quick_time make -j 4 $(LOG)
cat lus2lic.quick_time
tmpdirs:
[ -d tmp1 ] || mkdir tmp1
[ -d tmp2 ] || mkdir tmp2
rm -rf tmp1/*
rm -rf tmp2/*
cp -f --preserve=links $(testdir)/* tmp1/ || true
cp -f --preserve=links $(testdir)/* tmp2/ || true
lus2lic0.log:
ssh $(TEST_MACHINE) "cd $(testdir); runtest --tool lus2lic0 lus2lic.tests/test0.exp" || true
lus2lic1.log:
ssh $(TEST_MACHINE) "cd $(testdir); runtest --tool lus2lic1 lus2lic.tests/test1.exp" || true
lus2lic2.log:
ssh $(TEST_MACHINE) "cd $(testdir); runtest --tool lus2lic2 lus2lic.tests/test2.exp" || true
lus2lic3.log:
ssh $(TEST_MACHINE) "cd $(testdir); runtest --tool lus2lic3 lus2lic.tests/test3.exp" || true
lus2lic4.log:
ssh $(TEST_MACHINE) "cd $(testdir); runtest --tool lus2lic4 lus2lic.tests/test4.exp" || true
progression:
ssh $(TEST_MACHINE) "cd $(testdir); runtest --tool lus2lic progression.exp" || true
clean: lclean tmpdirs
lclean:
rm -f *.ec *.lus *.lut *.cov *.gp *.rif *.out *.cov *.c *.h *.log *.sum *time