kopia lustrzana https://github.com/weetmuts/wmbusmeters
Log more at alarm test.
rodzic
6211348145
commit
1578cb9838
5
Makefile
5
Makefile
|
@ -20,7 +20,6 @@
|
|||
# make DEBUG=true
|
||||
# make DEBUG=true HOST=arm
|
||||
|
||||
DEBUG:=true
|
||||
DESTDIR?=/
|
||||
|
||||
ifeq "$(HOST)" "arm"
|
||||
|
@ -223,10 +222,10 @@ gcov:
|
|||
$(GCOV) -o build_debug $(METER_OBJS)
|
||||
mv *.gcov build_debug
|
||||
|
||||
testd:
|
||||
test:
|
||||
@./test.sh build/wmbusmeters
|
||||
|
||||
test:
|
||||
testd:
|
||||
@./test.sh build_debug/wmbusmeters
|
||||
|
||||
update_manufacturers:
|
||||
|
|
|
@ -12,13 +12,17 @@ echo "RUNNING $TESTNAME ..."
|
|||
> /tmp/wmbusmeters_telegram_test
|
||||
> /tmp/wmbusmeters_alarm_test
|
||||
|
||||
echo "$PROG --useconfig=tests/config7 --device=simulations/simulation_alarm.txt 2> $TEST/test_stderr.txt | sed 's/....-..-..T..:..:..Z/1111-11-11T11:11:11Z/' > $TEST/test_output.txt"
|
||||
|
||||
ls -l simulations/simulation_alarm.txt
|
||||
|
||||
$PROG --useconfig=tests/config7 --device=simulations/simulation_alarm.txt 2> $TEST/test_stderr.txt | sed 's/....-..-..T..:..:..Z/1111-11-11T11:11:11Z/' > $TEST/test_output.txt
|
||||
|
||||
echo "DONE $PROG"
|
||||
echo "STDERR---------------------------------"
|
||||
cat $TEST/test_stderr.txt
|
||||
echo "STDOUT---------------------------------"
|
||||
cat $TEST/test_output.txt
|
||||
echo "TMP/OUTPUT-----------------------------"
|
||||
cat /tmp/wmbusmeters_telegram_test
|
||||
echo "TMP/ALARM------------------------------"
|
||||
cat /tmp/wmbusmeters_alarm_test
|
||||
echo "---------------------------------------"
|
||||
|
||||
cat > $TEST/test_expected.txt <<EOF
|
||||
(alarm) inactivity: 4 seconds of inactivity resetting simulations/simulation_alarm.txt DEVICE_SIMULATOR (timeout 4s expected mon-sun(00-23) now 1111-11-11 11:11)
|
||||
|
|
Ładowanie…
Reference in New Issue