Tests the channel wxMaxima interrupts Maxima through (GH #2289): the handshake that decides whether a connection may interrupt Maxima, and the channel itself over a real local socket, with the test playing Maxima's part.
More...
#include "InterruptChannelHandshake.h"
#include "MaximaAuthLine.h"
#include "MaximaInterruptChannel.h"
#include <wx/app.h>
#include <wx/evtloop.h>
#include <wx/log.h>
#include <wx/socket.h>
#include <wx/stopwatch.h>
#include <cstdio>
#include <cstring>
#include <functional>
#include <memory>
#include <string>
#include <catch2/catch.hpp>
|
|
using | State = InterruptChannelHandshake::State |
| |
|
|
| SCENARIO ("Maxima's auth= line is checked and never left in the text") |
| |
|
| SCENARIO ("The interrupt channel handshake only accepts the secret") |
| |
|
| SCENARIO ("The interrupt channel carries interrupts to Maxima") |
| |
|
| wxDECLARE_APP (TestApp) |
| |
|
| wxIMPLEMENT_APP_NO_MAIN (TestApp) |
| |
|
int | main (int argc, char **argv) |
| |
Tests the channel wxMaxima interrupts Maxima through (GH #2289): the handshake that decides whether a connection may interrupt Maxima, and the channel itself over a real local socket, with the test playing Maxima's part.