aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test1.sh
blob: 5ac52d8a3c903641a39bf72c41605bf29b838098 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
. include/test-util.sh

description "Test _test_module"
plan 5
is "$(cat /proc/_test_module)" "You have no previous messages" "No message read"
ok $(echo kek > /proc/_test_module; echo "$?") "Successful write"
is "$(cat /proc/_test_module)" "Your last message was: kek" "Message read"
ok $(echo something > /proc/_test_module; echo "$?") "Successful write"
is "$(cat /proc/_test_module)" "Your last message was: something" "Message read"
conclude