Improve end-to-end testing

pull/2/head
Jean-Marc Meessen 4 years ago
parent c8ed5cc86a
commit dabf976add

@ -2,12 +2,14 @@
set -e
go build
go test ./...
./build.sh
mkdir -p test/output/temp
echo "--------------------------"
./FLEcli -i test/data/fle-1.txt load
echo "--------------------------"
./FLEcli -i test/data/ON4KJM@ONFF-025920200524.txt load
echo "--------------------------"
./FLEcli -i test/data/sample_wwff_sota.txt load
./FLEcli -i test/FLE-sample/sota_wwff.txt csv -o=test/output/temp/sota_wwff.csv --interpolate --overwrite
diff test/output/temp/sota_wwff.csv test/FLE-sample/sota_wwff.csv --strip-trailing-cr && echo "no difference" || echo "differences!"

@ -0,0 +1,76 @@
{ Sample file Stew Perry Contest
Check: Logging > "Contest Logging"
- Exchanges in this contest are grid locators
Be sure to enter your own locator in the first QSO line after the comma
- Times are not interpolated in this sample
}
{ Enter your call sign after the mycall keyword }
mycall wb9zzz
date 2015-12-18
160m cw
1924 ok1dol ,jn58 .jn69
26 e77dx .jn84
30 hg5a .jn97
32 ol7m .jo80
3 s57un .jn86
5 ok2zi .jn89
9 dl1dxa .jo61
40 dk9vz .jn39
4 sm5mx .jo99
8 f5in .jn18
53 s51v .jn86
4 f8bpn .jn05
9 oh2bo .kp20
2002 pa4vhf .jo32
4 g3bj .io82
6 iv3prk .jn66
7 rx3apm .lo04
10 uw2m .kn98
3 yl2sm .ko37
4 tm6m .in78
5 f6ddr .jn38
6 uu7j .kn85
9 dk6xz .jn48
20 pi4tue .jo21
2 g4buo .jo01
3 dl5mx .jo50
5 ok1hfp .jn69
7 ha6nl .jn98
31 on7pq .jo10
3 i4ewh .jn64
2100 tf4m .hp85
6 sn7q .jo91
13 dk2oy .jo44
9 dj3ra .jo72
5 s53o .jn86
20 dd5m .jn58
8 on9cc .jo20
30 ha3li .jn96
2 g3wph .io91
4 dj2ya .jo40
{ next day }
day +
0632 w1bb .fn42
5 k8po .fn54
6 pa5kt .jo11
8 dj9mh .jo50
40 om6al .jn99
2 dl8uke .jo72
3 ut3ua .ko50
50 sm6cpy .jo67
2 ly9y .ko16
5 ok1dst .jn79
9 sn2i .jo93
9 ve3mmq .fn14
0707 g6mc .io94
10 ok1fps .jo70
3 se0x .jo99
5 on4ww .jo11
1 dl4me .jo50
8 dj3we .jn57
25 ok1tn .jo70
8 n2kw/1 .fn32

@ -0,0 +1,19 @@
ADIF Export for Fast Log Entry by DF3CB
<PROGRAMID:3>FLE
<ADIF_VER:5>3.1.0
<EOH>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>RA3AX <QSO_DATE:8>20160630 <TIME_ON:4>2335 <BAND:3>80m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>DJ2MX <QSO_DATE:8>20160630 <TIME_ON:4>2337 <BAND:3>80m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>DK4RM <QSO_DATE:8>20160630 <TIME_ON:4>2340 <BAND:3>80m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>OH7MS <QSO_DATE:8>20160630 <TIME_ON:4>2342 <BAND:3>80m <MODE:2>CW <RST_SENT:3>449 <RST_RCVD:3>559 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>RN6BN <QSO_DATE:8>20160630 <TIME_ON:4>2348 <BAND:3>80m <MODE:2>CW <RST_SENT:3>539 <RST_RCVD:3>569 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>DL5MO <QSO_DATE:8>20160630 <TIME_ON:4>2351 <BAND:3>80m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <GRIDSQUARE:4>JO50 <COMMENT:13>strong signal <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>DL7ON <QSO_DATE:8>20160630 <TIME_ON:4>2352 <BAND:3>80m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>DJ2BW <QSO_DATE:8>20160630 <TIME_ON:4>2353 <BAND:3>80m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>G3FPQ <QSO_DATE:8>20160702 <TIME_ON:4>0014 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>RA6AU <QSO_DATE:8>20160702 <TIME_ON:4>0018 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>OH2PJ <QSO_DATE:8>20160702 <TIME_ON:4>0022 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>OH3ES <QSO_DATE:8>20160702 <TIME_ON:4>0026 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:5>SM5WP <QSO_DATE:8>20160702 <TIME_ON:4>0030 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:6>SP8BRQ <QSO_DATE:8>20160702 <TIME_ON:4>0034 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>
<STATION_CALLSIGN:6>WB9ZZZ <CALL:6>UA3TCJ <QSO_DATE:8>20160702 <TIME_ON:4>0038 <BAND:3>40m <MODE:3>SSB <RST_SENT:2>59 <RST_RCVD:2>59 <EOR>

