aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-06-08 18:06:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-06-08 18:06:12 -0400
commitf42ce3e2fd6de3129e196507b7c862cb511f62de (patch)
treeefabacb2a0919e19dac37e74afc601486eb9031f
parent33ecc6d62ee15afd921cce9ee37ca551f5d0b0ce (diff)
downloadkutter-f42ce3e2fd6de3129e196507b7c862cb511f62de.tar.gz
kutter-f42ce3e2fd6de3129e196507b7c862cb511f62de.tar.xz
kutter-f42ce3e2fd6de3129e196507b7c862cb511f62de.zip
linuxtest: Add a test case for the ds18b20 sensor
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--test/klippy/linuxtest.cfg15
-rw-r--r--test/klippy/linuxtest.test5
2 files changed, 20 insertions, 0 deletions
diff --git a/test/klippy/linuxtest.cfg b/test/klippy/linuxtest.cfg
new file mode 100644
index 00000000..67737239
--- /dev/null
+++ b/test/klippy/linuxtest.cfg
@@ -0,0 +1,15 @@
+# Test config for linux process specific hardware
+[mcu]
+serial: /tmp/klipper_host_mcu
+
+[printer]
+kinematics: none
+max_velocity: 300
+max_accel: 3000
+
+[temperature_sensor my_ds18b20]
+min_temp: 0
+max_temp: 100
+serial_no: 12345678
+sensor_mcu: mcu
+sensor_type: DS18B20
diff --git a/test/klippy/linuxtest.test b/test/klippy/linuxtest.test
new file mode 100644
index 00000000..913ea61f
--- /dev/null
+++ b/test/klippy/linuxtest.test
@@ -0,0 +1,5 @@
+# Tests for various temperature sensors
+DICTIONARY linuxprocess.dict
+CONFIG linuxtest.cfg
+
+G4 P1000