Skip to content

Instantly share code, notes, and snippets.

@neelchauhan
neelchauhan / stem-pycodestyle.patch
Created October 27, 2016 13:59
Patch for Stem to reference change of pep8 name to pycodestyle (and add fallback)
From 36e244c05468c27d14ac61a5c3f6f7feb5c64413 Mon Sep 17 00:00:00 2001
From: Neel Chauhan <neel@neelc.org>
Date: Wed, 26 Oct 2016 20:35:15 -0400
Subject: [PATCH 1/2] Switch to 'import pycodestyle' and add fallback mechanism
---
stem/util/test_tools.py | 74 ++++++++++++++++++++++++++++++-------------------
1 file changed, 45 insertions(+), 29 deletions(-)
diff --git a/stem/util/test_tools.py b/stem/util/test_tools.py
@neelchauhan
neelchauhan / split_getinfo.patch
Created November 1, 2016 15:11
Patch to split unit testing for controller.py in Stem
From 2f52a83f2958e783975de6e8ea0b8f3c918df6f8 Mon Sep 17 00:00:00 2001
From: Neel Chauhan <neel@neelc.org>
Date: Tue, 1 Nov 2016 11:07:53 -0400
Subject: [PATCH] Split getinfo controller tests
---
test/integ/control/controller.py | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
@neelchauhan
neelchauhan / split_getinfo.log
Created November 1, 2016 15:15
Unit Testing log for Stem with split_getinfo.patch
======================================================================
INITIALISING
======================================================================
checking stem version... 1.4.1-dev
checking python version... 2.7.12
checking pycrypto version... missing
checking mock version... 2.0.0
checking pyflakes version... 1.2.3
checking pycodestyle version... 2.0.0
This file has been truncated, but you can view the full file.
/*
RSD PTR: OEM=HPQOEM, ACPI_Rev=2.0x (2)
XSDT=0x000000009dffe120, length=36, cksum=63
*/
/*
XSDT: Length=172, Revision=1, Checksum=14,
OEMID=HPQOEM, OEM Table ID=SLIC-MPC, OEM Revision=0x1,
Creator ID=, Creator Revision=0x1000013
Entries={ 0x000000009dffc000, 0x000000009dffb000, 0x000000009dffa000, 0x000000009dff9000, 0x000000009dff7000, 0x000000009dfcf000, 0x000000009dfce000, 0x000000009dfcd000, 0x000000009dfcb000, 0x000000009dfca000, 0x000000009dfc7000, 0x000000009dfc6000, 0x000000009dfc5000, 0x000000009dfc4000, 0x000000009dfc3000, 0x000000009dff8000, 0x000000009dfc2000 }
*/
[ 28.173]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[ 28.173] X Protocol Version 11, Revision 0
[ 28.173] Build Operating System: FreeBSD 13.0-CURRENT amd64
[ 28.173] Current Operating System: FreeBSD spectre.local 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r352239M: Thu Sep 12 04:55:27 EDT 2019 root@spectre.local:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
[ 28.173] Build Date: 12 September 2019 10:28:48AM
[ 28.173]
[ 28.173] Current version of pixman: 0.38.4
[ 28.173] Before reporting problems, check http://wiki.x.org
This file has been truncated, but you can view the full file.
Script started on 2019-10-23 15:37:30-04:00 [TERM="screen" TTY="/dev/pts/1" COLUMNS="80" LINES="23"]
kneel@localhost:~/lind_project/src/docker\[neel@localhost docker]$ docker-compose ubuild ; exit
Building base
Step 1/51 : FROM archlinux/base
---> 5323a8f7a7a4
Step 2/51 : LABEL lind "v1.0-rc5"
---> Using cache
---> 95203e6d3c1f
Step 3/51 : LABEL description "Lind NaCl Glibc Toolchain (Base)"
---> Using cache
@neelchauhan
neelchauhan / icmp6.sh
Last active June 28, 2020 20:10
FreeBSD ICMP6 Kyua test
#!/usr/bin/env atf-sh
#-
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2020 Neel Chauhan
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
===> Execution context
Current directory: /usr/tests/sys/netinet6
Environment variables:
BLOCKSIZE=K
COLORFGBG=15;0
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-CT0MFfbYSb,guid=73791617ccb6290e32ec30b75ef8ce5c
DESKTOP_SESSION=/usr/local/share/xsessions/plasma
DISPLAY=:0
EDITOR=vi
@neelchauhan
neelchauhan / kyua_log_forward6
Created June 28, 2020 19:55
Kyua Log forward6
===> Execution context
Current directory: /usr/tests/sys/netinet6
Environment variables:
BLOCKSIZE=K
COLORFGBG=15;0
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-CT0MFfbYSb,guid=73791617ccb6290e32ec30b75ef8ce5c
DESKTOP_SESSION=/usr/local/share/xsessions/plasma
DISPLAY=:0
EDITOR=vi
@neelchauhan
neelchauhan / kyua_log_redirect6
Created June 28, 2020 19:56
Kyua log for redirect (IPv6)
===> Execution context
Current directory: /usr/tests/sys/netinet6
Environment variables:
BLOCKSIZE=K
COLORFGBG=15;0
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-CT0MFfbYSb,guid=73791617ccb6290e32ec30b75ef8ce5c
DESKTOP_SESSION=/usr/local/share/xsessions/plasma
DISPLAY=:0
EDITOR=vi