Skip to content

Commit

Permalink
IDT init (#29174)
Browse files Browse the repository at this point in the history
* IDT init

* Restyled by whitespace

* Restyled by prettier-markdown

* Restyled by shellharden

* Restyled by shfmt

* Restyled by isort

* Remove f-strings with no placeholders

* Remove unknown Pygments lexer

* Spelling

* License headers

* Restyled by prettier-markdown

* First response to PR comments

* Restyled by prettier-markdown

* Respond Dockerfile and README comments

* ble nit, venv script

* Make TXT logging better

* Respond comments

* Clarify single host installation

* Respond comments

* Respond nits

* Cleanup BashRunner

* Cleanup BashRunner usage

* Respond comments, renames, opts

* Nits

* Restyled by prettier-markdown

* Restyled by shellharden

* Restyled by shfmt

* Restyled by isort

* Spelling

* Dynamic loading, comments

* README nit

* Make README generic, add async, any interface

* Restyled by prettier-markdown

* Restyled by shellharden

* Restyled by shfmt

* Restyled by isort

* Nits, workaround potential issue with shell input

* Restyled by isort

* Docs CI

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Feb 6, 2024
1 parent a2a9ca3 commit 4478328
Show file tree
Hide file tree
Showing 46 changed files with 2,426 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ connstring
conntype
const
ContentApp
ContentApp's
ContentAppPlatform
ContentApp's
ContentLaunch
ContentLauncher
continuousHinting
Expand Down Expand Up @@ -659,6 +659,8 @@ ICMP
IDF
IDL
IDLs
idt
IDT
idx
ifconfig
ifdef
Expand Down Expand Up @@ -926,6 +928,7 @@ nl
NLUnitTest
NLUnitTests
nmcli
nmtui
noc
NodeId
nongnu
Expand Down Expand Up @@ -1021,11 +1024,14 @@ params
PartNumber
PASE
Passcode
passRetained
passwd
PBKDF
pbuf
pbufs
pbxproj
PCA
pcap
pcaps
PDFs
PDK
Expand All @@ -1051,6 +1057,7 @@ PlatformManager
PlatformManagerImpl
plt
png
Podman
PollControl
pollInterval
polymorphism
Expand Down Expand Up @@ -1147,8 +1154,8 @@ REPL
repo
req
Requestor
Requestor's
RequestorCanConsent
Requestor's
Requestors
responder
RestrictedEvent
Expand All @@ -1167,6 +1174,7 @@ rootfs
RPC
RPCs
RPi
RPi's
RPis
RSA
rsn
Expand Down Expand Up @@ -1202,8 +1210,8 @@ SDB
SDC
SDHC
SDK
SDK's
sdkconfig
SDK's
SDKs
SDKTARGETSYSROOT
sdl
Expand Down
1 change: 1 addition & 0 deletions docs/tools/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Source files for these tools are located at `scripts/tools`.
../scripts/tools/memory/README
../scripts/tools/spake2p/README
../src/tools/interop/idt/README
```

Expand Down
9 changes: 9 additions & 0 deletions src/tools/interop/idt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*~
.DS_Store
.idea/
IDT_ARTIFACTS/
OUT/
__pycache__/
pycache/
venv/
.zip
48 changes: 48 additions & 0 deletions src/tools/interop/idt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# Copyright (c) 2023 Project CHIP Authors
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM debian:bookworm
RUN apt-get update && \
apt-get install -y \
adb \
aircrack-ng \
apt-utils \
git \
glib-2.0 \
kmod \
libbluetooth-dev \
libboost-python-dev \
libboost-thread-dev \
libglib2.0-dev \
net-tools \
pciutils \
pkg-config \
python3-pip \
python3.11 \
python3.11-venv \
tcpdump \
usbutils \
wget && \
echo "wireshark-common wireshark-common/install-setuid boolean true" | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark && \
rm -rf /var/lib/apt/lists/*
RUN usermod -aG plugdev $(whoami)
RUN git clone https://github.com/openthread/ot-br-posix
COPY requirements.txt /
RUN /bin/bash -c "python3 -m venv /env && source /env/bin/activate && pip install -r requirements.txt"
RUN echo "source /env/bin/activate; pip -V; source /idt/scripts/alias.sh;" >> /root/.bashrc
ENTRYPOINT ["/bin/bash"]
Loading

0 comments on commit 4478328

Please sign in to comment.