Skip to content

Commit cbe7891

Browse files
committed
Makefile: Add time feature flag for test except compio
1 parent 60213cf commit cbe7891

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/cron_master_tokio_arm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: taiki-e/install-action@nextest
2222

2323
- name: Run tests with tokio multi-thread
24-
run: cd test-suite; WORKFLOW=1 exec cargo nextest run -F="tokio" --hide-progress-bar -j 1 --no-capture
24+
run: cd test-suite; WORKFLOW=1 exec cargo nextest run -F="tokio,time" --hide-progress-bar -j 1 --no-capture
2525

2626
- name: Run tests with tokio multi thread --release with trace log
2727
run: cd test-suite; WORKFLOW=1 exec cargo nextest run -F="tokio,trace_log" --hide-progress-bar -j 1 --no-capture -r
@@ -30,10 +30,10 @@ jobs:
3030
run: cd test-suite; WORKFLOW=1 SINGLE_THREAD_RUNTIME=1 exec cargo nextest run -F="tokio,trace_log" --hide-progress-bar -j 1 --no-capture -r
3131

3232
- name: Run tests with tokio multi thread --release
33-
run: cd test-suite; WORKFLOW=1 exec cargo nextest run -F="tokio" --hide-progress-bar -j 1 --no-capture -r
33+
run: cd test-suite; WORKFLOW=1 exec cargo nextest run -F="tokio,time" --hide-progress-bar -j 1 --no-capture -r
3434

3535
- name: Run tests with tokio single-thread --release
36-
run: cd test-suite; WORKFLOW=1 SINGLE_THREAD_RUNTIME=1 exec cargo nextest run -F="tokio" --hide-progress-bar -j 1 --no-capture -r
36+
run: cd test-suite; WORKFLOW=1 SINGLE_THREAD_RUNTIME=1 exec cargo nextest run -F="tokio,time" --hide-progress-bar -j 1 --no-capture -r
3737

3838
- name: Dump log on cancel
3939
if: ${{ cancelled() }}

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,63 +53,63 @@ doc:
5353
.PHONY: test
5454
test: init
5555
@echo "Run test"
56-
@${RUN_TEST_CASE}; FEATURE_FLAG="-F tokio"; _run_test_case
56+
@${RUN_TEST_CASE}; FEATURE_FLAG="-F tokio,time"; _run_test_case
5757
@echo "Done"
5858

5959
# test with ringfile for deadlog
6060
.PHONY: test_log
6161
test_log: init
6262
@echo "Run test"
63-
@${RUN_TEST_CASE}; FEATURE_FLAG="-F tokio,trace_log"; _run_test_case
63+
@${RUN_TEST_CASE}; FEATURE_FLAG="-F tokio,time,trace_log"; _run_test_case
6464
@echo "Done"
6565

6666
.PHONY: test_async_std
6767
test_async_std: init
6868
@echo "Run test"
69-
@${RUN_TEST_CASE}; FEATURE_FLAG="-F async_std"; _run_test_case
69+
@${RUN_TEST_CASE}; FEATURE_FLAG="-F async_std,time,"; _run_test_case
7070
@echo "Done"
7171

7272
.PHONY: test_log_async_std
7373
test_log_async_std: init
7474
@echo "Run test"
75-
@${RUN_TEST_CASE}; FEATURE_FLAG="-F async_std,trace_log"; _run_test_case
75+
@${RUN_TEST_CASE}; FEATURE_FLAG="-F async_std,time,trace_log"; _run_test_case
7676
@echo "Done"
7777

7878
.PHONY: test_release
7979
test_release:
80-
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F tokio"; _run_test_release_case
80+
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F tokio,time"; _run_test_release_case
8181

8282
# test with ringfile for deadlog
8383
.PHONY: test_log_release
8484
test_log_release:
85-
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F tokio,trace_log"; _run_test_release_case
85+
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F tokio,time,trace_log"; _run_test_release_case
8686

8787
.PHONY: test_async_std_release
8888
test_async_std_release:
89-
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F async_std"; _run_test_release_case
89+
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F async_std,time"; _run_test_release_case
9090

9191
# test with ringfile for deadlog
9292
.PHONY: test_log_async_std_release
9393
test_log_async_std_release:
94-
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F async_std,trace_log"; _run_test_release_case
94+
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F async_std,time,trace_log"; _run_test_release_case
9595

9696
.PHONY: test_smol
9797
test_smol:
98-
@${RUN_TEST_CASE}; FEATURE_FLAG="-F smol"; _run_test_case
98+
@${RUN_TEST_CASE}; FEATURE_FLAG="-F smol,time"; _run_test_case
9999

100100
# test with ringfile for deadlog
101101
.PHONY: test_log_smol
102102
test_log_smol:
103-
@${RUN_TEST_CASE}; FEATURE_FLAG="-F smol,trace_log"; _run_test_case
103+
@${RUN_TEST_CASE}; FEATURE_FLAG="-F smol,time,trace_log"; _run_test_case
104104

105105
.PHONY: test_smol_release
106106
test_smol_release:
107-
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F smol"; _run_test_release_case
107+
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F smol,time"; _run_test_release_case
108108

109109
# test with ringfile for deadlog
110110
.PHONY: test_log_smol_release
111111
test_log_smol_release:
112-
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F smol,trace_log"; _run_test_release_case
112+
@${RUN_RELEASE_CASE}; FEATURE_FLAG="-F smol,trace_log,time"; _run_test_release_case
113113

114114
.PHONY: test_compio
115115
test_compio:

0 commit comments

Comments
 (0)