Skip to content

Instantly share code, notes, and snippets.

View pokgak's full-sized avatar

Aiman Ismail pokgak

View GitHub Profile
@pokgak
pokgak / test-handshake-failure.py
Last active October 18, 2019 12:36
Python pexpect script to test handling handshake_failure alert between two native RIOT instances
#!/usr/bin/env python3
import sys
import os
import pexpect
import time
import signal
serverIP = "<SERVER_IP>"
@pokgak
pokgak / iterate-tinydtls-commits
Last active October 16, 2019 14:56
Python script using pexpect to test tinydtls client and server in RIOT using examples/dtls-echo example application. There are still lots of hardcoded variables used.
#!/bin/bash
# specify paths to tinydtls and RIOT repo
TINYDTLS_REPO=~/git/tinydtls
RIOT_REPO=~/git/RIOT-OS/RIOT
# get all commits FROM tinydtls repo since last known good commit
cd $TINYDTLS_REPO
git checkout develop &> /dev/null
hashes=$(git rev-list --reverse dcac93f1b38e74f0a57b5df47647943f3df005c2^1..HEAD)