osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/35108?usp=email )
Change subject: ttcn3.sh: add arg to only run one test
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
as discussed with neels, pushing these without code review
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/35108?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I07a76f6c58d379608ecadfc3ba845651929f668c
Gerrit-Change-Number: 35108
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Nov 2023 15:55:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/35107?usp=email )
Change subject: ttcn3.sh: add options for kernel tests
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
as discussed with neels, pushing these without code review
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/35107?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I2a569b6712d8930807750751c14ed4e18b325e02
Gerrit-Change-Number: 35107
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Nov 2023 15:55:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-dev/+/35106?usp=email )
Change subject: ttcn3.sh: clean osmo-ttcn3-hacks too
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
as discussed with neels, pushing these without code review
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/35106?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Id0fdf5e3f0917e56e3c6abff54a2f886367252f5
Gerrit-Change-Number: 35106
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 23 Nov 2023 15:54:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-dev/+/35112?usp=email )
Change subject: gen_makefile: don't shell out to nproc
......................................................................
gen_makefile: don't shell out to nproc
Use python's multiprocessing.cpu_count() instead of "$(nproc)". The
latter didn't work properly in Makefiles, the right syntax would have
been "$(shell nproc)". Make didn't complain about it and assumed that we
want to use all CPUs with an empty argument "-j ", but meson doesn't
accept this syntax.
Change-Id: I58ca082339f3aff813f587f4c2be9c0951b9b2dd
---
M gen_makefile.py
1 file changed, 19 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/12/35112/1
diff --git a/gen_makefile.py b/gen_makefile.py
index 9a8a5cf..7fc2bd2 100755
--- a/gen_makefile.py
+++ b/gen_makefile.py
@@ -49,6 +49,7 @@
import sys
import os
import argparse
+import multiprocessing
topdir = os.path.dirname(os.path.realpath(__file__))
all_deps_file = os.path.join(topdir, "all.deps")
@@ -85,7 +86,9 @@
parser.add_argument('-o', '--output', dest='output', default='Makefile',
help='''Makefile filename (default: 'Makefile').''')
-parser.add_argument('-j', '--jobs', dest='jobs', default='$(nproc)', nargs='?', const='$(nproc)',
+parser.add_argument('-j', '--jobs', dest='jobs', type=int,
+ default=multiprocessing.cpu_count(), nargs='?',
+ const=multiprocessing.cpu_count(),
help='''-j option to pass to 'make'.''')
parser.add_argument('-I', '--sudo-make-install', dest='sudo_make_install',
--
To view, visit https://gerrit.osmocom.org/c/osmo-dev/+/35112?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: I58ca082339f3aff813f587f4c2be9c0951b9b2dd
Gerrit-Change-Number: 35112
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange