-
Notifications
You must be signed in to change notification settings - Fork 1
/
trial.mk
43 lines (39 loc) · 1.31 KB
/
trial.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# add a trial target
# include from flumotion/test/Makefile.am
# set TRIAL_ENV
# FIXME: doing "trial flumotion.test" from this directory causes the
# base package flumotion tests to run always, instead of
# the current package
TRIAL_FLAGS = --reporter=timing
trial: rm-trial-test-log
@if test -z "$(TRIAL_ENV)"; then \
echo "Please set the TRIAL_ENV Makefile variable."; \
exit 1; fi
$(TRIAL_ENV) $(top_srcdir)/common/flumotion-trial -r default \
$(TRIAL_FLAGS) flumotion.test 2>&1 \
| tee trial.test.log; \
if ! test $${PIPESTATUS[0]} -eq 0; \
then \
make rm-trial-test-log; \
exit 1; \
fi; \
$(TRIAL_ENV) $(top_srcdir)/common/flumotion-trial -r gtk2 \
$(TRIAL_FLAGS) flumotion.test 2>&1 \
| tee -a trial.test.log; \
if test $${PIPESTATUS[0]} -eq 0; \
then \
rm -fr $(top_builddir)/flumotion/test/_trial_temp; \
if test -e trial.test.log; then \
if grep "Could not import" trial.test.log > /dev/null; \
then \
exit 1; \
fi; \
fi; \
make rm-trial-test-log; \
else \
make rm-trial-test-log; \
exit 1; \
fi
@rm -fr $(top_builddir)/flumotion/test/*.pyc
rm-trial-test-log:
@if test -e trial.test.log; then rm trial.test.log; fi