1 rtc-test.c : Test the Real Time Clock driver 2 3 Tests supported as of now 4 -------------------------- 5 1. Read test : This reads the time/date from the RTC 6 ioctls tested :- RTC_RD_TIME. 7 8 2. Alarm Test: Sets the alarm to 5 seconds in future and makes sure it rings. 9 ioctls tested :- RTC_ALM_SET, RTC_ALM_READ, RTC_AIE_ON, RTC_AIE_OFF. 10 11 3. Update interrupts test : Sets Update interrupts enable on, waits for five 12 interrupts and then turns it off. 13 ioctls tested :- RTC_UIE_ON, RTC_UIE_OFF. 14 15 16 How to Build 17 ------------ 18 You have to build the complete LTP package before trying to build these tests. 19 After building the complete LTP sources enter this directory and issue a 'make'. 20 21 How to Run 22 ---------- 23 24 The tests assume the rtc device node to be "/dev/rtc". If you have a 25 different node run the test with the name of the node as a parameter. 26 27 Eg. If your node is /dev/rtc0, then run the test as 28 29 $ ./rtc-test /dev/rtc0 30