@ -0,0 +1,26 @@
{ Sample FLE QSO editor file for a DXpedition }
{ Enter your call sign after the mycall keyword }
mycall wb9zzz
{ Start your log entry with a start date using the DATE keyword in the format yyyy-mm-dd }
date 2016-06-30
{ Then enter band and mode }
80m cw 2335 ra3ax
dj2mx
40 dk4rm
2 oh7ms 449 559
8 rn6bn 3 6
51 dl5mo < strong signal > #JO50
dl7on
3 dj2bw
{ Times can be interpolated between two given times, e.g. between 0014 and 0038 in the following example }
day ++ 40m ssb
0014 g3fpq
ra6au
oh2pj
oh3es
sm5wp
sp8brq
38 ua3tcj

@ -0,0 +1,12 @@
ADIF Export for Fast Log Entry by DF3CB
<PROGRAMID:3>FLE
<ADIF_VER:5>3.1.0
<EOH>
<STATION_CALLSIGN:5>G3WGV <CALL:5>G4ELZ <QSO_DATE:8>20160424 <TIME_ON:4>1202 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:5>G3NOH <QSO_DATE:8>20160424 <TIME_ON:4>1204 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <COMMENT:14>PSE QSL Direct <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:6>GW4GTE <QSO_DATE:8>20160424 <TIME_ON:4>1227 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <NAME:4>Dave <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:8>GW0TLK/M <QSO_DATE:8>20160424 <TIME_ON:4>1228 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <SIG:4>WWFF <SIG_INFO:9>GWFF-0021 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:6>GM0AAA <QSO_DATE:8>20160603 <TIME_ON:4>1404 <BAND:3>40m <MODE:2>CW <RST_SENT:3>539 <RST_RCVD:3>579 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:7>ON4CK/P <QSO_DATE:8>20160603 <TIME_ON:4>1405 <BAND:3>40m <MODE:2>CW <RST_SENT:3>529 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <SOTA_REF:9>ON/ON-018 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:8>DL0DAN/P <QSO_DATE:8>20160603 <TIME_ON:4>1407 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <SIG:4>WWFF <SIG_INFO:9>DLFF-0002 <MY_SOTA_REF:8>G/LD-008 <SOTA_REF:9>DL/AL-044 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:5>YU7LS <QSO_DATE:8>20160603 <TIME_ON:4>1410 <BAND:3>20m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>

@ -0,0 +1,12 @@
ADIF Export for Fast Log Entry by DF3CB
<PROGRAMID:3>FLE
<ADIF_VER:5>3.1.0
<EOH>
<STATION_CALLSIGN:5>G3WGV <CALL:5>G4ELZ <QSO_DATE:8>20160424 <TIME_ON:4>1202 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:5>G3NOH <QSO_DATE:8>20160424 <TIME_ON:4>1204 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <COMMENT:14>PSE QSL Direct <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:6>GW4GTE <QSO_DATE:8>20160424 <TIME_ON:4>1227 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <NAME:4>Dave <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:8>GW0TLK/M <QSO_DATE:8>20160424 <TIME_ON:4>1228 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <SIG:4>WWFF <SIG_INFO:9>GWFF-0021 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:6>GM0AAA <QSO_DATE:8>20160603 <TIME_ON:4>1404 <BAND:3>40m <MODE:2>CW <RST_SENT:3>539 <RST_RCVD:3>579 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:7>ON4CK/P <QSO_DATE:8>20160603 <TIME_ON:4>1405 <BAND:3>40m <MODE:2>CW <RST_SENT:3>529 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <SOTA_REF:9>ON/ON-018 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:8>DL0DAN/P <QSO_DATE:8>20160603 <TIME_ON:4>1407 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <SIG:4>WWFF <SIG_INFO:9>DLFF-0002 <MY_SOTA_REF:8>G/LD-008 <SOTA_REF:9>DL/AL-044 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:5>YU7LS <QSO_DATE:8>20160603 <TIME_ON:4>1410 <BAND:3>20m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>

