OSDN Git Service

Merge changes I768f0948,I3d79bb35 am: 2474ba9744
[android-x86/external-toybox.git] / tests / uptime.test
1 #!/bin/bash
2
3 [ -f testing.sh ] && . testing.sh
4
5 #testing "name" "command" "result" "infile" "stdin"
6
7 testing "uptime" "uptime | grep -q 'load average:' && echo t" "t\n" "" ""
8 testing "uptime -s" \
9         "uptime -s | grep -q '^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]$' && echo t" \
10         "t\n" "" ""