-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.backend-tests
30 lines (22 loc) · 1.12 KB
/
Makefile.backend-tests
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
SHELL=bash
# R MACROS
R_SCRIPT = Rscript
## Using 'unbuffer' below, will prevent 'tee' from dropping colors
## when splitting the output.
## Ubuntu: sudo apt-get install expect
UNBUFFER=unbuffer
UNBUFFER=
backend_results/%.out:
mkdir -p backend_results
test_plan=$*; \
$(UNBUFFER) $(R_SCRIPT) -e "future.tests::check" --args --test-plan=$${test_plan/,/::} | tee backend_results/$*.out
backend_results/all: backend_results/future,sequential.out backend_results/future,multicore.out backend_results/future,multisession.out backend_results/future,cluster.out backend_results/future.callr,callr.out backend_results/future.batchtools,batchtools_local.out backend_results/future.mirai,mirai_multisession.out
backend_results/summary:
cd backend_results; \
grep -E "(Duration|Results)" *.out | sed -E 's/.out://' | sed -E 's/(Duration: |.*Results: )/\t/' | sed 'N;s/\n/\t/' | sed 's/ | /\t/' | sed 's/\t\t/\t/' | sed 's/ ✔//g' > summary.tsv
column -t -s $$'\t' $@.tsv
test-all: backend_results/all
$(MAKE) backend_results/summary
test-summary: backend_results/summary
test-clean:
rm backend_results/*.out backend_results/summary.tsv