-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
92 lines (82 loc) · 3.16 KB
/
Makefile
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
44
45
46
47
48
49
50
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
#
# Copyright (C) 2024, Northwestern University and Argonne National Laboratory
# See COPYRIGHT notice in top-level directory.
#
check_PROGRAMS = tst_atts.py \
tst_copy_attr.py \
tst_default_format.py \
tst_dims.py \
tst_file_fill.py \
tst_file_inq.py \
tst_file_mode.py \
tst_rename.py \
tst_var_bput_var1.py \
tst_var_bput_vara.py \
tst_var_bput_varm.py \
tst_var_bput_varn.py \
tst_var_bput_var.py \
tst_var_bput_vars.py \
tst_var_def_fill.py \
tst_var_get_var1.py \
tst_var_get_vara.py \
tst_var_get_varm.py \
tst_var_get_varn.py \
tst_var_get_var.py \
tst_var_get_vars.py \
tst_var_iget_var1.py \
tst_var_iget_vara.py \
tst_var_iget_varm.py \
tst_var_iget_varn.py \
tst_var_iget_var.py \
tst_var_iget_vars.py \
tst_var_indexer.py \
tst_var_iput_var1.py \
tst_var_iput_vara.py \
tst_var_iput_varm.py \
tst_var_iput_varn.py \
tst_var_iput_var.py \
tst_var_iput_vars.py \
tst_var_put_var1.py \
tst_var_put_vara.py \
tst_var_put_varm.py \
tst_var_put_varn.py \
tst_var_put_var.py \
tst_var_put_vars.py \
tst_var_rec_fill.py \
tst_var_string.py \
tst_var_type.py \
tst_version.py \
tst_wait.py \
tst_libver.py
TESTMPIRUN = $(shell dirname ${CC})/mpirun
TESTS_ENVIRONMENT = export check_PROGRAMS="${check_PROGRAMS}";
TESTS_ENVIRONMENT += export TESTMPIRUN="$(TESTMPIRUN)";
OUTPUT_DIR = _tmp_output
all:
check: ptest4
ptests: ptest3 ptest4 ptest8
ptest3:
@mkdir -p ${OUTPUT_DIR}
@echo "======================================================================"
@echo " test: Parallel testing on 3 MPI processes"
@echo "======================================================================"
@${TESTS_ENVIRONMENT} export NPROC=3; ./parallel_run.sh ${OUTPUT_DIR} || exit 1
@echo ""
ptest4:
@mkdir -p ${OUTPUT_DIR}
@echo "======================================================================"
@echo " test: Parallel testing on 4 MPI processes"
@echo "======================================================================"
@${TESTS_ENVIRONMENT} export NPROC=4; ./parallel_run.sh ${OUTPUT_DIR} || exit 1
@echo ""
ptest8:
@mkdir -p ${OUTPUT_DIR}
@echo "======================================================================"
@echo " test: Parallel testing on 8 MPI processes"
@echo "======================================================================"
@${TESTS_ENVIRONMENT} export NPROC=8; ./parallel_run.sh ${OUTPUT_DIR} || exit 1
@echo ""
clean:
rm -rf ${OUTPUT_DIR}
rm -rf __pycache__
.PHONY: all check ptests ptest3 ptest4 ptest8 clean