Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eterban
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eterban
Commits
13a760fc
Commit
13a760fc
authored
Jul 26, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add static syntax regression checks
parent
12fb65ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
TESTING.md
TESTING.md
+8
-0
static-checks.sh
tests/static-checks.sh
+11
-0
No files found.
TESTING.md
View file @
13a760fc
...
...
@@ -86,3 +86,11 @@ curl -s http://91.232.225.67:82/ | grep title
-
НЕ банить другие рабочие серверы (sprintbox и т.д.) без крайней необходимости
-
int2.py использует SO_ORIGINAL_DST для определения оригинального IP назначения
-
IPv6 адрес 2a03:5a00:c:20::67 должен быть назначен на vmbr0
# Static checks
Before building a package, run the syntax regression checks for all shipped
Python, PHP and shell files:
```
sh
sh tests/static-checks.sh
```
tests/static-checks.sh
0 → 100644
View file @
13a760fc
#!/bin/sh
# Syntax-only regression checks for files shipped by the Eterban packages.
set
-eu
root
=
$(
CDPATH
=
cd
--
"
$(
dirname
--
"
$0
"
)
/.."
&&
pwd
)
cd
"
$root
"
find gateway prod-server ban-internal-server
-type
f
-name
'*.py'
-exec
\
python3
-B
-c
'import pathlib, sys; p = pathlib.Path(sys.argv[1]); compile(p.read_bytes(), str(p), "exec")'
{}
\;
find ban-server
-type
f
-name
'*.php'
-exec
php
-l
{}
\;
find gateway prod-server common
-type
f
-name
'*.sh'
-exec
sh
-n
{}
\;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment