WVPASS fcb -dfcb.pid
cat > expected << EOF
-Actual list of stations
-120976291 - 10
+Actual_list_of_stations
+120976291_-_10
------------
-Actual list of stations
-120976291 - 12
-80976291 - 21
+Actual_list_of_stations
+120976291_-_12
+80976291_-_21
------------
-Actual list of stations
-120976291 - 12
-80976291 - 64
-80945292 - 64
+Actual_list_of_stations
+120976291_-_12
+80976291_-_64
+80945292_-_64
------------
EOF
-#TODO: Synchronize processes for correct output
-WVPASS sh -c "frm_fwp > actual"
-WVPASS list_of_stations_test
-WVPASS diff -u expected actual
-
+(WVPASS sh -c "frm_fwp 2> actual" & FWP_PID=$!
+wait $LIS_PID
+kill $FWP_PID $LIS_PID) &
+(
+#sleep 1;
+WVPASS list_of_stations_test & LIS_PID=$!;
+WVPASS cut -d' ' -f4 actual > actual_just_outputs;
+WVPASS diff -u expected actual_just_outputs;
+)
#include "wifi_agent_idl.h"
#include "fwp_admctrl.h"
+UL_LOG_CUST(ulogd_frm_fwp);
+ul_log_domain_t ulogd_frm_fwp = {UL_LOGL_MSG, "main"};
+UL_LOGREG_SINGLE_DOMAIN_INIT_FUNCTION(init_ulogd_frm_fwp, ulogd_frm_fwp);
+
struct forb_wifi_agent_idl_impl wifi_agent_impl = {
.add = wifi_agent_idl_add,
.print_state = wifi_agent_idl_print_state,
{
fwp_sta_t *sta2;
- printf("Actual list of stations\n");
+ ul_logmsg("Actual_list_of_stations\n");
ul_list_for_each(sta_list, &priv.sta_list, sta2){
- printf("%llu -", sta2->client_mac_addr);
- printf(" %d\n", sta2->rate);
+ ul_logmsg("%llu_-_%d\n", sta2->client_mac_addr, sta2->rate);
}
- printf("------------\n\n");
+ ul_logmsg("------------\n\n");
}
/**
interface wifi_agent_idl {
long add(in long rate, in long long client_mac_addr);
void print_state();
- //void get_last(out long rate, out string client_mac_addr);
};