Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+mmap

  • Loading branch information...
commit f5b5e6fc72b7b6e3beccbc9434c8f994710448a0 1 parent 5492ec7
@makelinux authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 ldt-test
View
13 ldt-test
@@ -57,9 +57,18 @@ echo $data > /dev/ldt
sleep 0.5
received=`head -n 1 /dev/ldt`
if [ "$data" == "$received" ]; then
-echo -e "${GREEN}LDT test passed$NOCOLOR"
+echo -e "${GREEN}LDT read/write test passed$NOCOLOR"
else
-echo -e "${RED}LDT test failed$NOCOLOR"
+echo -e "${RED}LDT read/write test failed$NOCOLOR"
+fi
+
+received=`sudo echo $data | ./dio --mmap /dev/ldt`
+if [ "$data" == "$received" ]; then
+echo -e "${GREEN}LDT mmap test passed$NOCOLOR"
+else
+echo -e "${RED}LDT mmap test failed$NOCOLOR"
+echo expected $data
+echo received $received
fi
grep ldt /proc/interrupts || true
Please sign in to comment.
Something went wrong with that request. Please try again.