From 40d1a8071fc6e8596950a39ab6aa82c4be3b4edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 4 Nov 2015 13:41:39 +0100 Subject: add inw, outw test script --- Makefile | 3 ++- tools/test_port | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 tools/test_port diff --git a/Makefile b/Makefile index 22c435d..bf0f611 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,8 @@ ISO=kernel.iso all: run run: kernel - qemu-system-i386 -kernel $(KERNEL_DIR)/kernel.elf + ./tools/test_port & + qemu-system-i386 -kernel $(KERNEL_DIR)/kernel.elf -serial pty run-iso: $(ISO) qemu-system-i386 -hda $(ISO) diff --git a/tools/test_port b/tools/test_port new file mode 100755 index 0000000..dd1798a --- /dev/null +++ b/tools/test_port @@ -0,0 +1,11 @@ +#! /bin/bash + +PORT=/dev/pts/2 + +sleep 1 + +echo "write to $PORT" +echo "a" > $PORT + +echo "read from $PORT" +cat $PORT -- cgit v1.1-2-g2b99