@ -0,0 +1,8 @@
V2,G3WGV,G/LD-008,24/04/16,1202,7MHz,CW,G4ELZ
V2,G3WGV,G/LD-008,24/04/16,1204,7MHz,CW,G3NOH,,PSE QSL Direct
V2,G3WGV,G/LD-008,24/04/16,1227,144MHz,FM,GW4GTE
V2,G3WGV,G/LD-008,24/04/16,1228,144MHz,FM,GW0TLK/M
V2,G3WGV,G/LD-008,03/06/16,1404,7MHz,CW,GM0AAA
V2,G3WGV,G/LD-008,03/06/16,1405,7MHz,CW,ON4CK/P,ON/ON-018
V2,G3WGV,G/LD-008,03/06/16,1407,7MHz,CW,DL0DAN/P,DL/AL-044
V2,G3WGV,G/LD-008,03/06/16,1410,14MHz,CW,YU7LS
1 V2,G3WGV,G/LD-008,24/04/16,1202,7MHz,CW,G4ELZ
2 V2,G3WGV,G/LD-008,24/04/16,1204,7MHz,CW,G3NOH,,PSE QSL Direct
3 V2,G3WGV,G/LD-008,24/04/16,1227,144MHz,FM,GW4GTE
4 V2,G3WGV,G/LD-008,24/04/16,1228,144MHz,FM,GW0TLK/M
5 V2,G3WGV,G/LD-008,03/06/16,1404,7MHz,CW,GM0AAA
6 V2,G3WGV,G/LD-008,03/06/16,1405,7MHz,CW,ON4CK/P,ON/ON-018
7 V2,G3WGV,G/LD-008,03/06/16,1407,7MHz,CW,DL0DAN/P,DL/AL-044
8 V2,G3WGV,G/LD-008,03/06/16,1410,14MHz,CW,YU7LS

@ -0,0 +1,23 @@
{ Sample WWFF and SOTA log }
# Header
mycall g3wgv
operator
mywwff gff-0014
mysota g/ld-008
# Log
date 2016-04-24
40m cw
1202 g4elz
4 g3noh <PSE QSL Direct>
2m fm
1227 gw4gte @Dave
8 gw0tlk/m gwff-0021
date 2016-06-03
40m cw
1404 gm0aaa 3 7
5 on4ck/p 2 on/on-018
7 dl0dan/p dlff-0002 dl/al-044
20m
10 yu7ls

@ -0,0 +1,12 @@
ADIF Export for Fast Log Entry by DF3CB
<PROGRAMID:3>FLE
<ADIF_VER:5>3.1.0
<EOH>
<STATION_CALLSIGN:5>G3WGV <CALL:5>G4ELZ <QSO_DATE:8>20160424 <TIME_ON:4>1202 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:5>G3NOH <QSO_DATE:8>20160424 <TIME_ON:4>1204 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <COMMENT:14>PSE QSL Direct <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:6>GW4GTE <QSO_DATE:8>20160424 <TIME_ON:4>1227 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <NAME:4>Dave <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:8>GW0TLK/M <QSO_DATE:8>20160424 <TIME_ON:4>1228 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <SIG:4>WWFF <SIG_INFO:9>GWFF-0021 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:6>GM0AAA <QSO_DATE:8>20160603 <TIME_ON:4>1404 <BAND:3>40m <MODE:2>CW <RST_SENT:3>539 <RST_RCVD:3>579 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:7>ON4CK/P <QSO_DATE:8>20160603 <TIME_ON:4>1405 <BAND:3>40m <MODE:2>CW <RST_SENT:3>529 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <SOTA_REF:9>ON/ON-018 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:8>DL0DAN/P <QSO_DATE:8>20160603 <TIME_ON:4>1407 <BAND:3>40m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <SIG:4>WWFF <SIG_INFO:9>DLFF-0002 <MY_SOTA_REF:8>G/LD-008 <SOTA_REF:9>DL/AL-044 <EOR>
<STATION_CALLSIGN:5>G3WGV <CALL:5>YU7LS <QSO_DATE:8>20160603 <TIME_ON:4>1410 <BAND:3>20m <MODE:2>CW <RST_SENT:3>599 <RST_RCVD:3>599 <MY_SIG:4>WWFF <MY_SIG_INFO:8>GFF-0014 <MY_SOTA_REF:8>G/LD-008 <EOR>
Loading…
Cancel
Save