aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--test/benchmarks/lexer.cpp5
-rw-r--r--test/stress_test.py16
2 files changed, 17 insertions, 4 deletions
diff --git a/test/benchmarks/lexer.cpp b/test/benchmarks/lexer.cpp
index 9384ee2..5b0612f 100644
--- a/test/benchmarks/lexer.cpp
+++ b/test/benchmarks/lexer.cpp
@@ -1,3 +1,8 @@
+// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
+// This file is part of the "math-server" project.
+// For details, see https://github.com/egor-tensin/math-server.
+// Distributed under the MIT License.
+
#include <server/lexer/details/parse.hpp>
#include <benchmark/benchmark.h>
diff --git a/test/stress_test.py b/test/stress_test.py
index 233a0de..3e13a10 100644
--- a/test/stress_test.py
+++ b/test/stress_test.py
@@ -1,3 +1,15 @@
+#!/usr/bin/env python3
+
+# Copyright (c) 2019 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "math-server" project.
+# For details, see https://github.com/egor-tensin/math-server.
+# Distributed under the MIT License.
+
+'''This is a crappy script to feed the server with somewhat random arithmetic
+expressions.
+It's throwaway, hence the poor quality.
+'''
+
import argparse
import ast
from contextlib import contextmanager
@@ -9,10 +21,6 @@ from subprocess import PIPE
import sys
from timeit import default_timer
-# This is a crappy script to feed the server with somewhat random arithmetic
-# expressions.
-# It's throwaway, hence the poor quality.
-
DEFAULT_CLIENT_PATH = 'client'
DEFAULT_HOST = 'localhost'
DEFAULT_PORT = 18000