chore: remove test artifacts from tracking

This commit is contained in:
Dushnilin
2026-08-03 20:06:42 +03:00
parent a3f877c960
commit 6c7ceb0873
6 changed files with 0 additions and 48 deletions
-2
View File
@@ -1,2 +0,0 @@
# Just comments
# Nothing else
View File
-4
View File
@@ -1,4 +0,0 @@
not a valid line
also not valid
45.155.204.190 chatgpt.com
valid.com 1.2.3.4
-11
View File
@@ -1,11 +0,0 @@
# This is a comment
127.0.0.1 localhost
localhost 127.0.0.1
45.155.204.190 chatgpt.com
45.155.204.190 ab.chatgpt.com
0.0.0.0 ad.doubleclick.net
0.0.0.0 tracker.example.com
# IPv6
::1 localhost
fe80::1 host.local
-10
View File
@@ -1,10 +0,0 @@
#!/usr/bin/env ucode
let fs = require("fs");
function as_string(value) { return value == null ? "" : "" + value; }
let cmd = "wget -q -O /tmp/test_uc_dl.txt --timeout=15 https://raw.githubusercontent.com/AvenCores/Unlock_AI_and_EN_Services_for_Russia/main/source/system/etc/hosts";
print("Running wget...\n");
let result = system(cmd);
print("system result: ", as_string(result), "\n");
let st = fs.stat("/tmp/test_uc_dl.txt");
print("file exists: ", as_string(st != null), "\n");
if (st != null) print("file size: ", as_string(st.size), "\n");
-21
View File
@@ -1,21 +0,0 @@
#!/usr/bin/env ucode
let fs = require("fs");
function as_string(value) { return value == null ? "" : "" + value; }
function shell_quote(value) { return "'" + replace(as_string(value), /'/g, "'\\''") + "'"; }
print("Test 1: direct system()\n");
let r1 = system("wget -q -O /tmp/t1.txt --timeout=15 https://raw.githubusercontent.com/AvenCores/Unlock_AI_and_EN_Services_for_Russia/main/source/system/etc/hosts");
print("system result: ", as_string(r1), "\n");
let s1 = fs.stat("/tmp/t1.txt");
print("file exists: ", as_string(s1 != null), "\n");
print("\nTest 2: via shell_quote\n");
let url = "https://raw.githubusercontent.com/AvenCores/Unlock_AI_and_EN_Services_for_Russia/main/source/system/etc/hosts";
let output = "/tmp/t2.txt";
let cmd = "wget -q -O " + shell_quote(output) + " --timeout=30 " + shell_quote(url);
print("cmd: ", cmd, "\n");
let r2 = system(cmd);
print("system result: ", as_string(r2), "\n");
let s2 = fs.stat("/tmp/t2.txt");
print("file exists: ", as_string(s2 != null), "\n");
if (s2 != null) print("size: ", as_string(s2.size), "\n");