-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathtest_py3.bash
More file actions
769 lines (582 loc) · 20.7 KB
/
test_py3.bash
File metadata and controls
769 lines (582 loc) · 20.7 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
#!/bin/bash
# Copyright © 2016-2018 Dmytro Katyukha <dmytro.katyukha@gmail.com>
#######################################################################
# This Source Code Form is subject to the terms of the Mozilla Public #
# License, v. 2.0. If a copy of the MPL was not distributed with this #
# file, You can obtain one at http://mozilla.org/MPL/2.0/. #
#######################################################################
# this script runs tests for Odoo 11.0–18.0 (Python 3)
SCRIPT=$0;
SCRIPT_NAME=$(basename $SCRIPT);
PROJECT_DIR=$(readlink -f "$(dirname $SCRIPT)/..");
TEST_TMP_DIR="${TEST_TMP_DIR:-$PROJECT_DIR/test-temp}";
WORK_DIR=$(pwd);
ERROR=;
tempfiles=( )
# do cleanup on exit
cleanup() {
if [ -z $ERROR ]; then
if ! rm -rf "$TEST_TMP_DIR"; then
echo "Cannot remove $TEST_TMP_DIR";
fi
fi
}
trap cleanup 0
# Handle errors
# Based on: http://stackoverflow.com/questions/64786/error-handling-in-bash#answer-185900
error() {
local parent_lineno="$1"
local message="$2"
local code="${3:-1}"
ERROR=1;
if [[ -n "$message" ]] ; then
echo "Error on or near line ${parent_lineno}: ${message}; exiting with status ${code}"
else
echo "Error on or near line ${parent_lineno}; exiting with status ${code}"
fi
exit "${code}"
}
trap 'error ${LINENO}' ERR
# Fail on any error
set -e;
# Init test tmp dir
mkdir -p $TEST_TMP_DIR;
cd $TEST_TMP_DIR;
# Prepare for test (if running on CI)
source "$PROJECT_DIR/tests/ci.bash";
# import odoo-helper common lib to allow colors in test output
source $(odoo-helper system lib-path common);
allow_colors;
#
# Start test
# ==========
#
echo -e "${YELLOWC}
===================================================
Show odoo-helper-scripts version
===================================================
${NC}"
odoo-helper --version;
echo -e "${YELLOWC}
===================================================
Install odoo-helper and odoo system prerequirements
===================================================
${NC}"
odoo-helper install pre-requirements -y;
odoo-helper install bin-tools -y;
odoo-helper install postgres;
if [ ! -z $CI_RUN ] && ! odoo-helper exec postgres_test_connection; then
echo -e "${YELLOWC}WARNING${NC}: Cannot connect to postgres instance. Seems that postgres not started, trying to start it now..."
sudo /etc/init.d/postgresql start;
fi
echo -e "${YELLOWC}
===================================================
Run odoo-helper postgres speedify
===================================================
${NC}"
odoo-helper postgres speedify
echo -e "${YELLOWC}
=================================
Install and check Odoo 11.0 (Py3)
=================================
${NC}"
# Already in $TEST_TMP_DIR from init block above
odoo-helper install sys-deps -y 11.0;
odoo-helper postgres user-create odoo11 odoo;
# Odoo 11 does not run on python 3.9, so build custom python interpreter
odoo-install --install-dir odoo-11.0 --odoo-version 11.0 \
--conf-opt-xmlrpc_port 8369 --conf-opt-xmlrpcs_port 8371 --conf-opt-longpolling_port 8372 \
--db-user odoo11 --db-pass odoo --build-python-if-needed
cd odoo-11.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
# Test python version
echo -e "${YELLOWC}Ensure that it is Py3${NC}";
odoo-helper exec python --version
if ! [[ "$(odoo-helper exec python --version 2>&1)" == "Python 3."* ]]; then
echo -e "${REDC}FAIL${NC}: No py3";
exit 3;
fi
echo "";
echo "Generated odoo config:"
echo "$(cat ./conf/odoo.conf)"
echo "";
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status
odoo-helper start
odoo-helper server ps
odoo-helper server status
odoo-helper stop
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions
echo -e "${YELLOWC}
==========================================
Test how translation-related commands work
==========================================
${NC}"
odoo-helper db create --demo test-11-db;
odoo-helper tr load --lang uk_UA --db test-11-db;
odoo-helper tr export test-11-db uk_UA uk-test web;
odoo-helper tr import test-11-db uk_UA uk-test web;
echo -e "${YELLOWC}
==============================
Fetch OCA/partner-contact repo
==============================
${NC}"
# Install oca/partner-contact addons
odoo-helper fetch --oca partner-contact;
echo -e "${YELLOWC}
===================================================================
Test CI Tools (ensure icons, ensure changelog, check versions, etc)
===================================================================
${NC}"
# Check oca/partner-contact with ci commands
odoo-helper ci ensure-icons repositories/oca/partner-contact || true
odoo-helper ci ensure-changelog repositories/oca/partner-contact HEAD^^^1 || true
odoo-helper ci ensure-changelog --ignore-trans repositories/oca/partner-contact HEAD^^^1 || true
odoo-helper ci check-versions-git --repo-version repositories/oca/partner-contact HEAD^^^1 HEAD || true
odoo-helper ci check-versions-git --repo-version repositories/oca/partner-contact HEAD^^^1 || true
odoo-helper ci check-versions-git --ignore-trans --repo-version repositories/oca/partner-contact HEAD^^^1 || true
echo -e "${YELLOWC}
===================================
Show list of changed addons in repo
===================================
${NC}"
# Show addons changed
odoo-helper git changed-addons repositories/oca/partner-contact HEAD^^^1 HEAD
echo -e "${YELLOWC}
==================
Fetch OCA/web repo
==================
${NC}"
# Fetch oca/web passing only repo url and branch to fetch command
odoo-helper fetch https://github.com/oca/web --branch 11.0 --git-single-branch --git-depth-1;
echo -e "${YELLOWC}
============================================
Update list of addons for specific databases
============================================
${NC}"
# Update addons list on specific db
odoo-helper addons update-list test-11-db
echo -e "${YELLOWC}
===========================================================================
Regenerate UA translations for partner-contact and compute translation rate
===========================================================================
${NC}"
# Regenerate Ukrainian translations for all addons in partner-contact
odoo-helper tr regenerate --lang uk_UA --file uk_UA --dir ./repositories/oca/web;
odoo-helper tr rate --lang uk_UA --dir ./repositories/oca/web;
echo -e "${YELLOWC}
==========================================
Show list of running sql queries
==========================================
${NC}"
odoo-helper server start
odoo-helper db list
odoo-helper postgres stat-activity
odoo-helper postgres stat-connections
odoo-helper stop
echo -e "${YELLOWC}
==========================================
Drop temporary database
==========================================
${NC}"
odoo-helper db drop test-11-db;
echo -e "${YELLOWC}
==========================================
Test shortcuts
==========================================
${NC}"
odoo-helper --help
odoo-install --help
odoo-helper-addons --help
odoo-helper-link --help
odoo-helper-db --help
odoo-helper-fetch --help
odoo-helper-server --help
odoo-helper-test --help
odoo-helper git --help
odoo-helper-restart
odoo-helper stop # ensure server stopped
# There is also shortcut for odoo.py command
odoo-helper odoo-py --help
echo -e "${YELLOWC}
==========================================
Test Unitilty commands
==========================================
${NC}"
echo -e "${YELLOWC}Print server url:${NC}";
odoo-helper odoo server-url
# Check that specified directory is inside odoo-helper project
odoo-helper system is-project ./repositories;
echo -e "${YELLOWC}Print path to virtualenv directory of current odoo-helper project:${NC}";
odoo-helper system get-venv-dir;
echo -e "${YELLOWC}Print path to virtualenv directory of odoo 11.0 project:${NC}";
odoo-helper system get-venv-dir ../odoo-11.0;
echo -e "${YELLOWC}
==========================================
Test stylelint on OCA/website repo
==========================================
${NC}"
odoo-helper install js-tools
odoo-helper fetch --oca web
odoo-helper lint style ./repositories/oca/web/web_widget_color || true
odoo-helper lint style ./repositories/oca/web/web_widget_datepicker_options || true
echo -e "${YELLOWC}
=================================
Install and check Odoo 12.0 (Py3)
=================================
${NC}"
cd ../;
odoo-helper install sys-deps -y 12.0;
odoo-helper postgres user-create odoo12 odoo;
# Odoo 12 does not run on python 3.9, so build custom python interpreter
odoo-install --install-dir odoo-12.0 --odoo-version 12.0 \
--conf-opt-xmlrpc_port 8369 --conf-opt-xmlrpcs_port 8371 --conf-opt-longpolling_port 8372 \
--db-user odoo12 --db-pass odoo --ocb --build-python-if-needed
cd odoo-12.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
# Test python version
echo -e "${YELLOWC}Ensure that it is Py3${NC}";
odoo-helper exec python --version
if ! [[ "$(odoo-helper exec python --version 2>&1)" == "Python 3."* ]]; then
echo -e "${REDC}FAIL${NC}: No py3";
exit 3;
fi
echo "";
echo "Generated odoo config:";
echo "$(cat ./conf/odoo.conf)";
echo "";
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper-server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --demo --lang en_US odoo12-odoo-test;
odoo-helper db create --recreate --demo --lang en_US --install contacts odoo12-odoo-test;
odoo-helper db copy odoo12-odoo-test odoo12-odoo-tmp;
odoo-helper db exists odoo12-odoo-test;
odoo-helper db exists odoo12-odoo-tmp;
odoo-helper db backup-all;
odoo-helper db dump-manifest odoo12-odoo-test;
odoo-helper lsd; # list databases
# Fetch oca/contract
odoo-helper fetch --github crnd-inc/generic-addons
# Install addons from OCA contract
odoo-helper addons install --ual --dir ./repositories/crnd-inc/generic-addons;
# List addons in generic_addons
odoo-helper lsa ./repositories/crnd-inc/generic-addons;
# Install poppler utils package, that is required by bureaucrat knowledge base
sudo apt-get install -qqy poppler-utils
# Fetch bureaucrat_knowledge from Odoo market and try to install it
odoo-helper fetch --odoo-app bureaucrat_knowledge;
odoo-helper addons install --ual --show-log-on-error bureaucrat_knowledge;
# Fetch knowledge base second time testing bechavior
# when same addons already present in system
odoo-helper-fetch --odoo-app bureaucrat_knowledge;
# Prepare to test pull updates with --do-update option
(cd ./repositories/crnd-inc/generic-addons && git reset --hard HEAD^^^1);
# Test pull-updates with --do-update option
odoo-helper-addons pull-updates --do-update;
# Regenerate pot files for modules from generic-addons
odoo-helper tr regenerate --pot --dir ./repositories/crnd-inc/generic-addons;
odoo-helper tr regenerate --lang-file "uk_UA:uk" --lang-file "ru_RU:ru" --dir ./repositories/crnd-inc/generic-addons;
# Print list of installed addons
odoo-helper addons find-installed;
# Drop created databases
odoo-helper-db drop odoo12-odoo-test;
odoo-helper db drop -q odoo12-odoo-tmp;
cd ../;
# Remove odoo 10, 11, 12,
# this is needed to bypass GitHub Actions disk space limitation for CI jobs
rm -rf ./odoo-10.0
rm -rf ./odoo-11.0
rm -rf ./odoo-12.0
echo -e "${YELLOWC}
=================================
Install and check Odoo 13.0 (Py3)
=================================
${NC}"
# Install odoo 13
odoo-helper install sys-deps -y 13.0;
odoo-helper postgres user-create odoo13 odoo;
# System python is less than 3.6 or greater than 3.9,
# so build python 3.7 to use for this odoo version
odoo-install --install-dir odoo-13.0 --odoo-version 13.0 \
--http-port 8469 --http-host local-odoo-13 \
--db-user odoo13 --db-pass odoo --build-python-if-needed
cd odoo-13.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --demo --lang en_US odoo13-odoo-test;
# Fetch oca/contract
odoo-helper fetch --github crnd-inc/generic-addons
# Install addons from OCA contract
odoo-helper addons install --ual --dir ./repositories/crnd-inc/generic-addons;
# Fetch bureaucrat_knowledge from Odoo market and try to install it
odoo-helper fetch --odoo-app bureaucrat_knowledge;
odoo-helper addons install --ual bureaucrat_knowledge;
# Print list of installed addons
odoo-helper addons find-installed --packager-format;
# Drop created databases
odoo-helper db drop odoo13-odoo-test;
# Odoo 14 runs only with python 3.6+
echo -e "${YELLOWC}
=================================
Install and check Odoo 14.0 (Py3)
=================================
${NC}"
cd ../;
odoo-helper install sys-deps -y 14.0;
# System python is less then 3.6, so build python 3.7 to use for
# this odoo version
odoo-install --install-dir odoo-14.0 --odoo-version 14.0 \
--http-port 8569 --http-host local-odoo-14 \
--db-user odoo14 --db-pass odoo --create-db-user \
--build-python-if-needed
cd odoo-14.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --demo --lang en_US odoo14-odoo-test;
# Fetch oca/contract
odoo-helper fetch --github crnd-inc/generic-addons
# Install addons from OCA contract
odoo-helper addons install --ual --dir ./repositories/crnd-inc/generic-addons;
# Fetch bureaucrat_knowledge from Odoo market and try to install it
odoo-helper fetch --odoo-app bureaucrat_knowledge;
odoo-helper addons install --ual bureaucrat_knowledge;
# Print list of installed addons
odoo-helper addons find-installed;
# Drop created databases
odoo-helper db drop odoo14-odoo-test;
echo -e "${YELLOWC}
=================================
Install and check Odoo 15.0 (Py3)
=================================
${NC}"
cd ../;
# Remove odoo 13, 14,
# this is needed to bypass GitHub Actions disk space limitation for CI jobs
rm -rf ./odoo-13.0
rm -rf ./odoo-14.0
# Install odoo 15
odoo-helper install sys-deps -y 15.0;
# System python is less then 3.7, so build python 3.7 to use for
# this odoo version
odoo-install --install-dir odoo-15.0 --odoo-version 15.0 \
--http-port 8569 --http-host local-odoo-15 \
--db-user odoo15 --db-pass odoo --create-db-user \
--build-python-if-needed
cd odoo-15.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --tdb --lang en_US;
odoo-helper addons update-list --tdb;
odoo-helper addons install --tdb --module crm;
odoo-helper addons test-installed crm;
odoo-helper lsd; # List databases
## Install addon website via 'odoo-helper install'
odoo-helper install website;
## Fetch oca/contract
odoo-helper fetch --github crnd-inc/generic-addons
## Install addons from OCA contract
odoo-helper addons install --ual --dir ./repositories/crnd-inc/generic-addons;
## Fetch bureaucrat_knowledge from Odoo market and try to install it
odoo-helper fetch --odoo-app bureaucrat_knowledge;
odoo-helper addons install --ual bureaucrat_knowledge;
## Print list of installed addons
odoo-helper addons find-installed;
## Run tests for knowledge
odoo-helper test bureaucrat_knowledge
# Drop created databases
odoo-helper db drop odoo15-odoo-test;
echo -e "${YELLOWC}
=================================
Install and check Odoo 16.0 (Py3)
=================================
${NC}"
cd ../;
# Remove odoo 15
# this is needed to bypass GitHub Actions disk space limitation for CI jobs
rm -rf ./odoo-15.0
# Install odoo 16
odoo-helper install sys-deps -y 16.0;
odoo-install --install-dir odoo-16.0 --odoo-version 16.0 \
--http-port 8569 --http-host local-odoo-16 \
--db-user odoo16 --db-pass odoo --create-db-user \
--build-python-if-needed
cd odoo-16.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --tdb --lang en_US;
odoo-helper addons update-list --tdb;
odoo-helper addons install --tdb --module crm;
odoo-helper addons test-installed crm;
odoo-helper lsd; # List databases
## Install addon website via 'odoo-helper install'
odoo-helper install website;
## Fetch oca/contract
odoo-helper fetch --github crnd-inc/generic-addons
## Fetch bureaucrat_knowledge from Odoo market and try to install it
odoo-helper fetch --odoo-app bureaucrat_knowledge;
odoo-helper addons install --ual bureaucrat_knowledge;
## Print list of installed addons
odoo-helper addons find-installed;
## Run tests for helpdesk lite
odoo-helper test bureaucrat_knowledge
# Drop created databases
odoo-helper db drop odoo16-odoo-test;
echo -e "${YELLOWC}
#=================================
#Install and check Odoo 17.0 (Py3)
#=================================
${NC}"
cd ../;
# Remove odoo 16
# this is needed to bypass GitHub Actions disk space limitation for CI jobs
rm -rf ./odoo-16.0
# Install odoo 17
odoo-helper install sys-deps -y 17.0;
odoo-install --install-dir odoo-17.0 --odoo-version 17.0 \
--http-port 17569 \
--db-user odoo17 --db-pass odoo --create-db-user \
--build-python-if-needed
cd odoo-17.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --tdb --lang en_US;
odoo-helper addons update-list --tdb;
odoo-helper addons install --tdb --module crm;
odoo-helper addons test-installed crm;
odoo-helper lsd; # List databases
## Install addon website via 'odoo-helper install'
odoo-helper install website;
# Drop created databases
odoo-helper db drop odoo17-odoo-test;
echo -e "${YELLOWC}
#=================================
#Install and check Odoo 18.0 (Py3)
#=================================
${NC}"
cd ../;
# Remove odoo 17
# this is needed to bypass GitHub Actions disk space limitation for CI jobs
rm -rf ./odoo-17.0
# Install odoo 18
odoo-helper install sys-deps -y 18.0;
odoo-install --install-dir odoo-18.0 --odoo-version 18.0 \
--http-port 18069 \
--db-user odoo18 --db-pass odoo --create-db-user \
--build-python-if-needed
cd odoo-18.0;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;
odoo-helper server run --stop-after-init; # test that it runs
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;
# Database management
odoo-helper db create --tdb --lang en_US;
odoo-helper addons update-list --tdb;
odoo-helper addons install --tdb --module crm;
odoo-helper addons test-installed crm;
odoo-helper lsd; # List databases
## Install addon website via 'odoo-helper install'
odoo-helper install website;
# Drop created databases
odoo-helper db drop odoo18-odoo-test;
echo -e "${YELLOWC}
=============================================================
Run 'prepare-docs' script to test generation of help messages
=============================================================
${NC}"
bash "$PROJECT_DIR/scripts/prepare_docs.bash";
echo -e "${GREENC}
==========================================
Tests finished (py3: Odoo 11–18)
==========================================
${NC}"